[PATCH 0/2] sunxi a20 mmc timeout fix

Michal Suchanek hramrach at gmail.com
Sun May 24 11:25:58 PDT 2015


I had serious problems with root filesustem on SD card on Cubieboard2 when
clock gating was on.

It turns out that sunxi_mmc_oclk_onoff has way too short timeout ofr setting
the clock.

So here are some patches for

 - bumping the timout
 - spamming dmesg when the time to set the clock seems too long
 - setting SDXC_LOW_POWER_ON which is unset but never set

Also feel free to just bump the timeout to reasonably high value so the board
can boot reliably with mmc clock gating enabled.



Michal Suchanek (2):
  mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff
  mmc: sunxi: Also set SDXC_LOW_POWER_ON

 drivers/mmc/host/sunxi-mmc.c | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)


More information about the linux-arm-kernel mailing list