[PATCH] nvme: Add quirks for Lexar 256GB SSD

Pascal Terjan pterjan at google.com
Tue Feb 23 17:10:46 EST 2021


Add NVME_QUIRK_NO_NS_DESC_LIST to Lexar 256GB SSD to allow it to
work again, and add NVME_QUIRK_IGNORE_DEV_SUBNQN to avoid a warning.

[    0.637476] nvme nvme0: missing or invalid SUBNQN field.
[    0.638399] nvme nvme0: Identify Descriptors failed (16386)

Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417

Signed-off-by: Pascal Terjan <pterjan at google.com>
---
 drivers/nvme/host/pci.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 7b6632c00ffd..9a56ec70e93a 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3232,6 +3232,9 @@ static const struct pci_device_id nvme_id_table[] = {
 				NVME_QUIRK_DISABLE_WRITE_ZEROES, },
 	{ PCI_DEVICE(0x126f, 0x2263),	/* Silicon Motion unidentified */
 		.driver_data = NVME_QUIRK_NO_NS_DESC_LIST, },
+	{ PCI_DEVICE(0x1b4b, 0x1092),	/* Lexar 256 GB SSD */
+		.driver_data = NVME_QUIRK_NO_NS_DESC_LIST |
+				NVME_QUIRK_IGNORE_DEV_SUBNQN, },
 	{ PCI_DEVICE(0x1bb1, 0x0100),   /* Seagate Nytro Flash Storage */
 		.driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, },
 	{ PCI_DEVICE(0x1c58, 0x0003),	/* HGST adapter */
-- 
2.30.0.617.g56c4b15f3c-goog




More information about the Linux-nvme mailing list