diff options
author | hayeswang <hayeswang@realtek.com> | 2017-03-23 14:14:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 22:31:02 +0300 |
commit | 2f25abe6bac573928a990ccbdac75873add8127e (patch) | |
tree | f534c13a8f2981ba4617999a203bbd8d1301d857 /drivers/sh | |
parent | 49d52e8108a21749dc2114b924c907db43358984 (diff) | |
download | linux-2f25abe6bac573928a990ccbdac75873add8127e.tar.xz |
r8152: prevent the driver from transmitting packets with carrier off
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>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions