patch "counter: 104-quad-8: Fix Synapse action reported for Index signals" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
counter: 104-quad-8: Fix Synapse action reported for Index signals
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 00f4bc5184c19cb33f468f1ea409d70d19f8f502 Mon Sep 17 00:00:00 2001
From: William Breathitt Gray <[email protected]>
Date: Thu, 16 Mar 2023 16:34:26 -0400
Subject: counter: 104-quad-8: Fix Synapse action reported for Index signals
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.
--- drivers/counter/104-quad-8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/counter/104-quad-8.c +1 -1
@@ -368,7 +368,7 @@ static int quad8_action_read(struct counter_device *counter,/* Handle Index signals */ if (synapse->signal->id >=16 ) { -if (priv->preset_enable[count->id]) +if (!priv->preset_enable[count->id]) *action =COUNTER_SYNAPSE_ACTION_RISING_EDGE ;else *action =COUNTER_SYNAPSE_ACTION_NONE ;
Signature · 1 line
2.40.0