]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: asix: Add in_pm parameter
authorRobert Foss <robert.foss@collabora.com>
Mon, 29 Aug 2016 13:32:15 +0000 (09:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 04:07:05 +0000 (21:07 -0700)
commitd9fe64e511144c1ee7d7555b4111f09dde9692ef
tree2e69c80dc328131d744ae10b494c227c0a659079
parentc7735f1bac209e285839ccead00873b27afc013b
net: asix: Add in_pm parameter

From: Freddy Xin <freddy@asix.com.tw>

In order to R/W registers in suspend/resume functions, in_pm flags are
added to some functions to determine whether the nopm version of usb
functions is called.

Save BMCR and ANAR PHY registers in suspend function and restore them
in resume function.

Reset HW in resume function to ensure the PHY works correctly.

Signed-off-by: Freddy Xin <freddy@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.h
drivers/net/usb/asix_common.c
drivers/net/usb/asix_devices.c
drivers/net/usb/ax88172a.c