devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mmc: support setting card detect interrupt from drivers and use it in meson-gx
@ 2023-02-14 21:39 Heiner Kallweit
  2023-02-14 21:41 ` [PATCH v2 1/3] mmc: core: support setting card detect interrupt from drivers Heiner Kallweit
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Heiner Kallweit @ 2023-02-14 21:39 UTC (permalink / raw)
  To: Rob Herring, Ulf Hansson, Krzysztof Kozlowski, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl
  Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson..., devicetree@vger.kernel.org

On certain platforms like Amlogic Meson gpiod_to_irq() isn't supported
due to the design of gpio / interrupt controller. Therefore provide an
option for drivers to pass the card detect interrupt number
(retrieved e.g. from device tree) to mmc core.

v2:
- use another mechanism for passing and storing the cd interrupt
- add patch 2

Heiner Kallweit (3):
  mmc: core: support setting card detect interrupt from drivers
  dt-bindings: mmc: meson-gx: support specifying cd interrupt
  mmc: meson-gx: support platform interrupt as card detect interrupt

 .../bindings/mmc/amlogic,meson-gx-mmc.yaml      |  2 +-
 drivers/mmc/core/slot-gpio.c                    | 17 ++++++++++++++++-
 drivers/mmc/host/meson-gx-mmc.c                 |  5 ++++-
 include/linux/mmc/slot-gpio.h                   |  1 +
 4 files changed, 22 insertions(+), 3 deletions(-)

-- 
2.39.1



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

end of thread, other threads:[~2023-02-16 11:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-14 21:39 [PATCH v2 0/3] mmc: support setting card detect interrupt from drivers and use it in meson-gx Heiner Kallweit
2023-02-14 21:41 ` [PATCH v2 1/3] mmc: core: support setting card detect interrupt from drivers Heiner Kallweit
2023-02-14 21:42 ` [PATCH v2 2/3] dt-bindings: mmc: meson-gx: support specifying cd interrupt Heiner Kallweit
2023-02-16  9:18   ` Krzysztof Kozlowski
2023-02-16  9:29     ` Heiner Kallweit
2023-02-16  9:34       ` Krzysztof Kozlowski
2023-02-16  9:41         ` Heiner Kallweit
2023-02-16  9:49           ` Heiner Kallweit
2023-02-16 11:12             ` Ulf Hansson
2023-02-14 21:44 ` [PATCH v2 3/3] mmc: meson-gx: support platform interrupt as card detect interrupt Heiner Kallweit
2023-02-15 12:48 ` [PATCH v2 0/3] mmc: support setting card detect interrupt from drivers and use it in meson-gx Ulf Hansson
2023-02-16  9:18   ` Krzysztof Kozlowski
2023-02-16 11:14     ` Ulf Hansson

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).