Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: fixup argument order when setting VCO parameters

The order of arguments in the call to vco_set() for the ICST clocks appears to
have been switched in error, which results in the VCO not being initialised
correctly. This in turn stops the integrated LCD on things like Integrator/CP
from working correctly.

This patch fixes the order and restores the expected functionality.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: stable@vger.kernel.org

authored by

Jonathan Austin and committed by
Mike Turquette
2f9f64bc 79a2e998

+1 -1
+1 -1
drivers/clk/versatile/clk-icst.c
··· 107 107 108 108 vco = icst_hz_to_vco(icst->params, rate); 109 109 icst->rate = icst_hz(icst->params, vco); 110 - vco_set(icst->vcoreg, icst->lockreg, vco); 110 + vco_set(icst->lockreg, icst->vcoreg, vco); 111 111 return 0; 112 112 } 113 113