[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1291631047-23766-1-git-send-email-Indrek.Peri@Ericsson.com>
Date: Mon, 6 Dec 2010 11:24:07 +0100
From: Indrek Peri <Indrek.Peri@...csson.com>
To: <dbrownell@...rs.sourceforge.net>
CC: <netdev@...r.kernel.org>, Indrek Peri <Indrek.Peri@...csson.com>
Subject: [PATCH] Dot not insert RX urbs if EVENT_DEV_ASLEEP flag is set.
Signed-off-by: Indrek Peri <Indrek.Peri@...csson.com>
---
drivers/net/usb/usbnet.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index c04d49e..d83adcc 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1172,7 +1172,8 @@ static void usbnet_bh (unsigned long param)
} else if (netif_running (dev->net) &&
netif_device_present (dev->net) &&
!timer_pending (&dev->delay) &&
- !test_bit (EVENT_RX_HALT, &dev->flags)) {
+ !test_bit (EVENT_RX_HALT, &dev->flags) &&
+ !test_bit (EVENT_DEV_ASLEEP, &dev->flags)) {
int temp = dev->rxq.qlen;
int qlen = RX_QLEN (dev);
--
1.7.0.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists