mmc: dw-mmc: control the power-enable register
Subsystems (2)
Jaehoon Chung
maintainerPATCH 1/1 mmc: dw-mmc: control the power-enable register
When card is power-on/off, need to control the power-enable register.
Signed-off-by Jaehoon Chung <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/mmc/host/dw_mmc.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/mmc/host/dw_mmc.c +6 -0
@@ -821,11 +821,17 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)/* Power up slot */ if (slot->host->pdata->setpower) slot->host->pdata->setpower (slot->id, mmc->ocr_avail); + regs =mci_readl (slot->host,PWREN ); + regs |= (1 << slot->id); +mci_writel (slot->host,PWREN , regs);break ;case MMC_POWER_OFF :/* Power down slot */ if (slot->host->pdata->setpower) slot->host->pdata->setpower (slot->id,0 ); + regs =mci_readl (slot->host,PWREN ); + regs &= ~(1 << slot->id); +mci_writel (slot->host,PWREN , regs);break ;default :break ;
Signature · 1 line
1.7.9.5
Quoted 4 lines · Jaehoon Chung
When card is power-on/off, need to control the power-enable register.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>
Reviewed-by James Hogan <[email protected]>
Cheers
James
Seungwon Jeon
Acked-byQuoted 7 lines · James Hogan
Quoted 4 lines · Jaehoon Chung
When card is power-on/off, need to control the power-enable register.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Reviewed-by James Hogan <[email protected]>
Acked-by Seungwon Jeon <[email protected]>
Thanks,
Seungwon Jeon
Hi,
Quoted 9 lines · Seungwon Jeon
Quoted 7 lines · James Hogan
Quoted 4 lines · Jaehoon Chung
When card is power-on/off, need to control the power-enable register.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Reviewed-by James Hogan <[email protected]>Acked-by Seungwon Jeon <[email protected]>
Thanks, pushed to mmc-next for 3.10 after changing "dw-mmc" to "dw_mmc" in the commit subject line.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child
Jaehoon Chung
maintainerThanks Chris..
I will send the patch as "dw_mmc" in future.
Best Regards,
Jaehoon Chung
Quoted 18 lines · Chris Ball
Hi,
Quoted 9 lines · Seungwon Jeon
Quoted 7 lines · James Hogan
Quoted 4 lines · Jaehoon Chung
When card is power-on/off, need to control the power-enable register.
Signed-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Reviewed-by James Hogan <[email protected]>Acked-by Seungwon Jeon <[email protected]>Thanks, pushed to mmc-next for 3.10 after changing "dw-mmc" to "
dw_mmc" in the commit subject line.- Chris.