[PATCH] nvme: Add quirk for "SAMSUNG MZALQ128HBHQ-000L2"

From: wuxy
Date: Tue Dec 17 2019 - 03:35:35 EST


From: wuxy <wuxy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

Samsung SSD with model number:SAMSUNG MZALQ128HBHQ-000L2 has no response
when doing the "suspend/resume" test.This patch applied
NVME_QUIRK_SIMPLE_SUSPEND to fix this issue.Run the 2500 cycles
"suspend/resume" test after applying this patch and the issue can not
be reproduced again.Co-work with Samsung,they will fix this issue
in future firmware.

BUG= https://partnerissuetracker.corp.google.com/issues/144257635
TEST= run 2500 cycles "suspend/resume" test,the result is passed.

Signed-off-by: Xingyu Wu <wuxy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
drivers/nvme/host/core.c | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 667f18f465be..d16d12abec50 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2414,6 +2414,16 @@ static const struct nvme_core_quirk_entry core_quirks[] = {
.vid = 0x14a4,
.fr = "22301111",
.quirks = NVME_QUIRK_SIMPLE_SUSPEND,
+ },
+ {
+ /*
+ * This Samsung SSD encountered no repsonse issue when
+ * running suspend to idle test.
+ * Samsung will fix this issue in future firmware.
+ */
+ .vid = 0x144d,
+ .mn = "SAMSUNG MZALQ128HBHQ-000L2",
+ .quirks = NVME_QUIRK_SIMPLE_SUSPEND,
}
};

--
2.17.1