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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:47:14 +0000 (18:47 +0100)
commit590ee2e0aec71938951fec21d27fdb54684f264e
tree73556b870c793ff061ff793e49c1294a5d6fae79
parent73cb54858021d908dbb97a576b96a4f2c98f49d5
net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider

[ Upstream commit b78ac6ecd1b6b46f8767cbafa95a7b0b51b87ad8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt
drivers/net/phy/mdio-bcm-unimac.c