]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf8d0ad583bbacc9964f08be6b5044d84a9400eb
treef260662bfeebb7c63c930ea2da0c3a2ac48de7c3
parent6db447193ccc74359e6eb62c966c1353e9c17d00
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