Files
twx-linux/drivers
hayeswang 8ce4313f12 r8152: prevent the driver from transmitting packets with carrier off
[ Upstream commit 2f25abe6ba ]

The linking status may be changed when autosuspend. And, after
autoresume, the driver may try to transmit packets when the device
is carrier off, because the interrupt transfer doesn't update the
linking status, yet. And, if the device is in ALDPS mode, the device
would stop working.

The another similar case is
 1. unplug the cable.
 2. interrupt transfer queue a work_queue for linking change.
 3. device enters the ALDPS mode.
 4. a tx occurs before the work_queue is called.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:22:12 +01:00
..
…
2017-12-16 10:33:55 +01:00
…
…
…
…
…
…
…
2017-12-16 10:33:53 +01:00
…
…
2017-11-30 08:37:27 +00:00
…
…
…
…
…
…
…
…
2017-12-20 10:04:57 +01:00
…
2017-12-25 14:22:11 +01:00
…
…
…
…
…
…
…
…
…
…
…