OSDN Git Service

usbnet: smsc95xx: disable carrier check while suspending
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Wed, 31 Oct 2018 21:52:19 +0000 (22:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2018 06:49:15 +0000 (23:49 -0700)
commit7b900ead6cc66b2ee873cb042dfba169aa68b56c
tree0bc77a9b29d6e2612104754089386b403c0704b7
parent49682bfa1e0e448a711471a5db83be0df1fb39a2
usbnet: smsc95xx: disable carrier check while suspending

We need to make sure, that the carrier check polling is disabled
while suspending. Otherwise we can end up with usbnet_read_cmd()
being issued when only usbnet_read_cmd_nopm() is allowed. If this
happens, read operations lock up.

Fixes: d69d169493 ("usbnet: smsc95xx: fix link detection for disabled autonegotiation")
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Raghuram Chary J <RaghuramChary.Jallipalli@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c