net: macb: save/restore the remaining registers and features
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 22 May 2019 08:24:43 +0000 (08:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:21:21 +0000 (17:21 -0700)
commitc1e85c6ce57ef1eb73966152993a341c8123a8ea
treef260662bfeebb7c63c930ea2da0c3a2ac48de7c3
parent8f073036bf357867a612912eb4b7e58a9b768019
net: macb: save/restore the remaining registers and features

SAMA5D2 SoC has a suspend mode where SoC's power is cut off. Due to this
the registers content is lost after a suspend/resume cycle. The current
suspend/resume implementation covers some of these registers. However
there are few which were not treated (e.g. SCRT2 and USRIO). Apart
from this, netdev features are not restored. Treat these issues.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c