Skip to content

Commit 0585244

Browse files
claudiubezneadlezcano
authored andcommitted
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: 625022a ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/1584352376-32585-1-git-send-email-claudiu.beznea@microchip.com
1 parent 470cf1c commit 0585244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clocksource/timer-microchip-pit64b.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ static int __init mchp_pit64b_init_mode(struct mchp_pit64b_timer *timer,
264264

265265
if (!best_diff) {
266266
timer->mode |= MCHP_PIT64B_MR_SGCLK;
267+
clk_set_rate(timer->gclk, gclk_round);
267268
goto done;
268269
}
269270

0 commit comments

Comments
 (0)