]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme-pci: add quirks for Samsung X5 SSDs
authorMonish Kumar R <monish.kumar.r@intel.com>
Wed, 16 Mar 2022 07:54:49 +0000 (13:24 +0530)
committerChristoph Hellwig <hch@lst.de>
Wed, 23 Mar 2022 08:19:32 +0000 (09:19 +0100)
Add quirks to not fail the initialization and to have quick resume
latency after cold/warm reboot.

Signed-off-by: Monish Kumar R <monish.kumar.r@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c

index 9f3c392fe7a100c64ba1fb5f61ca7351844968b0..66f1eee2509a37781cdbc88bb88f254aaebf5026 100644 (file)
@@ -3466,7 +3466,10 @@ static const struct pci_device_id nvme_id_table[] = {
                                NVME_QUIRK_128_BYTES_SQES |
                                NVME_QUIRK_SHARED_TAGS |
                                NVME_QUIRK_SKIP_CID_GEN },
-
+       { PCI_DEVICE(0x144d, 0xa808),   /* Samsung X5 */
+               .driver_data =  NVME_QUIRK_DELAY_BEFORE_CHK_RDY|
+                               NVME_QUIRK_NO_DEEPEST_PS |
+                               NVME_QUIRK_IGNORE_DEV_SUBNQN, },
        { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) },
        { 0, }
 };