]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: dw_mmc: enable controller interrupt before calling mmc_start_host
authorYuvaraj CD <yuvaraj.cd@gmail.com>
Mon, 8 Oct 2012 08:59:51 +0000 (14:29 +0530)
committerChris Ball <cjb@laptop.org>
Thu, 25 Oct 2012 13:01:41 +0000 (09:01 -0400)
commite1964422c21bc26b7a33e57d488f3c7b1a2bc982
tree3008c92b8121b7c37456bbee70e129832f71190a
parent25d4638fe078a2ada443eea30dc64b88403bdcae
mmc: dw_mmc: enable controller interrupt before calling mmc_start_host

As mmc_start_host is getting called before enabling the dw_mmc controller
interrupt, there is a problem of missing the SDMMC_INT_CMD_DONE for the
very first command sent by the sdio_reset.

This problem occurs only when we disable MMC debugging i.e, MMC_DEBUG=n.
This patch enables the dw_mmc controller interrupt before mmc_start_host.

Signed-off-by: Yuvaraj CD <yuvaraj.cd@samsung.com>
Reviewed-by: Girish K S <girish.shivananjappa@linaro.org>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c