mmc: dw_mmc: fixed a wrong UHS_REG 16 bit clear
authorHyeonsu Kim <hyeonsu.kim@samsung.com>
Fri, 22 Feb 2013 00:32:46 +0000 (09:32 +0900)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:03:22 +0000 (12:03 -0400)
commitc69042a51e7d890c373345a7e524e895b266eb72
tree338448164f9f80284776775dea8d4f0e25de14c4
parent87a74d399a165510b053c406699992af9add0da9
mmc: dw_mmc: fixed a wrong UHS_REG 16 bit clear

In the legacy code, driver clear not only UHS_REG 16 bit also 0-15bit.
If we use UHS-1 mode spec card like SDR50, SDR104. UHS_REG 0-15 should
be set by 1 according to slot id. In this case, legacy code can cause
problems.

In particular, UHS_REG consists of DDR_REG[31:16] and VOLT_REG[15:0].
Before adjusting this patch, bit[15:0] is always cleared.

Signed-off-by: Hyeonsu Kim <hyeonsu.kim@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c