]> Git Repo - linux.git/commitdiff
clocksource/drivers/timer-microchip-pit64b: Fix rate for gck
authorClaudiu Beznea <[email protected]>
Mon, 16 Mar 2020 09:52:56 +0000 (11:52 +0200)
committerDaniel Lezcano <[email protected]>
Mon, 16 Mar 2020 10:19:37 +0000 (11:19 +0100)
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 <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/clocksource/timer-microchip-pit64b.c

index bd63d3484838a8eb78a89f1c0df8c66374d74fce..59e11ca8ee73e02186335c9707f02b2030b511bc 100644 (file)
@@ -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;
        }
 
This page took 0.055841 seconds and 4 git commands to generate.