summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2017-04-19 22:52:29 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-06-20 11:30:10 +0300
commite3a84267ab3184656929b4cbf03fca4d446125dd (patch)
tree8edaeabf0c241e2735e79a525df4b0e2078a86ad /include/linux
parent52c8212d80b69d2197bb8506384b6e6a0aef7fb7 (diff)
downloadlinux-e3a84267ab3184656929b4cbf03fca4d446125dd.tar.xz
mmc: core: Prevent processing SDIO IRQs when none is claimed
In cases when MMC_CAP2_SDIO_IRQ_NOTHREAD is set, there is a minor window for when the mmc host could call sdio_run_irqs(), while in fact an SDIO func driver could have decided to released the SDIO IRQ via a call to sdio_release_irq(). In this scenario, processing of the SDIO IRQs are done even if there is none IRQ claimed, which is not what we want. To prevent this from happen, close the window by validating that at least one SDIO IRQs is claimed, before deciding to process them. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions