]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:31 +0000 (16:43 +0100)
commitfe3980dc54b4f497e0fec8a5ab7a3bb64e6e5d1b
tree69c07e02cb0a84603a1f53255f4af114d6557136
parentb32940443d2e6c3ff58a3ba091effd9e9df3f4c9
net: phy: restore mdio regs in the iproc mdio driver

commit 3c0338835167c28241a280bf741027ef90583099 upstream.

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: 468f1a0bebf0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/mdio-bcm-iproc.c