mmc: dw_mmc: gather each reset code into functions
commit31bff450d243bc6a75bdfd0a60e4bc18907c7f27
authorSeungwon Jeon <tgih.jun@samsung.com>
Fri, 30 Aug 2013 15:14:23 +0000 (31 00:14 +0900)
committerChris Ball <cjb@laptop.org>
Thu, 26 Sep 2013 01:36:07 +0000 (25 21:36 -0400)
tree92b89800742aec7be3a446076b837b5a8fe0f32c
parente352c813110004b205ad285dcf54619a4c09c47c
mmc: dw_mmc: gather each reset code into functions

There are three resets in CTRL register.  FIFO reset is especially used
in several points with the same routine. It could be replaced with one
function and the others may be applied similarly if needed.  So,
mci_wait_reset() is modified to allow various bit field of reset.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c