]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: 1G can also support 1000BASE-X link mode
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 11 Apr 2022 09:45:56 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:46 +0000 (10:22 +0200)
commit679620f7af6eda929eefe0e10c7f050526a828c5
tree736b17b2007b7813da1ce8c09249721e7ff1f6ed
parent5f394768c1c767b56a3b5e33bcbeeeb8ceab4b81
net: dsa: mt7530: 1G can also support 1000BASE-X link mode

[ Upstream commit 53c6169eedec0496c40037186c68caa682f9578b ]

When using an external PHY connected using RGMII to mt7531 port 5, the
PHY can be used to used support 1000BASE-X connections. Moreover, if
1000BASE-T is supported, then we should allow 1000BASE-X as well, since
which are supported is a property of the PHY.

Therefore, it makes no sense to exclude this from the linkmodes when
1000BASE-T is supported.

Fixes: 14de934c8cfb ("net: dsa: mt7530: Add the support of MT7531 switch")
Tested-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/mt7530.c