public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Rudholm <johan.rudholm@axis.com>
To: linux-mmc@vger.kernel.org, Chris Ball <chris@printf.net>,
	Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Adrian Hunter" <adrian.hunter@intel.com>,
	"Guennadi Liakhovetski" <g.liakhovetski@gmx.de>,
	"David Lanzendörfer" <david.lanzendoerfer@o2s.ch>,
	"Jesper Nilsson" <jespern@axis.com>,
	"Johan Rudholm" <johanru@axis.com>
Subject: [PATCH v3 0/3] mmc: core: hw_reset changes
Date: Thu,  6 Nov 2014 14:46:53 +0100	[thread overview]
Message-ID: <1415281616-24661-1-git-send-email-johanru@axis.com> (raw)

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


             reply	other threads:[~2014-11-06 13:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 13:46 Johan Rudholm [this message]
2014-11-06 13:46 ` [PATCH v3 1/3] mmc: core: consistent handling of initial values Johan Rudholm
2014-11-11  9:45   ` Ulf Hansson
2014-11-06 13:46 ` [PATCH v3 2/3] mmc: core: turn hw_reset into a bus_ops Johan Rudholm
2014-11-06 13:46 ` [PATCH v3 3/3] mmc: sd: add hw_reset callback Johan Rudholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415281616-24661-1-git-send-email-johanru@axis.com \
    --to=johan.rudholm@axis.com \
    --cc=adrian.hunter@intel.com \
    --cc=chris@printf.net \
    --cc=david.lanzendoerfer@o2s.ch \
    --cc=g.liakhovetski@gmx.de \
    --cc=jespern@axis.com \
    --cc=johanru@axis.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox