Re: [PATCH resend 1/9] clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock
From: Maxime Ripard <hidden>
Date: 2016-07-26 08:57:09
Also in:
linux-arm-kernel, linux-clk, lkml
From: Maxime Ripard <hidden>
Date: 2016-07-26 08:57:09
Also in:
linux-arm-kernel, linux-clk, lkml
On Tue, Jul 26, 2016 at 03:04:23PM +0800, Chen-Yu Tsai wrote:
The condition passed to read*_poll_timeout() is the break condition,
i.e. wait for this condition to happen and return success.
The original code assumed the opposite, resulting in a warning when
the PLL clock rate was changed but never lost it's lock as far as
the readout indicated. This was verified by checking the read out
register value.
Fixes: 1d80c14248d6 ("clk: sunxi-ng: Add common infrastructure")
Signed-off-by: Chen-Yu Tsai <redacted>
Acked-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>Applied, thanks Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com