net: phy: restore mdio regs in the iproc mdio driver
authorArun Parameswaran <arun.parameswaran@broadcom.com>
Fri, 14 Feb 2020 21:47:46 +0000 (13:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:19:18 +0000 (19:19 -0800)
commit6f08e98d62799e53c89dbf2c9a49d77e20ca648c
tree5e5cfa2a908a4b611ac84760e7d55c8df02e01a0
parente08ad80551b4b33c02f2fce1522f6c227d3976cf
net: phy: restore mdio regs in the iproc mdio driver

The mii management register in iproc mdio block
does not have a retention register so it is lost on suspend.
Save and restore value of register while resuming from suspend.

Fixes: bb1a619735b4 ("net: phy: Initialize mdio clock at probe function")
Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-iproc.c