[PATCH 4/4] mmc: sd: add power_reset callback

2014-10-24 Thread Johan Rudholm
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

[PATCH 0/4] mmc: core: hw_reset changes

2014-10-24 Thread Johan Rudholm
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

[PATCH 2/4] mmc: core: use mmc_power_up in hw_reset

2014-10-24 Thread Johan Rudholm
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

[PATCH 3/4] mmc: core: make hw_reset generic

2014-10-24 Thread Johan Rudholm
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

[PATCH 1/4] mmc: core: use mmc_send_status to check hw_reset

2014-10-24 Thread Johan Rudholm
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,

[PATCH] mmc: host: atmel-mci: Add support for non-removable slots

2014-10-24 Thread Timo Kokkonen
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 --