r8152: add comments
authorhayeswang <hayeswang@realtek.com>
Fri, 16 Aug 2013 08:09:38 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 07:08:22 +0000 (00:08 -0700)
Add comments.

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

index 825edfe8c088cf2bfa9f63f65786611d66e122a3..f3fce412c0c1a38bb7a5522ebf0d2dd2139bbff5 100644 (file)
@@ -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;