realtek: early ethernet probe in dsa setup
authorMarkus Stockhausen <[email protected]>
Wed, 3 Sep 2025 08:02:51 +0000 (04:02 -0400)
committerRobert Marko <[email protected]>
Sun, 7 Sep 2025 09:37:59 +0000 (11:37 +0200)
commit3fae46d5cc723ae680d0ba721368a3677b6ae799
treee46a87c2f3758973cce6e31a7c15bd5becdf9309
parent98b160acd281d4b209dd920c010f901be31f458f
realtek: early ethernet probe in dsa setup

The ethernet and mdio code will be splitted. The dsa driver depends
on proper loading of both, before switch setup can start. Sadly there
are severe cleanup issues in the probe() function if one of the
required devices is not available.

As a temporary workaround provide a dedicated check function that
verifies if the ethernet platform device driver is loaded and can
be used.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19942
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c