]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Fix qca8081 with speeds lower than 2.5Gb/s
authorJonathan McDowell <noodles@earth.li>
Mon, 31 Jan 2022 13:56:41 +0000 (13:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Feb 2022 11:57:09 +0000 (11:57 +0000)
commit90399726a18a6ee4568acb85e561cee1c04df10a
tree8e810d5dff9faaf3ebd22e829d895cda4f28a19e
parentf34b7dd51425d07c3c0c9628e9a42f524587f8d8
net: phy: Fix qca8081 with speeds lower than 2.5Gb/s

A typo in qca808x_read_status means we try to set SMII mode on the port
rather than SGMII when the link speed is not 2.5Gb/s. This results in no
traffic due to the mismatch in configuration between the phy and the
mac.

v2:
 Only change interface mode when the link is up

Fixes: 2a2f2affa4fd3 ("net: phy: add qca8081 read_status")
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c