Re: [PATCH net] net: pse-pd: tps23881: fix the disconnect event decode
From: Kory Maincent
Date: Mon Nov 30 2026 - 05:08:33 EST
On 11/28/26 11:06, Carlo Szelinsky wrote:
tps23881_irq_event_handler() reads the fault register into ret, and
then overwrites ret with the return value of
tps23881_irq_event_over_current(). That value is 0 when
tps23881_irq_event_disconnection() runs, so the disconnect bits of the
fault register are never decoded, and no disconnect event is reported
from them. The read clears the register, so these bits are lost.
Keep the register value in val, as the detection block below already
does.
Fixes: 56cfc97635e9 ("net: pse-pd: tps23881: Add support for static port priority feature")
Signed-off-by: Carlo Szelinsky <github@xxxxxxxxxxxx>
I have found and fixed the same issue on my current tree but you send it before me so:
Reviewed-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
Tested-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
Thank you!
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com