net: phy: broadcom: Have bcm54xx_adjust_rxrefclk() check for flags
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Feb 2020 20:00:48 +0000 (12:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 00:36:48 +0000 (16:36 -0800)
commitcb64da3a5b60b7e9312ade2d6892a1fe657d23b1
tree6c96d362aa057ab86561442473c1f051f6e8110b
parent0ececcfc9267b3dc007113d0deb314e4f94244a0
net: phy: broadcom: Have bcm54xx_adjust_rxrefclk() check for flags

bcm54xx_adjust_rxrefclk() already checks for PHY_BRCM_AUTO_PWRDWN_ENABLE
and PHY_BRCM_DIS_TXCRXC_NOENRGY in order to set the appropriate bit. The
situation is a bit more complicated with the flag
PHY_BRCM_RX_REFCLK_UNUSED but essentially amounts to the same situation.

The default setting for the 125MHz clock is to be on for all PHYs and
we still treat BCM50610 and BCM50610M specifically with the polarity of
the bit reversed.

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