]> www.infradead.org Git - users/jedix/linux-maple.git/commit
counter: 104-quad-8: Fix Synapse action reported for Index signals
authorWilliam Breathitt Gray <william.gray@linaro.org>
Thu, 16 Mar 2023 20:34:26 +0000 (16:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Apr 2023 14:55:31 +0000 (16:55 +0200)
commit5a62d771e514ea9c111daa66739143bf45ded49c
tree749de7ffa2b564762add12630d5dccfb6a3435f6
parent6284b686c276ac5e40759e5e14a4629c10376c0d
counter: 104-quad-8: Fix Synapse action reported for Index signals

commit 00f4bc5184c19cb33f468f1ea409d70d19f8f502 upstream.

Signal 16 and higher represent the device's Index lines. The
priv->preset_enable array holds the device configuration for these Index
lines. The preset_enable configuration is active low on the device, so
invert the conditional check in quad8_action_read() to properly handle
the logical state of preset_enable.

Fixes: f1d8a071d45b ("counter: 104-quad-8: Add Generic Counter interface support")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20230316203426.224745-1-william.gray@linaro.org/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/counter/104-quad-8.c