From: Indrek Peri <Indrek.Peri@Ericsson.com>
To: <dbrownell@users.sourceforge.net>
Cc: <netdev@vger.kernel.org>, Indrek Peri <Indrek.Peri@Ericsson.com>
Subject: [PATCH] Dot not insert RX urbs if EVENT_DEV_ASLEEP flag is set.
Date: Mon, 6 Dec 2010 11:24:07 +0100 [thread overview]
Message-ID: <1291631047-23766-1-git-send-email-Indrek.Peri@Ericsson.com> (raw)
Signed-off-by: Indrek Peri <Indrek.Peri@Ericsson.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
next reply other threads:[~2010-12-06 10:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 10:24 Indrek Peri [this message]
[not found] ` <1291631047-23766-1-git-send-email-Indrek.Peri-rMwOiwQz3sZWk0Htik3J/w@public.gmane.org>
2010-12-07 2:49 ` [PATCH] Dot not insert RX urbs if EVENT_DEV_ASLEEP flag is set David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291631047-23766-1-git-send-email-Indrek.Peri@Ericsson.com \
--to=indrek.peri@ericsson.com \
--cc=dbrownell@users.sourceforge.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).