]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lantiq_gswip: Let GSWIP automatically set the xMII clock
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Wed, 24 Mar 2021 19:36:04 +0000 (20:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Mar 2021 23:53:38 +0000 (16:53 -0700)
commitd229a4a01fb9e1232403f770eb6f2257cac3e3d6
tree238cdbe717dc9afc9b28390518efdeb80f35b1e9
parent2e5f80331702e819a7e75834a7a7d84e1a5f3fe8
net: dsa: lantiq_gswip: Let GSWIP automatically set the xMII clock

The xMII interface clock depends on the PHY interface (MII, RMII, RGMII)
as well as the current link speed. Explicitly configure the GSWIP to
automatically select the appropriate xMII interface clock.

This fixes an issue seen by some users where ports using an external
RMII or RGMII PHY were deaf (no RX or TX traffic could be seen). Most
likely this is due to an "invalid" xMII clock being selected either by
the bootloader or hardware-defaults.

Fixes: 1e1742476b63e3 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lantiq_gswip.c