diff options
| author | Jaehoon Chung <jh80.chung@samsung.com> | 2011-03-17 07:32:33 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2011-03-17 15:35:20 -0400 |
| commit | e61cf1184d72e574460492fd6c6b6d8a3ace2089 (patch) | |
| tree | 2a95d08ee1b19a7cbeadc7ca0622f93bbcc9e3f2 /include | |
| parent | fc3d7720541d4b70cbae25ac121d7e6343125090 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mmc/dw_mmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h index f08163198877..6c324de20de2 100644 --- a/include/linux/mmc/dw_mmc.h +++ b/include/linux/mmc/dw_mmc.h | |||
| @@ -140,6 +140,7 @@ struct dw_mci { | |||
| 140 | u32 bus_hz; | 140 | u32 bus_hz; |
| 141 | u32 current_speed; | 141 | u32 current_speed; |
| 142 | u32 num_slots; | 142 | u32 num_slots; |
| 143 | u32 fifoth_val; | ||
| 143 | struct platform_device *pdev; | 144 | struct platform_device *pdev; |
| 144 | struct dw_mci_board *pdata; | 145 | struct dw_mci_board *pdata; |
| 145 | struct dw_mci_slot *slot[MAX_MCI_SLOTS]; | 146 | struct dw_mci_slot *slot[MAX_MCI_SLOTS]; |
