[PATCH v3 0/3] mmc: core: hw_reset changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 eMMC?

Please have a look at the handling of bus_mode in
mmc_set_initial_state(), we set it to MMC_BUSMODE_PUSHPULL also when
powering off a device. If this is not OK, we'll just have to leave
bus_mode out of it.

v3:
 - Keep mmc_can_reset
 - Always set bus_mode = MMC_BUSMODE_PUSHPULL in mmc_set_initial_state()

v2:
 - Call the new bus_ops member hw_reset instead of power_reset
 - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset
   instead of mmc_power_up
 - Keep "mmc_hw_reset" naming

Johan Rudholm (3):
  mmc: core: consistent handling of initial values
  mmc: core: turn hw_reset into a bus_ops
  mmc: sd: add hw_reset callback

 drivers/mmc/core/core.c |   99 ++++++++++++++++++-----------------------------
 drivers/mmc/core/core.h |    6 +++
 drivers/mmc/core/mmc.c  |   40 +++++++++++++++++++
 drivers/mmc/core/sd.c   |   13 ++++++
 4 files changed, 97 insertions(+), 61 deletions(-)

-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux