[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130905150442.GA24148@htj.dyndns.org>
Date: Thu, 5 Sep 2013 11:04:42 -0400
From: Tejun Heo <tj@...nel.org>
To: Alexander Gordeev <agordeev@...hat.com>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
linux-pci@...r.kernel.org, linux-ide@...r.kernel.org,
Ingo Molnar <mingo@...nel.org>, Joerg Roedel <joro@...tes.org>,
Jan Beulich <JBeulich@...e.com>,
Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface
Hello,
On Thu, Sep 05, 2013 at 05:03:00PM +0200, Alexander Gordeev wrote:
> You mean we could treat positive numbers returned by architecture as
> failures and translate it into negative error codes?
> If so, I would prefer not to do this for two reasons:
> 1. It will not be possible to call pci_enable_msi_block_part() in a loop.
> Although there are no consumers right now I think the very possibility
> is better to keep.
> 2. The semantics of pci_enable_msi_block_part() is very close to
> pci_enable_msi_block(). I believe having a consisting interface for
> these two helps readability.
The thing is, do we even have cases where arch code returns positive
return to indicate possible partial allocation? If not, the whole
interface is convoluted for no good reason and we can just make
everything return 0 or -errno, which is a lot simpler. No?
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists