From: Kory Maincent <kory.maincent@bootlin.com>
To: Piotr Kubik <piotr@kubik.pl>, netdev@vger.kernel.org
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
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>,
linux-kernel@vger.kernel.org,
Carlo Szelinsky <github@szelinsky.de>
Subject: Re: [PATCH net 1/2] net: pse-pd: si3474: keep detection enabled on the other PIs
Date: Tue, 20 Oct 2026 11:15:17 +0200 [thread overview]
Message-ID: <5b63ae66-551e-40ed-81ad-fbc52b93e24f@bootlin.com> (raw)
In-Reply-To: <20261019162453.1244120-2-piotr@kubik.pl>
On 10/19/26 18:24, Piotr Kubik wrote:
> DETECT_CLASS_ENABLE holds the detection and classification bits of
> all four channels of a quad. si3474_pi_enable() wrote the register
> with the bits of its own PI only, so it cleared them for the other PI
> of the quad. In AUTO mode that PI keeps its admin state and a PD that
> already has power keeps it, but the port runs no new detection: a PD
> plugged in later, or one waiting for detection when the other PI is
> enabled, gets no power.
>
> Read the register and set the PI bits, as the PORT_MODE update above
> already does.
>
> Discovered by an AI code review agent. Confirmed on an SDG-9000 board
> (MediaTek MT7988A, two Si3474 in AUTO pin mode) with Linux 6.18:
> with both PIs of one quad disabled, enabling PI A and then PI B left
> DETECT_CLASS_ENABLE with the bits of PI B only, and a PD on PI A never
> got power. No kernel change was needed to reproduce it.
>
> Tested on the same board with the same sequence in both orders:
> DETECT_CLASS_ENABLE keeps the bits of both PIs, and the PD gets power.
> No kernel selftest covers PSE hardware.
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Thank you!
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-10-20 9:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 16:24 [PATCH net 0/2] net: pse-pd: si3474: two driver fixes Piotr Kubik
2026-10-19 16:24 ` [PATCH net 1/2] net: pse-pd: si3474: keep detection enabled on the other PIs Piotr Kubik
2026-10-20 9:15 ` Kory Maincent [this message]
2026-10-19 16:24 ` [PATCH net 2/2] net: pse-pd: si3474: validate the channels of a PI Piotr Kubik
2026-10-20 9:33 ` Kory Maincent
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=5b63ae66-551e-40ed-81ad-fbc52b93e24f@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 \
--cc=piotr@kubik.pl \
/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
all inboxes | Powered by JetHome®