From: Micah Parrish Date: Thu, 12 Apr 2018 19:25:25 +0000 (-0600) Subject: NVMe: Add Quirk Delay before CHK RDY for Seagate Nytro Flash Storage X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0302ae60fc2368de5c561be49e2d9ea26dd462de;p=openwrt%2Fstaging%2Fblogic.git NVMe: Add Quirk Delay before CHK RDY for Seagate Nytro Flash Storage Add Seagate Nytro Flash Storage nvme drive to quirk list for NVME_QUIRK_DELAY_BEFORE_CHK_RDY, which solves a bug where the drive is probed on hot-add before the firmare is ready, I/O errors are generated while reading sector 0, and linux is "unable to read partition table". Signed-off-by: Micah Parrish Reviewed-by: Martin K. Petersen Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index fbc71fac6f1e..af88f3fe2cc0 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2704,6 +2704,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_NO_DEEPEST_PS }, { PCI_VDEVICE(INTEL, 0x5845), /* Qemu emulated controller */ .driver_data = NVME_QUIRK_IDENTIFY_CNS, }, + { PCI_DEVICE(0x1bb1, 0x0100), /* Seagate Nytro Flash Storage */ + .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, }, { PCI_DEVICE(0x1c58, 0x0003), /* HGST adapter */ .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, }, { PCI_DEVICE(0x1c58, 0x0023), /* WDC SN200 adapter */