linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] sunxi a20 mmc timeout fix
@ 2015-05-24 18:25 Michal Suchanek
       [not found] ` <cover.1432491958.git.hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Michal Suchanek @ 2015-05-24 18:25 UTC (permalink / raw)
  To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Ulf Hansson, Maxime Ripard,
	Hans de Goede, Chen-Yu Tsai, Michal Suchanek, Peter Griffin,
	linux-mmc-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hello,

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.

Thanks

Michal

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(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-28  8:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-24 18:25 [PATCH 0/2] sunxi a20 mmc timeout fix Michal Suchanek
     [not found] ` <cover.1432491958.git.hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-24 18:04   ` [PATCH 2/2] mmc: sunxi: Also set SDXC_LOW_POWER_ON Michal Suchanek
2015-05-25  7:02     ` Hans de Goede
     [not found]       ` <5562C90D.8070507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-05-28  8:02         ` Ulf Hansson
     [not found]           ` <CAPDyKFrvB1AZGdvQ1fb6ShC8v-3DbVabiki13L8gG7M2saJALA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-28  8:04             ` Hans de Goede
2015-05-24 18:07   ` [PATCH 1/2] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff Michal Suchanek
     [not found]     ` <4011290915a42fce8b9c19d59f3ca9c3289a6817.1432491958.git.hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-25  1:44       ` Julian Calaby
2015-05-25  6:58       ` Hans de Goede
2015-05-25 21:02       ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).