[PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface
Mark Lord
kernel at start.ca
Thu Sep 26 22:32:53 EST 2013
On 13-09-18 05:48 AM, Alexander Gordeev wrote:
>
> The last pattern makes most of sense to me and could be updated with a more
> clear sequence - a call to (bit modified) pci_msix_table_size() followed
> by a call to pci_enable_msix(). I think this pattern can effectively
> supersede the currently recommended "loop" practice.
The loop is still necessary, because there's a race between those two calls,
so that pci_enable_msix() can still fail due to lack of MSIX slots.
More information about the Linuxppc-dev
mailing list