[PATCH v5 0/3] mmc: atmel-mci: Convert to gpio descriptors

From: Balamanikandan Gunasundar
Date: Wed Aug 23 2023 - 06:40:37 EST


Replace legacy gpio apis with gpio descriptors. Handle card detection gpio
polarity in gpiolib

v5:
- Rebase to latest next branch of
https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git
- Move handling active_high inversion logic to gpiolib instead of reading
the raw value of gpio and inverting it manually.
- Use PTR_ERR_OR_ZERO instead of IS_ERR. To avoid ignoring valid errors as
suggested by Dmitry Torokhov
- Use gpiod_get_value_cansleep() instead of gpiod_get_value()

v4:
- Rebase on top of next branch
https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git

v3:
- [PATCH v3 1/2] mmc: atmel-mci: Convert to gpio descriptors
Convert devm_gpiod_get_from_of_node() into devm_fwnode_gpiod_get()

v2:
- [PATCH 1/2] mmc: atmel-mci: Convert to gpio descriptors
Remove "#include <linux/gpio.h>" as it is not necessary
- [PATCH 2/2] mmc: atmel-mci: move atmel MCI header file
Move linux/atmel-mci.h into drivers/mmc/host/atmel-mci.c as it is
used only by one file


Balamanikandan Gunasundar (3):
mmc: atmel-mci: Convert to gpio descriptors
mmc: atmel-mci: move atmel MCI header file
mmc: atmel-mci: Move card detect gpio polarity quirk to gpiolib

drivers/gpio/gpiolib-of.c | 7 ++
drivers/mmc/host/atmel-mci.c | 133 +++++++++++++++++++++--------------
include/linux/atmel-mci.h | 46 ------------
3 files changed, 89 insertions(+), 97 deletions(-)
delete mode 100644 include/linux/atmel-mci.h

--
2.25.1