mmc: card: If the card does not support CMD23, disable the reliable write
PATCH 1/1 mmc: card: If the card does not support CMD23, disable the reliable write
Signed-off-by Yong Li <[email protected]>
--- drivers/mmc/card/block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mmc/card/block.c +2 -1
@@ -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