mmc: dw_mmc: shift with slot-id for CLKENA register
Subsystems (2)
Jaehoon Chung
maintainerPATCH 1/1 mmc: dw_mmc: shift with slot-id for CLKENA register
In CLKENA register, can support 16-SD card clocks. If support correctly, must shift with slot-id.
Signed-off-by Jaehoon Chung <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/mmc/host/dw_mmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/dw_mmc.c +2 -2
@@ -652,8 +652,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot) SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);/* enable clock */ -mci_writel (host,CLKENA ,SDMMC_CLKEN_ENABLE | -SDMMC_CLKEN_LOW_PWR ); +mci_writel (host,CLKENA , ((SDMMC_CLKEN_ENABLE | +SDMMC_CLKEN_LOW_PWR ) << slot->id));/* inform CIU */ mci_send_cmd(slot,
Quoted 5 lines · Jaehoon Chung
In CLKENA register, can support 16-SD card clocks. If support correctly, must shift with slot-id.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>
Looks good.
Acked-by Will Newton <[email protected]>
Hi,
Quoted 10 lines · Will Newton
Quoted 5 lines · Jaehoon Chung
In CLKENA register, can support 16-SD card clocks. If support correctly, must shift with slot-id.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Looks good.
Acked-by Will Newton <[email protected]>
Thanks, pushed to mmc-next for 3.4.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child