patch to disable reliable write if no CMD23 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Please check the below patch, For some eMMC, we disable the CMD23 for
performance, and it will disable the reliable write too

index dabec55..ea491d1 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1113,7 +1113,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;

Thanks,
Yong Li
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux