r8152: add comments
Add comments. Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b1379d9a20
commit
7559fb2fc5
1 changed files with 5 additions and 0 deletions
|
@ -790,6 +790,9 @@ static void read_bulk_callback(struct urb *urb)
|
|||
return;
|
||||
|
||||
netdev = tp->netdev;
|
||||
|
||||
/* When link down, the driver would cancel all bulks. */
|
||||
/* This avoid the re-submitting bulk */
|
||||
if (!netif_carrier_ok(netdev))
|
||||
return;
|
||||
|
||||
|
@ -1296,6 +1299,8 @@ static void bottom_half(unsigned long data)
|
|||
if (!test_bit(WORK_ENABLE, &tp->flags))
|
||||
return;
|
||||
|
||||
/* When link down, the driver would cancel all bulks. */
|
||||
/* This avoid the re-submitting bulk */
|
||||
if (!netif_carrier_ok(tp->netdev))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue