aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/64
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2021-06-01 23:01:26 -0400
committerChuanhong Guo <gch981213@gmail.com>2021-06-23 14:22:18 +0800
commitafd60d650e769e9578eac5bb3647807f683aaf7c (patch)
tree333f0f566f955c6a0ecd31cde684830011c609e9 /target/linux/x86/64
parenta2acdf9607045e5669c305c57dd7c77be8351ba0 (diff)
downloadupstream-afd60d650e769e9578eac5bb3647807f683aaf7c.tar.gz
upstream-afd60d650e769e9578eac5bb3647807f683aaf7c.tar.bz2
upstream-afd60d650e769e9578eac5bb3647807f683aaf7c.zip
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: f6d81e2fa1f1 ("mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible") Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'target/linux/x86/64')
0 files changed, 0 insertions, 0 deletions