summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-08-10 17:49:20 -0400
committerTom Rini <trini@konsulko.com>2022-08-10 17:49:20 -0400
commitcdebee1fd9fa04cc4c972f826bae19b28c253eb0 (patch)
tree97a13d6a54ea8cb825d19cd65d4c9480ffd327dc /drivers/mmc/mmc.c
parent3dd4e916324efc825a7ee8e412f5cf1ded839021 (diff)
parent468091a4602f78aaa11d41190ae66d8b240e144a (diff)
Merge branch '2022-08-10-assorted-updates'
- An assortment of bugfixes and minor updates
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 8efee9977e4..0b7c0be8cbc 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -831,6 +831,9 @@ static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value,
return 0;
}
+ if (!send_status)
+ return 0;
+
/* Finally wait until the card is ready or indicates a failure
* to switch. It doesn't hurt to use CMD13 here even if send_status
* is false, because by now (after 'timeout_ms' ms) the bus should be