]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0db9e21471bc9f14877be21966e810f9d21d6df
tree619545c43c1803f67e2828e921716bbcfa553f5d
parent5f2bf61aa1d85e0864456bb000089cd28c3d967d
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