Re: [PATCH net] r8152: set RTL8152_UNPLUG only for real disconnection

From: David Miller
Date: Fri Jul 05 2019 - 18:38:50 EST


From: Hayes Wang <hayeswang@xxxxxxxxxxx>
Date: Thu, 4 Jul 2019 17:36:32 +0800

> 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@xxxxxxxxxxx>

Applied.