summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2023-02-14 22:41:19 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2023-02-15 13:46:09 +0100
commit88f94c782b0ee2297685764f942e7c176d6b89aa (patch)
tree47460f77b163a8fb509c6e12e15953809df771e3 /include/linux
parent9e622229bbf4f2204f7a4bc47f9dffb2307e4949 (diff)
downloadlinux-stable-88f94c782b0ee2297685764f942e7c176d6b89aa.tar.gz
linux-stable-88f94c782b0ee2297685764f942e7c176d6b89aa.tar.bz2
linux-stable-88f94c782b0ee2297685764f942e7c176d6b89aa.zip
mmc: core: support setting card detect interrupt from drivers
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. Suggested-by refers to the mechanism to pass and store the interrupt. Suggested-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/5777f38b-465f-ce48-a87f-5eb8b3c57b0a@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/slot-gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h
index 4ae2f2908f99..5d3d15e97868 100644
--- a/include/linux/mmc/slot-gpio.h
+++ b/include/linux/mmc/slot-gpio.h
@@ -15,6 +15,7 @@ struct mmc_host;
int mmc_gpio_get_ro(struct mmc_host *host);
int mmc_gpio_get_cd(struct mmc_host *host);
+void mmc_gpio_set_cd_irq(struct mmc_host *host, int irq);
int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
unsigned int idx, bool override_active_level,
unsigned int debounce);