From: hayeswang Date: Fri, 16 Aug 2013 08:09:38 +0000 (+0800) Subject: r8152: add comments X-Git-Tag: upstream/snapshot3+hdmi~4422^2~274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7559fb2fc547b3507ba462c6558e291fb21b9cee;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git r8152: add comments Add comments. Signed-off-by: Hayes Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 825edfe..f3fce41 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -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;