]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
counter: microchip-tcb-capture: Fix the use of internal GCLK logic
authorDharma Balasubiramani <dharma.b@microchip.com>
Tue, 5 Sep 2023 10:08:35 +0000 (15:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:05:37 +0000 (23:05 +0200)
commit308f1924964183ad12e4c3ebccd754dc960c379c
tree82fa25a07b2b700f77604dda44c15661c6a28dc9
parent5a6ce81d7c16268bab312a6f44146fc8386e2e45
counter: microchip-tcb-capture: Fix the use of internal GCLK logic

commit df8fdd01c98b99d04915c04f3a5ce73f55456b7c upstream.

As per the datasheet, the clock selection Bits 2:0 – TCCLKS[2:0] should
be set to 0 while using the internal GCLK (TIMER_CLOCK1).

Fixes: 106b104137fd ("counter: Add microchip TCB capture counter")
Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Link: https://lore.kernel.org/r/20230905100835.315024-1-dharma.b@microchip.com
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/counter/microchip-tcb-capture.c