realtek: sfp: prevent duplicate hwmon devices when re-probing on interface up
authorBjørn Mork <bjorn@mork.no>
Tue, 4 Feb 2025 08:05:40 +0000 (09:05 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 25 Feb 2025 19:53:30 +0000 (20:53 +0100)
commit736229ba991ba69c6fdc7334353a43d9b1da1bdd
treed8ff80b559c5cae96935144849cc005836e015ca
parentef4b022150a44e4e6c565f8f2e73ffae9175d01e
realtek: sfp: prevent duplicate hwmon devices when re-probing on interface up

Re-probing on interface up will register a new duplicate hwmon device. Skip
the hwmon probe if we already have a sensor device.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/17950
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/patches-6.6/710-net-phy-sfp-re-probe-modules-on-DEV_UP-event.patch