Re: [PATCH net] net: pse-pd: tps23881: fix the disconnect event decode

From: Paolo Abeni

Date: Fri Dec 04 2026 - 08:59:45 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>
Broken from day 1, low impact: this is net-next material at this point
of the cycle.

/P