[PATCH v2] counter: microchip-tcb-capture: Handle Signal1 read and Synapse

William Breathitt Gray wbg at kernel.org
Sat Oct 22 08:11:12 PDT 2022


On Tue, Oct 18, 2022 at 08:10:14AM -0400, William Breathitt Gray wrote:
> 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: stable at vger.kernel.org
> Cc: Kamel Bouhara <kamel.bouhara at bootlin.com>
> Signed-off-by: William Breathitt Gray <william.gray at linaro.org>
> ---
> Changes in v2:
>  - Simplified action_read() changes to just handle qdec_mode and
>    non-TIOA Signals before continuing with existing code

Queued for counter-fixes.

William Breathitt Gray
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20221022/9dba7040/attachment.sig>


More information about the linux-arm-kernel mailing list