Enable power cycle and re-initialization of SD cards via the mmc_reset
function. Power cycling a buggy SD card sometimes helps it get back on
track.
Signed-off-by: Johan Rudholm
---
drivers/mmc/core/sd.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/dri
Make the mmc_hw_reset routines more generic, so we can easily add a
power cycle of SD cards as well. Also simplify the (e)MMC specific
parts of the reset code.
As I don't have an eMMC device myself, much less one with a reset line,
I'd be very happy if someone could help me test the code with an e
The steps performed in mmc_do_hw_reset for eMMC:s after the hardware
reset are very similar to those performed by mmc_power_up, so do a call
to this function instead.
Signed-off-by: Johan Rudholm
---
drivers/mmc/core/core.c | 11 +--
1 files changed, 1 insertions(+), 10 deletions(-)
d
Move the (e)MMC specific hw_reset code from core.c into mmc.c and call
it from the new bus_ops member power_reset. This also lets us add code
for reseting SD cards as well.
Rename the mmc_hw_reset* functions into mmc_reset*, since what they
now actually do depends on the device type (and it may be
Signed-off-by: Johan Rudholm
---
drivers/mmc/core/core.c | 10 ++
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 7dc0c85..5d215ee 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2265,15 +2265,
Add support for non-removable slots which have no card detection GPIO
and which should not be polled for a card change.
Signed-off-by: Timo Kokkonen
---
drivers/mmc/host/atmel-mci.c | 11 +--
include/linux/atmel-mci.h| 2 ++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --