mmc: dw_mmc: fix suspend/resume operation
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Mar 2011 11:32:33 +0000 (20:32 +0900)
committerChris Ball <cjb@laptop.org>
Thu, 17 Mar 2011 19:35:20 +0000 (15:35 -0400)
commite61cf1184d72e574460492fd6c6b6d8a3ace2089
tree2a95d08ee1b19a7cbeadc7ca0622f93bbcc9e3f2
parentfc3d7720541d4b70cbae25ac121d7e6343125090
mmc: dw_mmc: fix suspend/resume operation

This patch is related to re-init processing on suspend/resume.

When card is resuming, some register is reset.  If card is removable,
maybe controller should be rescan for card.  But if assume card is
non-removable, need to restore the old value at registers.

We store the value of FIFOTH at probe time and then restore it in
dw_mci_resume().

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h