]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: set RTL8152_UNPLUG only for real disconnection
authorHayes Wang <hayeswang@realtek.com>
Thu, 4 Jul 2019 09:36:32 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:37:32 +0000 (15:37 -0700)
commitd0354ab7fe012e067aa8091ed7703cf022d9fd91
tree8a01ea019bc940af3333576bf04f529433ae29d3
parent18ca90ef8f6f84ab6c19b547d46c3e3336980e43
r8152: set RTL8152_UNPLUG only for real disconnection

Set the flag of RTL8152_UNPLUG if and only if the device is unplugged.
Some error codes sometimes don't mean the real disconnection of usb device.
For those situations, set the flag of RTL8152_UNPLUG causes the driver skips
some flows of disabling the device, and it let the device stay at incorrect
state.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c