[Armadeus-commitlog] UNNAMED PROJECT branch, armadeus-2020.07, updated. 47dc6bda13e7aa60ec4a06edda
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2021-09-16 08:04:59
|
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 "UNNAMED PROJECT".
The branch, armadeus-2020.07 has been updated
via 47dc6bda13e7aa60ec4a06eddad274344f7e0a75 (commit)
from e69c987e42180448c1566ef97fe6d6309ebb55ea (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 47dc6bda13e7aa60ec4a06eddad274344f7e0a75
Author: Ye Li <ye...@nx...>
Date: Tue Apr 27 18:19:19 2021 -0700
LF-3483-16 mmc: fix device_remove when HS400_ES is enabled
HS400_ES is missed when down grade to HS mode when
device_remove the mmc device
Signed-off-by: Ye Li <ye...@nx...>
-----------------------------------------------------------------------
Summary of changes:
drivers/mmc/mmc.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 725a36799d..41f7aeeeb9 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -2086,14 +2086,16 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
}
#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT) || \
- CONFIG_IS_ENABLED(MMC_HS400_SUPPORT)
+ CONFIG_IS_ENABLED(MMC_HS400_SUPPORT) || \
+ CONFIG_IS_ENABLED(MMC_HS400_ES_SUPPORT)
/*
* In case the eMMC is in HS200/HS400 mode, downgrade to HS mode
* before doing anything else, since a transition from either of
* the HS200/HS400 mode directly to legacy mode is not supported.
*/
if (mmc->selected_mode == MMC_HS_200 ||
- mmc->selected_mode == MMC_HS_400)
+ mmc->selected_mode == MMC_HS_400 ||
+ mmc->selected_mode == MMC_HS_400_ES)
mmc_set_card_speed(mmc, MMC_HS, true);
else
#endif
@@ -2960,7 +2962,7 @@ int mmc_deinit(struct mmc *mmc)
return sd_select_mode_and_width(mmc, caps_filtered);
} else {
caps_filtered = mmc->card_caps &
- ~(MMC_CAP(MMC_HS_200) | MMC_CAP(MMC_HS_400));
+ ~(MMC_CAP(MMC_HS_200) | MMC_CAP(MMC_HS_400) | MMC_CAP(MMC_HS_400_ES));
return mmc_select_mode_and_width(mmc, caps_filtered);
}
hooks/post-receive
--
UNNAMED PROJECT
|