openwrt/target/linux/ramips/files/drivers/net/ethernet/ralink
Michael Pratt 6491212ea7 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: d482356322 ("ramips: mt7620n: add mdio node and disable port4 by default")
Fixes: aa5014dd1a ("ramips: mt7620n: enable port 4 as EPHY by default")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit a2acdf9607)
2022-04-19 14:48:21 +02:00
..
esw_rt3050.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
esw_rt3050.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
ethtool.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
ethtool.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
gsw_mt7620.c ramips: mt7620: simplify DTS properties for GMAC 2022-04-19 14:48:21 +02:00
gsw_mt7620.h ramips: mt7620: simplify DTS properties for GMAC 2022-04-19 14:48:21 +02:00
Kconfig ramips: remove legacy ethernet driver components for mt7621 2020-08-21 15:46:54 +02:00
Makefile ramips: remove legacy ethernet driver components for mt7621 2020-08-21 15:46:54 +02:00
mdio_mt7620.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mdio_rt2880.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mdio_rt2880.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mdio.c ramips: mt7620: remove useless GMAC nodes 2022-04-19 14:48:21 +02:00
mdio.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mt7530.c ramips: mt7530 swconfig: fix race condition in register access 2021-04-18 12:05:04 +02:00
mt7530.h ramips: remove further mt7621 code from local ethernet driver 2020-08-26 23:58:01 +02:00
mtk_eth_soc.c ramips: drop kernel version switches 2020-10-09 22:24:04 +02:00
mtk_eth_soc.h ramips: remove further mt7621 code from local ethernet driver 2020-08-26 23:58:01 +02:00
soc_mt7620.c ramips: mt7620: simplify DTS properties for GMAC 2022-04-19 14:48:21 +02:00
soc_rt2880.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
soc_rt3050.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
soc_rt3883.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00