net: phy: broadcom: Allow BCM54810 to use bcm54xx_adjust_rxrefclk()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Feb 2020 20:00:47 +0000 (12:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 00:36:48 +0000 (16:36 -0800)
The function bcm54xx_adjust_rxrefclk() works correctly on the BCM54810
PHY, allow this device ID to proceed through.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c

index 7d68b28bb8938de99fb2f979cd33df9975e82903..4ad2128cc4542286e0c6c741ab0b7f1e87596a33 100644 (file)
@@ -194,7 +194,8 @@ static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
        /* Abort if we are using an untested phy. */
        if (BRCM_PHY_MODEL(phydev) != PHY_ID_BCM57780 &&
            BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610 &&
-           BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610M)
+           BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610M &&
+           BRCM_PHY_MODEL(phydev) != PHY_ID_BCM54810)
                return;
 
        val = bcm_phy_read_shadow(phydev, BCM54XX_SHD_SCR3);