]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pse: add patch for sysfs detection control
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 1 Jul 2026 10:47:27 +0000 (10:47 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 14 Jul 2026 21:45:29 +0000 (23:45 +0200)
commit184f70a44d9eec8633dd4e2fe0aa307e6368f093
treebea840e0f8e5f85c9fbf5fa886c60edce4cb46d9
parent301d98f81fa7baedcb172f7d47c05b12770302a5
realtek: pse: add patch for sysfs detection control

Add a patch which modifies the Realtek PSE MCU driver backport to add a
sysfs control to control detection mode per port. Some older,
bad-designed devices aren't detected properly in standard mode on some
switches, though vendor firmware powers them properly. Testing shows
that enabling the detection of legacy PDs by allowing wider resistance,
more input capacitance and using a wider detection window, solves this
issue.

The legacy detection can be activated by writing 1 to
portN/detection_legacy in the device's sysfs, e.g.

  echo 1 > /sys/bus/i2c/devices/3-0020/port0/detection_legacy

This patch is kept downstream for now, upstreaming will be attempted
though it is likely that upstream prefers a generic pse-pd approach.

Link: https://github.com/openwrt/openwrt/pull/23222
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/patches-6.18/817-net-pse-pd-realtek-pse-mcu-add-per-por-legacy-detec.patch [new file with mode: 0644]