Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1207380

[PATCH] mmc: block: disable the reliable write If the card does not support CMD23

From sdliyong@gmail.com
Newsgroups linux.kernel
Subject [PATCH] mmc: block: disable the reliable write If the card does not support CMD23
Date 2015-08-14 09:40 +0200
Message-ID <pXhKN-3Sy-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] mmc: block: disable the reliable write If the card does not support CMD23 sdliyong@gmail.com - 2015-08-14 09:40 +0200
  Re: [PATCH] mmc: block: disable the reliable write If the card does  not support CMD23 Shawn Lin <shawn.lin@rock-chips.com> - 2015-08-14 10:20 +0200
    RE: [PATCH] mmc: block: disable the reliable write If the card does  not support CMD23 LIYONG <sdliyong@gmail.com> - 2015-08-15 14:20 +0200
      Re: [PATCH] mmc: block: disable the reliable write If the card does  not support CMD23 Shawn Lin <shawn.lin@rock-chips.com> - 2015-08-17 08:50 +0200

csiph-web