diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2018-07-17 13:17:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-18 13:43:16 -0700 |
commit | 5c968f48021a9b3faa61ac2543cfab32461c0e05 (patch) | |
tree | 1225823c2a44aaddaf6f0532b9c3a66ee2bafe8a /net | |
parent | 676bcfece19f83621e905aa55b5ed2d45cc4f2d3 (diff) | |
download | op-kernel-dev-5c968f48021a9b3faa61ac2543cfab32461c0e05.zip op-kernel-dev-5c968f48021a9b3faa61ac2543cfab32461c0e05.tar.gz |
net: usb: asix: replace mii_nway_restart in resume path
mii_nway_restart is not pm aware which results in a rtnl deadlock.
Implement mii_nway_restart manual by setting BMCR_ANRESTART if
BMCR_ANENABLE is set.
To reproduce:
* plug an asix based usb network interface
* wait until the device enters PM (~5 sec)
* `ip link set eth1 up` will never return
Fixes: d9fe64e51114 ("net: asix: Add in_pm parameter")
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions