net: mdio: mux-meson-gxl: set reversed bit when using internal phy
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 2 May 2025 06:51:45 +0000 (08:51 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 30 Sep 2025 18:32:15 +0000 (20:32 +0200)
commit1a367adfd66c28d8d2fdb2957dfba5434b987de1
tree2eaf694031516d8e4796cd25cdaf2c06f85c978a
parent9710d98e8942151fc0c62d54100d9d27e8263d04
net: mdio: mux-meson-gxl: set reversed bit when using internal phy

This bit is necessary to receive packets from the internal PHY.
Without this bit set, no activity occurs on the interface.

Normally u-boot sets this bit, but if u-boot is compiled without
net support, the interface will be up but without any activity.

The vendor SDK sets this bit along with the PHY_ID bits.

Ported from the Linux change at [1] from Da Xu merged in
commit [2].

[1] https://lore.kernel.org/all/20250425192009.1439508-1-da@libre.computer/
[2] b23285e93bef ("net: mdio: mux-meson-gxl: set reversed bit when using internal phy")

Suggested-by: Da Xue <da@libre.computer>
Link: https://lore.kernel.org/r/20250502-u-boot-topic-mdio-mux-gxl-bit28-v1-1-399f6c3db154@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/net/mdio_mux_meson_gxl.c