From: Claudiu Beznea Date: Mon, 16 Mar 2020 09:52:56 +0000 (+0200) Subject: clocksource/drivers/timer-microchip-pit64b: Fix rate for gck X-Git-Tag: v5.10.7~2482^2~56^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0585244523f0f4de7e4480375e871617a79cab98;p=platform%2Fkernel%2Flinux-rpi.git clocksource/drivers/timer-microchip-pit64b: Fix rate for gck Generic clock rate needs to be set in case it was selected as timer clock source in mchp_pit64b_init_mode(). Otherwise it will be enabled with wrong rate. Fixes: 625022a5f160 ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support") Signed-off-by: Claudiu Beznea Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/1584352376-32585-1-git-send-email-claudiu.beznea@microchip.com --- diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource/timer-microchip-pit64b.c index bd63d34..59e11ca 100644 --- a/drivers/clocksource/timer-microchip-pit64b.c +++ b/drivers/clocksource/timer-microchip-pit64b.c @@ -264,6 +264,7 @@ static int __init mchp_pit64b_init_mode(struct mchp_pit64b_timer *timer, if (!best_diff) { timer->mode |= MCHP_PIT64B_MR_SGCLK; + clk_set_rate(timer->gclk, gclk_round); goto done; }