* [PATCH 1/1] mmc: card: If the card does not support CMD23, disable the reliable write
@ 2013-04-11 6:31 Yong Li
0 siblings, 0 replies; only message in thread
From: Yong Li @ 2013-04-11 6:31 UTC (permalink / raw)
To: Chris Ball, linux-mmc, Namjae Jeon; +Cc: Yong Li
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 21056b9..8039a87 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1175,7 +1175,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;
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-11 6:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 6:31 [PATCH 1/1] mmc: card: If the card does not support CMD23, disable the reliable write Yong Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox