]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mediatek: remove PHY mode check on MT7531
authorDENG Qingfang <dqfext@gmail.com>
Wed, 9 Feb 2022 14:39:47 +0000 (22:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Feb 2022 14:21:01 +0000 (14:21 +0000)
commit50a7f73b651d2186954bb69dd290e839df6a8158
tree39174e7615e6291d3d5ea610841ea6ad94b4e9bb
parenta2bb4c7cbab1e1de2df78f40ea0a74ee6a830e0e
net: phy: mediatek: remove PHY mode check on MT7531

The function mt7531_phy_mode_supported in the DSA driver set supported
mode to PHY_INTERFACE_MODE_GMII instead of PHY_INTERFACE_MODE_INTERNAL
for the internal PHY, so this check breaks the PHY initialization:

mt7530 mdio-bus:00 wan (uninitialized): failed to connect to PHY: -EINVAL

Remove the check to make it work again.

Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Fixes: a9ecc9f85801 ("net: phy: add MediaTek Gigabit Ethernet PHY driver")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Tested-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mediatek-ge.c