All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "mmc: disable UHS modes if Vcc cannot be switched on and off"
@ 2020-08-09 16:03 Pali Rohár
  2020-08-10  0:55 ` Peng Fan
  0 siblings, 1 reply; 9+ messages in thread
From: Pali Rohár @ 2020-08-09 16:03 UTC (permalink / raw)
  To: u-boot

This reverts commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355.

That commit is causing reboot loops on Nokia N900 and basically make U-Boot
on Nokia N900 unusable. Revert it for now until problem is solved.

After reverting that commit U-Boot on Nokia N900 is working again.

Signed-off-by: Pali Roh?r <pali@kernel.org>
---
 drivers/mmc/mmc.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index d79cdef62e..48c1629a19 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -2800,18 +2800,7 @@ int mmc_get_op_cond(struct mmc *mmc)
 		      MMC_QUIRK_RETRY_APP_CMD;
 #endif
 
-	err = mmc_power_cycle(mmc);
-	if (err) {
-		/*
-		 * if power cycling is not supported, we should not try
-		 * to use the UHS modes, because we wouldn't be able to
-		 * recover from an error during the UHS initialization.
-		 */
-		pr_debug("Unable to do a full power cycle. Disabling the UHS modes for safety\n");
-		uhs_en = false;
-		mmc->host_caps &= ~UHS_CAPS;
-		err = mmc_power_on(mmc);
-	}
+	err = mmc_power_on(mmc);
 	if (err)
 		return err;
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-31 16:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-09 16:03 [PATCH] Revert "mmc: disable UHS modes if Vcc cannot be switched on and off" Pali Rohár
2020-08-10  0:55 ` Peng Fan
2020-08-11  3:09   ` Faiz Abbas
2020-08-11  7:49     ` Pali Rohár
2020-08-11 16:03       ` Faiz Abbas
2020-08-11 16:27         ` Pali Rohár
2020-08-14 20:16           ` Pali Rohár
2020-09-24 22:03             ` Pali Rohár
2020-10-31 16:26               ` Pali Rohár

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.