net: asix: Fix AX88772x resume failures
authorRobert Foss <robert.foss@collabora.com>
Mon, 29 Aug 2016 13:32:17 +0000 (09:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 04:07:06 +0000 (21:07 -0700)
commit4c1442aa8c2c0a2513516aeac184ea172bb04dec
treea05af0303ea972bbd75f5421015aaf761459e225
parent8a46f665833a2085e402bd0827be380f161f09ef
net: asix: Fix AX88772x resume failures

From: Allan Chou <allan@asix.com.tw>

The change fixes AX88772x resume failure by
- Restore incorrect AX88772A PHY registers when resetting
- Need to stop MAC operation when suspending
- Need to restart MII when restoring PHY

Signed-off-by: Allan Chou <allan@asix.com.tw>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c