]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpsw: Fix RGMII configuration at SPEED_10
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Tue, 29 Nov 2022 05:06:39 +0000 (10:36 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Dec 2022 05:20:32 +0000 (21:20 -0800)
commit94b4dfdb3eff595c74435aaf683b2f570d509f89
tree734d1eac96b3f55e67e70b3b6bc2b8462b588c14
parentcf9dcdc1f30a9068161f9e1bd066b9068764f5a7
net: ethernet: ti: am65-cpsw: Fix RGMII configuration at SPEED_10

The am65-cpsw driver supports configuring all RGMII variants at interface
speed of 10 Mbps. However, in the process of shifting to the PHYLINK
framework, the support for all variants of RGMII except the
PHY_INTERFACE_MODE_RGMII variant was accidentally removed.

Fix this by using phy_interface_mode_is_rgmii() to check for all variants
of RGMII mode.

Fixes: e2109dceab93 ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
Reported-by: Schuyler Patton <spatton@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20221129050639.111142-1-s-vadapalli@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c