]> rtime.felk.cvut.cz Git - can-eth-gw-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>
Wed, 7 Nov 2012 19:55:30 +0000 (14:55 -0500)
commit2da1d7f2948900cd50d38643db39f790edb3cc96
tree361b697b0f83fa74cf16741359a8d234cfb50116
parent63ef5d8c28b2a944f104d854254941e7375c85a3
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