diff options
author | William Breathitt Gray <[email protected]> | 2022-10-18 08:10:14 -0400 |
---|---|---|
committer | William Breathitt Gray <[email protected]> | 2022-10-23 20:38:49 -0400 |
commit | d917a62af81b133f35f627e7936e193c842a7947 (patch) | |
tree | fdb54ca2f176b9778bee7842f5d1132406d9c4fe /lib/mpi/mpi-sub-ui.c | |
parent | ec0286dce78c3bb0e6a665c0baade2f2db56ce00 (diff) |
counter: microchip-tcb-capture: Handle Signal1 read and Synapse
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: 106b104137fd ("counter: Add microchip TCB capture counter")
Cc: [email protected]
Reviewed-by: Kamel Bouhara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: William Breathitt Gray <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions