ramips: mt7620: remove useless GMAC nodes
authorMichael Pratt <mcpratt@pm.me>
Fri, 11 Jun 2021 18:54:43 +0000 (14:54 -0400)
committerPetr Štetiar <ynezz@true.cz>
Tue, 19 Apr 2022 12:48:21 +0000 (14:48 +0200)
commit6491212ea7067bbb4af3873412051c8fae8e477c
treec44a0c257dd1160ad051424ef3e1b553065bcb14
parenta14c2d409c44c7562b29b79549fdf51566b59db0
ramips: mt7620: remove useless GMAC nodes

These nodes are used for configuring a GMAC interface
and for defining external PHYs to be accessed with MDIO.

None of this is possible on MT7620N, only MT7620A,
so remove them from all MT7620N DTS.

When the mdio-bus node is missing, the driver returns -NODEV
which causes the internal switch to not initialize.
Replace that return so that everything works without the DTS node.

Also, an extra kernel message to indicate for all error conditions
that mdio-bus is disabled.

Fixes: d482356322c9 ("ramips: mt7620n: add mdio node and disable port4 by default")
Fixes: aa5014dd1a58 ("ramips: mt7620n: enable port 4 as EPHY by default")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit a2acdf9607045e5669c305c57dd7c77be8351ba0)
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts
target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts
target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c