openwrt/target/linux/ramips/files/drivers/net/ethernet/ralink
Michael Pratt 47db830b82 ramips: mt7620: move mt7620_mdio_mode() to ethernet driver
The function mt7620_mdio_mode is only called once
and both the function and mdio_mode block have been named incorrectly,
leading to confusion and useless commits.

These lines in the mdio_mode block of mt7620_hw_init
are only intended for boards with an external mt7530 switch.
(see commit 194ca6127e)

Therefore, move lines from mdio_mode to the place in soc_mt7620.c
where the type of mt7530 switch is identified,
and move lines from mt7620_mdio_mode to a main function.

mt7620_mdio_mode was called from mt7620_gsw_init
where the priv struct is available,
so the lines must stay in mt7620_gsw_init function.

In order to keep things as simple as possible,
keep the DTS property related function calls together,
by moving them from mt7620_gsw_probe to init.

Remove the now useless DTS properties and extra phy nodes.

Fixes: 5a6229a93d ("ramips: remove superfluous & confusing DT binding")
Fixes: b85fe43ec8 ("ramips: mt7620: add force use of mdio-mode")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit 6972e498d3)
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: move mt7620_mdio_mode() to ethernet driver 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: move mt7620_mdio_mode() to ethernet driver 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