WSL2-Linux-Kernel/drivers/counter
William Breathitt Gray f1204dfc4c counter: microchip-tcb-capture: Handle Signal1 read and Synapse
commit d917a62af8 upstream.

The signal_read(), action_read(), and action_write() callbacks have been
assuming Signal0 is requested without checking. This results in requests
for Signal1 returning data for Signal0. This patch fixes these
oversights by properly checking for the Signal's id in the respective
callbacks and handling accordingly based on the particular Signal
requested. The trig_inverted member of the mchp_tc_data is removed as
superfluous.

Fixes: 106b104137 ("counter: Add microchip TCB capture counter")
Cc: stable@vger.kernel.org
Reviewed-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Link: https://lore.kernel.org/r/20221018121014.7368-1-william.gray@linaro.org/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-03 23:59:13 +09:00
..
104-quad-8.c counter: 104-quad-8: Describe member 'lock' in 'quad8' 2021-08-09 20:24:38 +01:00
Kconfig counter: Add support for Intel Quadrature Encoder Peripheral 2021-06-03 18:24:14 +01:00
Makefile counter: Add support for Intel Quadrature Encoder Peripheral 2021-06-03 18:24:14 +01:00
counter.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
ftm-quaddec.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
intel-qep.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
interrupt-cnt.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Handle Signal1 read and Synapse 2022-11-03 23:59:13 +09:00
stm32-lptimer-cnt.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
stm32-timer-cnt.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00
ti-eqep.c counter: Rename counter_count_function to counter_function 2021-08-09 20:17:36 +01:00