Two fixes for the Si3474 PSE driver, found while preparing 2-pair and
semi-auto support for it.
Patch 1 stops si3474_pi_enable() from clearing detection and
classification of the other PI in the same quad. Without it, a PD on
that PI gets no power after a later plug-in.
Patch 2 rejects a channel number of 8 and a 4-pair PI whose channels
are not one channel pair of a quad.
Both were tested on an SDG-9000 board (MediaTek MT7988A, two Si3474)
with a Linux 6.18 kernel that carries the same patches, and build-tested
on the net tree.
Carlo Szelinsky's "net: pse-pd" series [1] also touches si3474.c, in
si3474_i2c_probe(). The two series change different hunks, and his
patch 9 applies on top of this series.
[1] https://lore.kernel.org/all/20261018082314.48950-1-github@szelinsky.de/ (local)
Piotr Kubik (2):
net: pse-pd: si3474: keep detection enabled on the other PIs
net: pse-pd: si3474: validate the channels of a PI
drivers/net/pse-pd/si3474.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
--
2.55.0