mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-09 04:36:16 +09:00
net: phy: ti: Fix dp83867 RGMII_TXID interface path
There is code that is specifically for RGMII_TXID interface, but this will never get used because the code checks that the RGMII interface is RGMII_ID to RGMII_RXID; RGMII_TXID is after this. To fix this and avoid similar problems in the future, use the phy_interface_is_rgmii helper function. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
c25f01a63a
commit
8abdeadc5c
|
@ -246,8 +246,7 @@ static int dp83867_config(struct phy_device *phydev)
|
||||||
phy_write(phydev, MDIO_DEVAD_NONE, MII_DP83867_BISCR, 0x0);
|
phy_write(phydev, MDIO_DEVAD_NONE, MII_DP83867_BISCR, 0x0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((phydev->interface >= PHY_INTERFACE_MODE_RGMII_ID) &&
|
if (phy_interface_is_rgmii(phydev)) {
|
||||||
(phydev->interface <= PHY_INTERFACE_MODE_RGMII_RXID)) {
|
|
||||||
val = phy_read_mmd_indirect(phydev, DP83867_RGMIICTL,
|
val = phy_read_mmd_indirect(phydev, DP83867_RGMIICTL,
|
||||||
DP83867_DEVADDR, phydev->addr);
|
DP83867_DEVADDR, phydev->addr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user