Re: [PATCH 2/2] mmc: prevent aggressive clock gating to race with ios updates
From: Linus Walleij <hidden>
Date: 2011-08-17 07:56:27
Also in:
lkml
From: Linus Walleij <hidden>
Date: 2011-08-17 07:56:27
Also in:
lkml
On Mon, Aug 15, 2011 at 12:03 PM, Mika Westerberg [off-list ref] wrote:
We have seen at least two different races when clock gating kicks in in a middle of ios structure update. First one happens when ios->clock is changed outside of aggressive clock gating framework, for example via mmc_set_clock(). The race might happen when we run following code:
Patch looks entirely sane if you deal with my considerations in [1/2] replacing mmc_host_clk_gate_[disable|enable] with plain mmc_host_clk_[ungate|gate]() or renamed versions of these respectively. Thanks, Linus Walleij