immortalwrt/target/linux
Michael Pratt ca5da86633 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>
2021-06-23 23:24:38 +08:00
..
apm821xx apm821xx: move CONFIG_REGULATOR to target config 2021-06-14 11:45:49 +08:00
arc770 treewide: do not quote compatible in shell scripts 2021-06-07 23:25:51 +08:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
at91 kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-01 11:12:26 +08:00
ath79 kernel: Backport patch to automatically bring up DSA master when opening user port 2021-06-23 23:17:48 +08:00
bcm27xx Merge Mainline 2021-05-31 18:55:44 +08:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-13 12:05:27 +08:00
bcm53xx kernel: bump to 4.9.269, 4.14.233, 4.19.191 2021-05-25 01:20:11 +08:00
bcm63xx bcm63xx: drop USB LEDs for Technicolor TG582N / ADB P.DG A4001N 2021-06-06 23:35:35 +08:00
bcm4908 bcm4908: fix Ethernet broken state after interface restart 2021-06-22 15:37:07 +08:00
bmips bmips: remove duplicated brcmnand patch 2021-05-17 23:51:26 +08:00
gemini Revert "base-files: generate network config with "device" options" 2021-05-28 21:29:34 +08:00
generic kernel: Backport patch to automatically bring up DSA master when opening user port 2021-06-23 23:17:48 +08:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-05-26 23:32:41 +08:00
ipq40xx kernel: bump to 4.9.272, 4.14.236, 4.19.194 2021-06-11 00:48:28 +08:00
ipq806x Merge Mainline 2021-06-15 23:45:52 +08:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-04-22 23:09:52 +08:00
kirkwood treewide: do not quote compatible in shell scripts 2021-06-07 23:25:51 +08:00
lantiq kernel: bump to 4.9.269, 4.14.233, 4.19.191 2021-05-25 01:20:11 +08:00
layerscape kernel: bump to 4.9.272, 4.14.236, 4.19.194 2021-06-11 00:48:28 +08:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
mediatek kernel: bump 5.4 to 5.4.124 2021-06-06 23:39:33 +08:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
mvebu Merge Mainline 2021-06-17 20:47:12 +08:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeon octeon: use shared function for platform_copy_config() 2021-05-17 23:51:15 +08:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
omap kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-04-22 23:09:52 +08:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
ramips ramips: mt7620: move mt7620_mdio_mode() to ethernet driver 2021-06-23 23:24:38 +08:00
realtek realtek: Fix failsafe mode 2021-06-23 23:18:17 +08:00
rockchip kernel: bump 5.10 to 5.10.43 2021-06-14 11:51:09 +08:00
sunxi kmod-rtc-sunxi: missing deps kmod-multimedia-input 2021-06-20 16:59:00 +08:00
tegra Merge Mainline 2021-06-17 20:47:12 +08:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
x86 Merge Mainline 2021-06-18 00:03:43 +08:00
zynq kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00