linux/drivers/counter
William Breathitt Gray 0fac51a2d1 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:08:36 +02:00
..
104-quad-8.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
counter-chrdev.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
counter-chrdev.h counter: Add character device interface 2021-10-17 10:53:52 +01:00
counter-core.c counter: constify the struct device_type usage 2024-04-02 13:10:34 -04:00
counter-sysfs.c counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
counter-sysfs.h counter: Internalize sysfs interface code 2021-10-17 10:52:58 +01:00
ftm-quaddec.c counter: ftm-quaddec: add missing MODULE_DESCRIPTION() macro 2024-07-01 10:29:47 +09:00
i8254.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04: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-eqep: Allow eQEP driver to be built for K3 devices 2024-07-01 19:05:42 +09:00
Makefile counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Fix undefined counter channel state on probe 2025-04-07 10:08:36 +02:00
rz-mtu3-cnt.c counter: rz-mtu3-cnt: Reorder locking sequence for consistency 2023-08-16 09:41:29 -04:00
stm32-lptimer-cnt.c counter: stm32-lptimer-cnt: fix error handling when enabling 2025-04-07 10:08:35 +02:00
stm32-timer-cnt.c counter: stm32-timer-cnt: fix device_node handling in probe_encoder() 2024-12-05 14:03:01 +01:00
ti-ecap-capture.c counter: ti-ecap-capture: Add check for clk_enable() 2024-12-05 14:02:38 +01:00
ti-eqep.c counter/ti-eqep: Add new ti-am62-eqep compatible 2024-07-01 10:40:27 +09:00