From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
Linus Walleij <linus.walleij@linaro.org>,
Viresh Kumar <vireshk@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] mmc: simplify WP/CD GPIO handling
Date: Mon, 09 Dec 2019 22:09:35 +0100 [thread overview]
Message-ID: <cover.1575925023.git.mirq-linux@rere.qmqm.pl> (raw)
This series removes convoluted handling of inverted CD and WP lines in
SD/MMC host drivers when using GPIOs.
First patch, sent separately earlier, adds gpiod_toggle_active_low() to
switch line inversion flag in the gpiod structure. Next two patches
modify WP and CD initialization to apply all the inversions onto gpiod's
active-low flag. Final patch removes now-unused argument from init functions.
x86 allyesconfig build-tested.
Michał Mirosław (4):
gpio: add gpiod_toggle_active_low()
mmc: rework wp-gpio handling
mmc: rework cd-gpio handling
mmc: remove mmc_gpiod_request_*(invert_gpio)
drivers/gpio/gpiolib-of.c | 21 -------------------
drivers/gpio/gpiolib.c | 11 ++++++++++
drivers/mmc/core/host.c | 33 ++++++++----------------------
drivers/mmc/core/slot-gpio.c | 30 ++++++++++-----------------
drivers/mmc/host/davinci_mmc.c | 4 ++--
drivers/mmc/host/mmc_spi.c | 4 ++--
drivers/mmc/host/mmci.c | 4 ++--
drivers/mmc/host/pxamci.c | 12 +++++------
drivers/mmc/host/s3cmci.c | 4 ++--
drivers/mmc/host/sdhci-acpi.c | 2 +-
drivers/mmc/host/sdhci-esdhc-imx.c | 15 +++++++-------
drivers/mmc/host/sdhci-pci-core.c | 4 ++--
drivers/mmc/host/sdhci-sirf.c | 2 +-
drivers/mmc/host/sdhci-spear.c | 2 +-
drivers/mmc/host/tmio_mmc_core.c | 2 +-
include/linux/gpio/consumer.h | 7 +++++++
include/linux/mmc/slot-gpio.h | 5 ++---
17 files changed, 67 insertions(+), 95 deletions(-)
--
2.20.1
next reply other threads:[~2019-12-09 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 21:09 Michał Mirosław [this message]
2019-12-09 21:09 ` [PATCH 1/4] gpio: add gpiod_toggle_active_low() Michał Mirosław
2019-12-11 0:39 ` Linus Walleij
2019-12-09 21:09 ` [PATCH 2/4] mmc: rework wp-gpio handling Michał Mirosław
2019-12-09 21:09 ` [PATCH 3/4] mmc: rework cd-gpio handling Michał Mirosław
2019-12-09 21:09 ` [PATCH 4/4] mmc: remove mmc_gpiod_request_*(invert_gpio) Michał Mirosław
2019-12-11 0:37 ` [PATCH 0/4] mmc: simplify WP/CD GPIO handling Linus Walleij
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=cover.1575925023.git.mirq-linux@rere.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=adrian.hunter@intel.com \
--cc=bgolaszewski@baylibre.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=vireshk@kernel.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).