diff mbox series

nvme: Add quirk for Samsung NVME SSD NM 'SAMSUNG MZALQ128HBHQ-000L2'

Message ID 20191209122728.22433-1-wuxy@bitland.com.cn
State New
Headers show
Series nvme: Add quirk for Samsung NVME SSD NM 'SAMSUNG MZALQ128HBHQ-000L2' | expand

Commit Message

wuxy@bitland.com.cn Dec. 9, 2019, 12:27 p.m. UTC
From: wuxy <wuxy@bitland.corp-partner.google.com>

Samsung SSD with model number:SAMSUNG MZALQ128HBHQ-000L2 has no response
after resume with actions relasted to suspend to idle.This patch applied
NVME_QUIRK_SIMPLE_SUSPEND quirk to fix this issue.

BugLink: https://partnerissuetracker.corp.google.com/u/2/issues/144257635

Signed-off-by: wuxy <wuxy@bitland.corp-partner.google.com>
---
 drivers/nvme/host/core.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index dfe37a525f3a..a82d664d79f2 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2412,7 +2412,17 @@  static const struct nvme_core_quirk_entry core_quirks[] = {
 		.vid = 0x14a4,
 		.fr = "22301111",
 		.quirks = NVME_QUIRK_SIMPLE_SUSPEND,
-	}
+	},
+	{
+		/*
+		 * This Samsung NVME SSD encountered no repsonse issue when
+		 * running suspend to idle test.
+		 * Samsung has resolved the problem in future firmware
+		 */
+		.vid = 0x144d,
+		.mn = "SAMSUNG MZALQ128HBHQ-000L2",
+		.quirks = NVME_QUIRK_SIMPLE_SUSPEND,
+	},
 };
 
 /* match is null-terminated but idstr is space-padded. */