Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d2e72ff authored by Ziqi Chen's avatar Ziqi Chen
Browse files

mmc: core: change judgement for card busy detection



Currently we check cmd.flags & MMC_RSP_R1B in __mmc_blk_ioctl_cmd() to
decide whether need to do card busy detection or not. In this way, all
MMC_RSP_R1 Cmds which don't need to do card busy detection would meet
this judgement as well. So checking cmd.flags & MMC_RSP_BUSY is enough.

Change-Id: I9ee27a8e032509185d33afa2c423afa5ac4ff263
Signed-off-by: default avatarZiqi Chen <ziqichen@codeaurora.org>
parent 95c7bdc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -648,7 +648,7 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md,

	memcpy(&(idata->ic.response), cmd.resp, sizeof(cmd.resp));

	if (idata->rpmb || (cmd.flags & MMC_RSP_R1B)) {
	if (idata->rpmb || (cmd.flags & MMC_RSP_BUSY)) {
		/*
		 * Ensure RPMB/R1B command has completed by polling CMD13
		 * "Send Status".