[Top] [All Lists]

Re: [PATCH RFC 05/77] PCI/MSI: Convert pci_msix_table_size() to a public

To: Alexander Gordeev <>
Subject: Re: [PATCH RFC 05/77] PCI/MSI: Convert pci_msix_table_size() to a public interface
From: Tejun Heo <>
Date: Mon, 7 Oct 2013 14:10:43 -0400
Cc:, Bjorn Helgaas <>, Ralf Baechle <>, Michael Ellerman <>, Benjamin Herrenschmidt <>, Martin Schwidefsky <>, Ingo Molnar <>, Dan Williams <>, Andy King <>, Jon Mason <>, Matt Porter <>,,,,,,,,,,,,,, Solarflare linux maintainers <>, "VMware, Inc." <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=TYk0awj7MOHTKRF6ajcknicTR7ZR0VOjUdGfnZ71HnA=; b=X2WpF7f7Q6vnKQTsuh1lQTV+2dm9JvhExTisDrhexxsR2pCvsWf+gxyqHPgMlZ/pHL g1YGLRcO0rXyqSWSMdR+Lfyk3/xdghcBydbRGazhsI/BYE059pj1CChWmah+O/cjXe2I sEuyT3wNCIw5/s7QFHMe4VfzsXCzgPpGrPi5dsB5QDu/hztFCgt+efOlXfs2PsyLmWMq FfWxBrXSssqMu5A3q7YXi6+51gYjR2orEA/tT2jPI0sWQOavSDWcbSArMRiQrpMk1Rq0 9lZz1kUjxSwzPdTQHsrHRNY2ne5goqo7IZkD9Wwf/kJLoqaAKKj6W9ON0q3Q0mpTsEPt n0nA==
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <> <>
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Oct 02, 2013 at 12:48:21PM +0200, Alexander Gordeev wrote:
> Make pci_msix_table_size() to return a error code if the device
> does not support MSI-X. This update is needed to facilitate a
> forthcoming re-design MSI/MSI-X interrupts enabling pattern.
> Device drivers will use this interface to obtain maximum number
> of MSI-X interrupts the device supports and use that value in
> the following call to pci_enable_msix() interface.
> Signed-off-by: Alexander Gordeev <>

Hmmm... I probably missed something but why is this necessary?  To
discern between -EINVAL and -ENOSPC?  If so, does that really matter?



<Prev in Thread] Current Thread [Next in Thread>