Skip to contentSkip to conversation

mmc: card: If the card does not support CMD23, disable the reliable write

PATCH New Yong Li 1 participant 1 message Apr 11, 2013 MMC, SD and SDIO

lore
Share & tools
lore

Yong Li

author
#0 lore raw

PATCH 1/1 mmc: card: If the card does not support CMD23, disable the reliable write

---
 drivers/mmc/card/block.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mmc/card/block.c +2 -1
index 21056b9..8039a87 100644
@@ -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;
Signature · 1 line
1.7.10.4