Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH v5 0/3] mmc: atmel-mci: Convert to gpio descriptors
@ 2023-08-23 10:40 Balamanikandan Gunasundar
  2023-08-23 10:40 ` [PATCH v5 1/3] " Balamanikandan Gunasundar
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Balamanikandan Gunasundar @ 2023-08-23 10:40 UTC (permalink / raw)
  To: linus.walleij, dmitry.torokhov, ulf.hansson, linux-kernel,
	linux-mmc, linux-arm-kernel, ludovic.desroches, nicolas.ferre,
	alexandre.belloni
  Cc: hari.prasathge, balamanikandan.gunasundar

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-24 10:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23 10:40 [PATCH v5 0/3] mmc: atmel-mci: Convert to gpio descriptors Balamanikandan Gunasundar
2023-08-23 10:40 ` [PATCH v5 1/3] " Balamanikandan Gunasundar
2023-08-23 10:40 ` [PATCH v5 2/3] mmc: atmel-mci: move atmel MCI header file Balamanikandan Gunasundar
2023-08-23 10:40 ` [PATCH v5 3/3] mmc: atmel-mci: Move card detect gpio polarity quirk to gpiolib Balamanikandan Gunasundar
2023-08-23 12:41   ` Linus Walleij
2023-08-24  6:39     ` Balamanikandan.Gunasundar
2023-08-24  8:33       ` Linus Walleij
2023-08-24 10:33         ` Balamanikandan.Gunasundar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox