linux-uconsole/include/linux/mmc
Ulf Hansson a0dd3d95fb mmc: core: Add helper function to indicate if SDIO IRQs is enabled
[ Upstream commit bd880b0069 ]

To avoid each host driver supporting SDIO IRQs, from keeping track
internally about if SDIO IRQs has been claimed, let's introduce a common
helper function, sdio_irq_claimed().

The function returns true if SDIO IRQs are claimed, via using the
information about the number of claimed irqs. This is safe, even without
any locks, as long as the helper function is called only from
runtime/system suspend callbacks of the host driver.

Tested-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 13:09:57 +02:00
..
card.h mmc: block: handle complete_work on separate workqueue 2019-02-20 10:25:46 +01:00
core.h mmc: core: Export a function mmc_sw_reset() to allow soft reset of cards 2018-05-08 09:33:42 +02:00
host.h mmc: core: Add helper function to indicate if SDIO IRQs is enabled 2019-10-05 13:09:57 +02:00
mmc.h mmc: core: Adjust and reuse the macro of R1_STATUS(x) 2018-07-16 11:21:45 +02:00
pm.h
sd.h
sdhci-pci-data.h
sdio.h
sdio_func.h mmc: core: Add sdio_retune_hold_now() and sdio_retune_release() 2019-06-25 11:35:53 +08:00
sdio_ids.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-06-06 18:39:49 -07:00
sh_mmcif.h
slot-gpio.h mmc: slot-gpio: Add a function to enable/disable card detect IRQ wakeup 2018-03-05 13:04:32 +01:00