]> git.hungrycats.org Git - linux/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)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 2 Nov 2024 21:56:56 +0000 (22:56 +0100)
commit25bc99be5fe53853053ceeaa328068c49dc1e799
treeb4751e2de78be70a1bfacf777070d5c0c1d94587
parentf6ca73063754950bf3fbad753e3a9557e3aa85e3
i3c: master: svc: Modify enabled_events bit 7:0 to act as IBI enable counter

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>
drivers/i3c/master/svc-i3c-master.c