Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754341Ab3HPILj (ORCPT ); Fri, 16 Aug 2013 04:11:39 -0400 Received: from rtits2.realtek.com ([60.250.210.242]:52634 "EHLO rtits2.realtek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753613Ab3HPIKw (ORCPT ); Fri, 16 Aug 2013 04:10:52 -0400 X-SpamFilter-By: BOX Solutions SpamTrap 5.34 with qID r7G8AaMF017142, This message is accepted by code: ctloc85258 From: Hayes Wang To: , CC: , , , Hayes Wang Subject: [PATCH net-next 7/7] r8152: add comments Date: Fri, 16 Aug 2013 16:09:38 +0800 Message-ID: <1376640578-4258-7-git-send-email-hayeswang@realtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1376640578-4258-1-git-send-email-hayeswang@realtek.com> References: <1376640578-4258-1-git-send-email-hayeswang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 38 Add comments. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/