]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i3c: master: svc: Modify enabled_events bit 7:0 to act as IBI enable counter
authorFrank Li <Frank.Li@nxp.com>
Fri, 1 Nov 2024 16:50:02 +0000 (12:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:07 +0000 (10:41 +0100)
commit768673a15bad3e95955891517161c0f97d4b6ae9
treef758c1819cf93a3a78971c47b1ba515dcb3045a6
parent34a55b54845d01f60b614153ed6ff2c13c96cf15
i3c: master: svc: Modify enabled_events bit 7:0 to act as IBI enable counter

commit 25bc99be5fe53853053ceeaa328068c49dc1e799 upstream.

Fix issue where disabling IBI on one device disables the entire IBI
interrupt. Modify bit 7:0 of enabled_events to serve as an IBI enable
counter, ensuring that the system IBI interrupt is disabled only when all
I3C devices have IBI disabled.

Cc: stable@kernel.org
Fixes: 7ff730ca458e ("i3c: master: svc: enable the interrupt in the enable ibi function")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20241101165002.2479794-1-Frank.Li@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i3c/master/svc-i3c-master.c