]> 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)
commit3466dd1b01b5e3b4e3c525219f41c7c6fbbc1b72
treef260662bfeebb7c63c930ea2da0c3a2ac48de7c3
parentcae06dbead11397356e5b0e05803cf3ba046f0cd
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