]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: tmio: Mask all IRQs when inactive
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Aug 2014 09:55:57 +0000 (11:55 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:10 +0000 (13:59 +0200)
To make sure we don't receive any spurious IRQs while we are inactive,
mask the IRQs from within the ->runtime_suspend() callback.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/mmc/host/tmio_mmc_pio.c

index 23451772c0fa8b726a9fe5ba058896405e855bca..d52280d671f037224d36ef7c0e4c10d2af706e64 100644 (file)
@@ -1168,6 +1168,8 @@ int tmio_mmc_host_runtime_suspend(struct device *dev)
        struct mmc_host *mmc = dev_get_drvdata(dev);
        struct tmio_mmc_host *host = mmc_priv(mmc);
 
+       tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL);
+
        if (host->clk_cache)
                tmio_mmc_clk_stop(host);