summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJon Nettleton <jon@solid-run.com>2017-08-03 09:31:00 (GMT)
committerTom Rini <trini@konsulko.com>2017-08-13 19:17:32 (GMT)
commit0deb91318b15f0d12839b23433e2720722504d25 (patch)
tree041923c3b33b1aeb7a74b8e7eafc6f6fc9fd9955 /drivers
parent0adc38be3d0e55fea72b8bbae831376d1649266e (diff)
downloadu-boot-fsl-qoriq-0deb91318b15f0d12839b23433e2720722504d25.tar.xz
nvme: Detect devices that are class Storage Express
This adds support to detect the catchall PCI class for NVMe devices. It allows the drivers to work with most NVMe devices that don't need specific detection due to quirks etc. Tested against a Samsung 960 EVO drive. Signed-off-by: Jon Nettleton <jon@solid-run.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c
index a60682a..feea02a 100644
--- a/drivers/nvme/nvme.c
+++ b/drivers/nvme/nvme.c
@@ -832,7 +832,7 @@ U_BOOT_DRIVER(nvme) = {
};
struct pci_device_id nvme_supported[] = {
- { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0953) },
+ { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, ~0) },
{}
};