]> 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)
commita7f6c5cb7c340a8f66211b3b65a732eaaed4b731
tree619545c43c1803f67e2828e921716bbcfa553f5d
parentfa289f4a6a4295bfd685f1ff47165c749271c3eb
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