linux/drivers/counter
William Breathitt Gray 79aafdf639 counter: microchip-tcb-capture: Fix undefined counter channel state on probe
commit c0c9c73434 upstream.

Hardware initialize of the timer counter channel does not occur on probe
thus leaving the Count in an undefined state until the first
function_write() callback is executed. Fix this by performing the proper
hardware initialization during probe.

Fixes: 106b104137 ("counter: Add microchip TCB capture counter")
Reported-by: Csókás Bence <csokas.bence@prolan.hu>
Closes: https://lore.kernel.org/all/bfa70e78-3cc3-4295-820b-3925c26135cb@prolan.hu/
Link: https://lore.kernel.org/r/20250305-preset-capture-mode-microchip-tcb-capture-v1-1-632c95c6421e@kernel.org
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-07 10:05:45 +02:00
..
104-quad-8.c counter: 104-quad-8: Fix Synapse action reported for Index signals 2023-04-13 16:55:31 +02:00
counter-chrdev.c counter: chrdev: fix getting array extensions 2023-10-19 23:08:58 +02:00
counter-chrdev.h counter: Add character device interface 2021-10-17 10:53:52 +01:00
counter-core.c counter: Move symbols into COUNTER namespace 2022-09-30 14:32:35 +02:00
counter-sysfs.c counter: Introduce the COUNTER_COMP_ARRAY component type 2022-09-30 14:32:35 +02:00
counter-sysfs.h counter: Internalize sysfs interface code 2021-10-17 10:52:58 +01:00
ftm-quaddec.c counter: Move symbols into COUNTER namespace 2022-09-30 14:32:35 +02:00
intel-qep.c counter: Move symbols into COUNTER namespace 2022-09-30 14:32:35 +02:00
interrupt-cnt.c counter: interrupt-cnt: Implement watch_validate callback 2022-09-30 14:32:35 +02:00
Kconfig counter: ti-ecap-capture: capture driver support for ECAP 2022-09-30 14:32:35 +02:00
Makefile counter: ti-ecap-capture: capture driver support for ECAP 2022-09-30 14:32:35 +02:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Fix undefined counter channel state on probe 2025-04-07 10:05:45 +02:00
stm32-lptimer-cnt.c counter: stm32-lptimer-cnt: fix error handling when enabling 2025-04-07 10:05:45 +02:00
stm32-timer-cnt.c counter: stm32-timer-cnt: Add check for clk_enable() 2024-12-14 19:53:53 +01:00
ti-ecap-capture.c counter: ti-ecap-capture: Add check for clk_enable() 2024-12-14 19:53:53 +01:00
ti-eqep.c counter: ti-eqep: enable clock at probe 2024-07-05 09:31:53 +02:00