LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: core: Apply trim broken quirk to R1J57L
@ 2021-01-18  4:27 Xiaolei Wang
  2021-01-20 13:40 ` Ulf Hansson
  0 siblings, 1 reply; 8+ messages in thread
From: Xiaolei Wang @ 2021-01-18  4:27 UTC (permalink / raw
  To: ulf.hansson; +Cc: pali, lee.jones, linux-mmc, linux-kernel, xiaolei.wang

R1J57L mmc chip hw capibility indicates that it supports trim function,
but this function does not work properly, the SDIO bus does not respond,
and the IO has been waiting so set quirks to skip trim

Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
---
 drivers/mmc/core/quirks.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/core/quirks.h b/drivers/mmc/core/quirks.h
index d68e6e513a4f..63e02391c133 100644
--- a/drivers/mmc/core/quirks.h
+++ b/drivers/mmc/core/quirks.h
@@ -89,6 +89,8 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = {
 		  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
 	MMC_FIXUP("VZL00M", CID_MANFID_SAMSUNG, CID_OEMID_ANY, add_quirk_mmc,
 		  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
+	MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc,
+		  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
 
 	/*
 	 *  On Some Kingston eMMCs, performing trim can result in
@@ -98,6 +100,8 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = {
 		  MMC_QUIRK_TRIM_BROKEN),
 	MMC_FIXUP("V10016", CID_MANFID_KINGSTON, CID_OEMID_ANY, add_quirk_mmc,
 		  MMC_QUIRK_TRIM_BROKEN),
+	MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc,
+		  MMC_QUIRK_TRIM_BROKEN),
 
 	END_FIXUP
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-27  8:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-18  4:27 [PATCH] mmc: core: Apply trim broken quirk to R1J57L Xiaolei Wang
2021-01-20 13:40 ` Ulf Hansson
2021-01-21  9:54   ` Wang, Xiaolei
2021-01-21 13:25     ` Ulf Hansson
2021-01-25 10:46       ` Fabio Estevam
2021-01-25 11:34         ` Bough Chen
2021-01-27  7:36       ` Bough Chen
2021-01-27  8:29         ` Wang, Xiaolei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).