mmc: slot-gpio: Add a function to enable/disable card detect IRQ wakeup
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 27 Feb 2018 12:51:25 +0000 (14:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Mar 2018 12:04:32 +0000 (13:04 +0100)
commit36f1d7e817a5540f6624ce1007339688bd443308
treee3a6fea5947f33eef7eb2207675e85adcc93cf75
parentd5d568fad9a52ac4eba5d9a080a5cddb8498fa5e
mmc: slot-gpio: Add a function to enable/disable card detect IRQ wakeup

Commit 03dbaa04a2e5 ("mmc: slot-gpio: Add support to enable irq wake on
cd_irq") enabled wakeup at initialization. However drivers may wish to
enable and disable based on different criteria. Add a helper function
mmc_gpio_set_cd_wake() to make it easy for drivers to do that.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/slot-gpio.c
include/linux/mmc/slot-gpio.h