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 v5 0/2] mmc: core: hw_reset changes
Date: Fri, 28 Nov 2014 16:56:52 +0100 [thread overview]
Message-ID: <1417190214-32181-1-git-send-email-johanru@axis.com> (raw)
Make the mmc_hw_reset routines more generic, by putting the (e)MMC-
specific stuff in the new bus_ops->hw_reset. Simplify them by putting
the functionality required by the mmc_test framework in mmc_test.c
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?
v5:
- Move the mmc_test-specific code to mmc_test.c
- Fall back to a power_cycle if the bus_ops->hw_reset is missing
- Because of this, skip the bus_ops->hw_reset in sd.c
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: refactor the hw_reset routines
mmc: core: let hw_reset default to power_cycle
drivers/mmc/card/mmc_test.c | 24 +++++++++-----
drivers/mmc/core/core.c | 70 ++++++++++++++++--------------------------
drivers/mmc/core/core.h | 2 +-
drivers/mmc/core/mmc.c | 23 ++++++++++++++
drivers/mmc/core/mmc_ops.c | 1 +
drivers/mmc/core/mmc_ops.h | 1 -
include/linux/mmc/core.h | 5 ++-
7 files changed, 70 insertions(+), 56 deletions(-)
--
1.7.2.5
next reply other threads:[~2014-11-28 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 15:56 Johan Rudholm [this message]
2014-11-28 15:56 ` [PATCH v5 1/2] mmc: core: refactor the hw_reset routines Johan Rudholm
2014-11-28 15:56 ` [PATCH v5 2/2] mmc: core: let hw_reset default to power_cycle 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=1417190214-32181-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.