[Armadeus-commitlog] armadeus/u-boot branch, armadeus-2020.07, updated. 003d786995a88a2ddf87fc37d9
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2021-11-05 17:10:00
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus/u-boot".
The branch, armadeus-2020.07 has been updated
via 003d786995a88a2ddf87fc37d9b339a9002db79b (commit)
from 10c6280ffaa385b193438fea8da99e9a29e1cfc7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 003d786995a88a2ddf87fc37d9b339a9002db79b
Author: Haibo Chen <hai...@nx...>
Date: Tue Sep 22 18:11:42 2020 +0800
mmc: do not send cmd13 if the parameter 'send_status' is 0 for __mmc_switch
According to the code logic in __mmc_switch, if the parameter 'send_status'
is zero, no need to send cmd13, just wait the stated timeout time, then
can return directly.
Signed-off-by: Haibo Chen <hai...@nx...>
(cherry picked from commit ef5ab0d13a7a44469f6c765c8acc8d54c23213de)
-----------------------------------------------------------------------
Summary of changes:
drivers/mmc/mmc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 41f7aeeeb9..944c4e507d 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -804,8 +804,10 @@ static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value,
* capable of polling by using mmc_wait_dat0, then rely on waiting the
* stated timeout to be sufficient.
*/
- if (ret == -ENOSYS && !send_status)
+ if (ret == -ENOSYS && !send_status) {
mdelay(timeout_ms);
+ 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
hooks/post-receive
--
armadeus/u-boot
|