net: mdio: mux-meson-gxl: set reversed bit when using internal phy
authorDa Xue <da@libre.computer>
Fri, 25 Apr 2025 19:20:09 +0000 (15:20 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 19:01:53 +0000 (12:01 -0700)
commitb23285e93bef729e67519a5209d5b7fde3b4af50
tree1df51a0241feaf2557454820628c0a0286a86988
parente7e5ae71831c44d58627a991e603845a2fed2cab
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.
If bit is set once, it will work until the IP is powered down or reset.

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

Signed-off-by: Da Xue <da@libre.computer>
Fixes: 9a24e1ff4326 ("net: mdio: add amlogic gxl mdio mux support")
Link: https://patch.msgid.link/20250425192009.1439508-1-da@libre.computer
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mux-meson-gxl.c