net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 21 Sep 2018 00:05:40 +0000 (17:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:08:24 +0000 (19:08 -0700)
commitb78ac6ecd1b6b46f8767cbafa95a7b0b51b87ad8
tree619545c43c1803f67e2828e921716bbcfa553f5d
parent94e7c844990f0db92418586b107be135b4963b66
net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider

Allow the configuration of the MDIO clock divider when the Device Tree
contains 'clock-frequency' property (similar to I2C and SPI buses).
Because the hardware may have lost its state during suspend/resume,
re-apply the MDIO clock divider upon resumption.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt
drivers/net/phy/mdio-bcm-unimac.c