public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mmc: core: hw_reset changes
@ 2014-11-24 11:06 Johan Rudholm
  2014-11-24 11:06 ` [PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops Johan Rudholm
  2014-11-24 11:06 ` [PATCH v4 2/2] mmc: sd: add hw_reset callback Johan Rudholm
  0 siblings, 2 replies; 9+ messages in thread
From: Johan Rudholm @ 2014-11-24 11:06 UTC (permalink / raw)
  To: linux-mmc, Chris Ball, Ulf Hansson
  Cc: Adrian Hunter, Guennadi Liakhovetski, David Lanzendörfer,
	Jesper Nilsson, 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 eMMC?

v4:
 - Rebase onto next

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 (2):
  mmc: core: turn hw_reset into a bus_ops
  mmc: sd: add hw_reset callback

 drivers/mmc/core/core.c |   56 +++++++++++++++-------------------------------
 drivers/mmc/core/core.h |    5 ++++
 drivers/mmc/core/mmc.c  |   40 +++++++++++++++++++++++++++++++++
 drivers/mmc/core/sd.c   |   13 +++++++++++
 4 files changed, 76 insertions(+), 38 deletions(-)

-- 
1.7.2.5


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

end of thread, other threads:[~2015-01-09 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 11:06 [PATCH v4 0/2] mmc: core: hw_reset changes Johan Rudholm
2014-11-24 11:06 ` [PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops Johan Rudholm
2014-11-25 13:48   ` Ulf Hansson
2014-11-27  9:05     ` Johan Rudholm
2014-11-27  9:50       ` Ulf Hansson
2014-11-28 15:54         ` Johan Rudholm
2014-12-01 10:50           ` Ulf Hansson
2015-01-09 11:06             ` Johan Rudholm
2014-11-24 11:06 ` [PATCH v4 2/2] mmc: sd: add hw_reset callback Johan Rudholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox