Skip to content

Commit 7bb9c24

Browse files
hramrachstorulf
authored andcommitted
mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff
The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over 350ms. This does not make mmc clock gating look like good option to have on sunxi but the system should not crash with mmc clock gating enabled nonetheless. This patch sets the timeout to 750ms. Signed-off-by: Michal Suchanek <hramrach@gmail.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 1880d8f commit 7bb9c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sunxi-mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static irqreturn_t sunxi_mmc_handle_manual_stop(int irq, void *dev_id)
595595

596596
static int sunxi_mmc_oclk_onoff(struct sunxi_mmc_host *host, u32 oclk_en)
597597
{
598-
unsigned long expire = jiffies + msecs_to_jiffies(250);
598+
unsigned long expire = jiffies + msecs_to_jiffies(750);
599599
u32 rval;
600600

601601
rval = mmc_readl(host, REG_CLKCR);

0 commit comments

Comments
 (0)