From: Wolfram Sang <wsa@the-dreams.de>
To: linux-mmc@vger.kernel.org
Cc: Wolfram Sang <wsa@the-dreams.de>,
linux-renesas-soc@vger.kernel.org,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: [PATCH 0/5] mmc: tmio: make CTL_STATUS handling consistent
Date: Thu, 14 Apr 2016 18:16:44 +0200 [thread overview]
Message-ID: <1460650609-2105-1-git-send-email-wsa@the-dreams.de> (raw)
It took me a little to discover that CTL_STATUS has a different handling than
the other registers. CTL_STATUS and CTL_STATUS2, both u16, are merged into a
virtual u32. However, CTL_STATUS2 was also directly accessed.
Clean this up, make this consistent, and document this. Making the driver less
complex and easier to work with.
Tested on Renesas R-Car Gen2 and Gen3. It is on top of my not-yet applied
series "[PATCH 0/6] mmc: tmio/sdhi: clean up cruft". A complete branch is here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/sdhi-uhs
Wolfram
Wolfram Sang (5):
mmc: tmio: give read32/write32 functions more descriptive names
mmc: tmio: use BIT() within defines
mmc: tmio: use CTL_STATUS consistently
mmc: tmio/sdhi: distinguish between SCLKDIVEN and ILL_FUNC
mmc: tmio: document CTL_STATUS handling
drivers/mmc/host/sh_mobile_sdhi.c | 3 ++-
drivers/mmc/host/tmio_mmc.h | 56 ++++++++++++++++++++-------------------
drivers/mmc/host/tmio_mmc_pio.c | 24 ++++++++---------
3 files changed, 43 insertions(+), 40 deletions(-)
--
2.7.0
next reply other threads:[~2016-04-14 16:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 16:16 Wolfram Sang [this message]
2016-04-14 16:16 ` [PATCH 1/5] mmc: tmio: give read32/write32 functions more descriptive names Wolfram Sang
2016-04-14 16:16 ` [PATCH 2/5] mmc: tmio: use BIT() within defines Wolfram Sang
2016-04-14 16:16 ` [PATCH 3/5] mmc: tmio: use CTL_STATUS consistently Wolfram Sang
2016-04-14 16:16 ` [PATCH 4/5] mmc: tmio/sdhi: distinguish between SCLKDIVEN and ILL_FUNC Wolfram Sang
2016-04-14 16:16 ` [PATCH 5/5] mmc: tmio: document CTL_STATUS handling Wolfram Sang
2016-04-15 0:51 ` [PATCH 0/5] mmc: tmio: make CTL_STATUS handling consistent Simon Horman
2016-04-15 9:11 ` Wolfram Sang
2016-04-26 16:25 ` Ulf Hansson
2016-04-26 16:46 ` Wolfram Sang
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=1460650609-2105-1-git-send-email-wsa@the-dreams.de \
--to=wsa@the-dreams.de \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@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;
as well as URLs for NNTP newsgroup(s).