mmc: sdhci: restore the enabled dma when do reset all
authorShaohui Xie <Shaohui.Xie@freescale.com>
Thu, 29 Dec 2011 08:33:00 +0000 (16:33 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 20:17:17 +0000 (15:17 -0500)
commit3abc1e804253add41990cbe1461e79c1165108e0
treea8c8a685924c6e1f70f54adbea293096e30999bb
parent8234e86960b07f5a3cf9973de3f9ba9a50450464
mmc: sdhci: restore the enabled dma when do reset all

If dma is enabled, it'll be cleared when reset all is performed, this can
be observed on some platforms, such as P2041 which has a version 2.3
controller, but platform like P4080 which has a version 2.2 controller,
does not suffer this, so we will check if the dma is enabled, we should
restore it after reset all.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c