]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Handle failure of enable_irq_wake()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 9 Jan 2018 07:52:21 +0000 (09:52 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 17 Jan 2018 11:30:43 +0000 (12:30 +0100)
commit52aa9dc7aca0e81ddd6bf4230327a474736a6bac
tree29cb63b4a859ef2037fff3612267ad1f2b7149ec
parent5ae8ef0af32f1779fa86a970443c4b616e27b338
mmc: sdhci: Handle failure of enable_irq_wake()

Now that sdhci_enable_irq_wakeups() is a local function, change it to
return whether the IRQ wakeup was successfully enabled. This is in
preparation for adding more conditions for whether IRQ wakeup is enabled.

Note it is assumed, for SDHCI devices, that suspend is more important than
wakeup, so we continue to suspend regardless.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h