Skip to content

Commit e648783

Browse files
author
Christoph Hellwig
committed
nvme: move the Samsung X5 quirk entry to the core quirks
This device shares the PCI ID with the Samsung 970 Evo Plus that does not need or want the quirks. Move the the quirk entry to the core table based on the model number instead. Fixes: bc360b0 ("nvme-pci: add quirks for Samsung X5 SSDs") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
1 parent 23c9cd5 commit e648783

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

drivers/nvme/host/core.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,20 @@ static const struct nvme_core_quirk_entry core_quirks[] = {
25462546
.vid = 0x1e0f,
25472547
.mn = "KCD6XVUL6T40",
25482548
.quirks = NVME_QUIRK_NO_APST,
2549+
},
2550+
{
2551+
/*
2552+
* The external Samsung X5 SSD fails initialization without a
2553+
* delay before checking if it is ready and has a whole set of
2554+
* other problems. To make this even more interesting, it
2555+
* shares the PCI ID with internal Samsung 970 Evo Plus that
2556+
* does not need or want these quirks.
2557+
*/
2558+
.vid = 0x144d,
2559+
.mn = "Samsung Portable SSD X5",
2560+
.quirks = NVME_QUIRK_DELAY_BEFORE_CHK_RDY |
2561+
NVME_QUIRK_NO_DEEPEST_PS |
2562+
NVME_QUIRK_IGNORE_DEV_SUBNQN,
25492563
}
25502564
};
25512565

drivers/nvme/host/pci.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3526,10 +3526,6 @@ static const struct pci_device_id nvme_id_table[] = {
35263526
NVME_QUIRK_128_BYTES_SQES |
35273527
NVME_QUIRK_SHARED_TAGS |
35283528
NVME_QUIRK_SKIP_CID_GEN },
3529-
{ PCI_DEVICE(0x144d, 0xa808), /* Samsung X5 */
3530-
.driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY|
3531-
NVME_QUIRK_NO_DEEPEST_PS |
3532-
NVME_QUIRK_IGNORE_DEV_SUBNQN, },
35333529
{ PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) },
35343530
{ 0, }
35353531
};

0 commit comments

Comments
 (0)