net: phy: Initialize mdio clock at probe function
authorYendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com>
Wed, 8 Feb 2017 22:14:26 +0000 (17:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 22:10:23 +0000 (17:10 -0500)
commitbb1a619735b4660f21bce3e728b937640024b4ad
treecf73ea48581dd23195bb427bd3e9c2c144928096
parent9c8bb163ae784be4f79ae504e78c862806087c54
net: phy: Initialize mdio clock at probe function

USB PHYs need the MDIO clock divisor enabled earlier to work.
Initialize mdio clock divisor in probe function. The ext bus
bit available in the same register will be used by mdio mux
to enable external mdio.

Signed-off-by: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com>
Fixes: ddc24ae1 ("net: phy: Broadcom iProc MDIO bus driver")
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-iproc.c