Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nvme: move NVMe class code to pci_ids.h

We'll need to check for it in the AHCI drivers (yes, really) soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Christoph Hellwig and committed by
Tejun Heo
a2e7eefd b986723c

+2 -3
-3
drivers/nvme/host/pci.c
··· 2064 2064 .reset_notify = nvme_reset_notify, 2065 2065 }; 2066 2066 2067 - /* Move to pci_ids.h later */ 2068 - #define PCI_CLASS_STORAGE_EXPRESS 0x010802 2069 - 2070 2067 static const struct pci_device_id nvme_id_table[] = { 2071 2068 { PCI_VDEVICE(INTEL, 0x0953), 2072 2069 .driver_data = NVME_QUIRK_STRIPE_SIZE |
+2
include/linux/pci_ids.h
··· 23 23 #define PCI_CLASS_STORAGE_SATA 0x0106 24 24 #define PCI_CLASS_STORAGE_SATA_AHCI 0x010601 25 25 #define PCI_CLASS_STORAGE_SAS 0x0107 26 + #define PCI_CLASS_STORAGE_EXPRESS 0x010802 26 27 #define PCI_CLASS_STORAGE_OTHER 0x0180 28 + 27 29 28 30 #define PCI_BASE_CLASS_NETWORK 0x02 29 31 #define PCI_CLASS_NETWORK_ETHERNET 0x0200