Netdev List
 help / color / mirror / Atom feed
From: Kory Maincent <kory.maincent@bootlin.com>
To: Carlo Szelinsky <github@szelinsky.de>,
	Oleksij Rempel <o.rempel@pengutronix.de>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: pse-pd: tps23881: fix the disconnect event decode
Date: Mon, 30 Nov 2026 11:08:19 +0100	[thread overview]
Message-ID: <683a3f6f-2dbd-4e45-babf-2d852dab5f7b@bootlin.com> (raw)
In-Reply-To: <20261128100648.3237097-1-github@szelinsky.de>

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@szelinsky.de>

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@bootlin.com>
Tested-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com


      parent reply	other threads:[~2026-11-30 10:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 10:06 [PATCH net] net: pse-pd: tps23881: fix the disconnect event decode Carlo Szelinsky
2026-11-28 10:09 ` netdev-bot+sinfo
2026-11-28 12:22   ` Carlo Szelinsky
2026-11-30 10:08 ` Kory Maincent [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=683a3f6f-2dbd-4e45-babf-2d852dab5f7b@bootlin.com \
    --to=kory.maincent@bootlin.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=github@szelinsky.de \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox