1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-27 11:25:09 +02:00
openwrt/target/linux/ramips
Michael Pratt afd60d650e ramips: mt7620: fix ethernet driver GMAC port init
A workaround was added to the switch driver
to set SOC port 4 as an RGMII GMAC interface
based on the DTS property mediatek,port4-gmac.
(previously mediatek,port4)

However, the ethernet driver already does this,
but is being blocked by a return statement
whenever the phy-handle and fixed-link properties
are both missing from nodes that define the port properties.

Revert the workaround, so that both the switch driver
and ethernet driver are not doing the same thing
and move the phy-handle related lines down
so nothing is ending the function prematurely.

While at it, clean up kernel messages
and delete useless return statements.

Fixes: f6d81e2fa1 ("mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2021-06-23 14:22:18 +08:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: mt7620: remove useless GMAC nodes 2021-06-23 14:22:18 +08:00
files/drivers ramips: mt7620: fix ethernet driver GMAC port init 2021-06-23 14:22:18 +08:00
image ramips: clean up dlink_dir-8xx-r1 recipe 2021-06-20 17:29:52 +02:00
mt76x8 ramips: fix Ethernet random MAC address for HILINK HLK-7628N 2021-06-09 22:18:37 +02:00
mt7620 ramips: add support for the Wavlink WL-WN579X3 2021-06-06 18:56:45 +02:00
mt7621 ramips: add support for TP-Link Archer C6 v3 2021-06-13 11:32:31 +02:00
patches-5.4 ramips: refresh at803x patch 2021-06-14 01:36:30 +02:00
patches-5.10 generic: backport at803x fixes 2021-06-08 00:38:28 +02:00
rt288x treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rt305x treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rt3883 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
Makefile ramips: 5.10: port and refresh patches, ralink drv 2021-03-06 11:24:12 +01:00
modules.mk ramips: rename mtk-hsdma to hsdma-mt7621 2021-03-04 23:43:02 -10:00