On certain platforms like Amlogic Meson gpiod_to_irq() isn't supported due to the design of gpio / interrupt controller. Therefore provide an option to specify the cd interrupt e.g. by device tree. The host controller can store the interrupt in cd_irq for use by mmc_gpiod_request_cd_irq(). Heiner Kallweit (2): mmc: core: support platform interrupt as card detect interrupt mmc: meson-gx: support platform interrupt as card detect interrupt drivers/mmc/core/slot-gpio.c | 2 +- drivers/mmc/host/meson-gx-mmc.c | 3 +++ include/linux/mmc/host.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) -- 2.39.1