linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: block: disable the reliable write If the card does not support CMD23
@ 2015-08-14  7:30 sdliyong
  2015-08-14  8:13 ` Shawn Lin
  2015-08-25 12:06 ` Ulf Hansson
  0 siblings, 2 replies; 10+ messages in thread
From: sdliyong @ 2015-08-14  7:30 UTC (permalink / raw)
  To: chris, ulf.hansson, sdliyong, linux-mmc, linux-kernel

From: Yong Li <sdliyong@gmail.com>

Signed-off-by: Yong Li <sdliyong@gmail.com>
---
 drivers/mmc/card/block.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 452782b..d9e3c45 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1366,7 +1366,8 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq,
 	bool do_rel_wr = ((req->cmd_flags & REQ_FUA) ||
 			  (req->cmd_flags & REQ_META)) &&
 		(rq_data_dir(req) == WRITE) &&
-		(md->flags & MMC_BLK_REL_WR);
+		(md->flags & MMC_BLK_REL_WR) &&
+		!(card->quirks & MMC_QUIRK_BLK_NO_CMD23);
 
 	memset(brq, 0, sizeof(struct mmc_blk_request));
 	brq->mrq.cmd = &brq->cmd;
-- 
2.1.0


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

end of thread, other threads:[~2015-08-28  0:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14  7:30 [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 sdliyong
2015-08-14  8:13 ` Shawn Lin
2015-08-15 12:14   ` LIYONG
2015-08-17  6:48     ` Shawn Lin
2015-08-25 12:06 ` Ulf Hansson
2015-08-26  6:15   ` LIYONG
2015-08-26  7:20     ` Shawn Lin
2015-08-26 12:38       ` LIYONG
2015-08-27 13:22   ` Ulf Hansson
2015-08-28  0:38     ` LIYONG

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 NNTP newsgroup(s).