[PATCH 1/2] nvme: Fix pci_device_id table by adding the most generic devices in the end
Guilherme G. Piccoli
gpiccoli at linux.vnet.ibm.com
Mon Apr 11 13:57:19 PDT 2016
On 04/11/2016 05:48 PM, Matthew Wilcox wrote:
> On Mon, Apr 11, 2016 at 05:15:50PM -0300, Guilherme G. Piccoli wrote:
>> The struct pci_device_id is used on a PCI driver probe by the PCI core
>> mechanism to match the devices present on the system with the driver
>> being probed. For each device, the match procedure reads each entry in
>> the pci_device_id struct provided by the driver and tries to match the
>> first entry it is able to do.
>
> What you're missing is that the Apple device doesn't have the NVMe
> programming model / class code. So this patch actually has no effect.
>
Oh, okay. Thanks for pointing this. I imagined that it would be possible
that this Apple device does not have NVMe class code (or it would been a
mistake have added the entry after the PCI_DEVICE_CLASS() in that table).
Anyway, my choice was to send the patch and take the shot. Do you want
me to re-send the 2nd part of this patch alone, as v2?
Cheers,
Guilherme
More information about the Linux-nvme
mailing list