From: Stephen Hemminger <shemminger@osdl.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linus@osdl.org, netdev@vger.kernel.org
Subject: [RFT 3/5] sky2: suspend/resume patchlets
Date: Tue, 13 Jun 2006 17:17:29 +0900 [thread overview]
Message-ID: <20060613081930.598695000@localhost.localdomain> (raw)
In-Reply-To: 20060613081726.695812000@localhost.localdomain
[-- Attachment #1: sky2-poll-complete.patch --]
[-- Type: text/plain, Size: 700 bytes --]
Subject: [RFT 3/5] sky2: fix hotplug detect during poll
Linus, doesn't understand NAPI.
If the poll routine detects no hardware available, it needs to dequeue
it self from the network poll list.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
--- test.orig/drivers/net/sky2.c
+++ test/drivers/net/sky2.c
@@ -2181,7 +2181,7 @@ static int sky2_poll(struct net_device *
u32 status = sky2_read32(hw, B0_Y2_SP_EISR);
if (!~status)
- return 0;
+ goto out;
if (status & Y2_IS_HW_ERR)
sky2_hw_intr(hw);
@@ -2219,7 +2219,7 @@ static int sky2_poll(struct net_device *
if (sky2_more_work(hw))
return 1;
-
+out:
netif_rx_complete(dev0);
sky2_read32(hw, B0_Y2_SP_LISR);
--
next prev parent reply other threads:[~2006-06-13 8:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 8:17 [RFT 0/5] sky2: suspend/resume patchlets Stephen Hemminger
2006-06-13 8:17 ` [RFT 1/5] " Stephen Hemminger
2006-06-13 8:17 ` [RFT 2/5] " Stephen Hemminger
2006-06-13 8:17 ` Stephen Hemminger [this message]
2006-06-13 8:17 ` [RFT 4/5] " Stephen Hemminger
2006-06-13 8:17 ` [RFT 5/5] " Stephen Hemminger
2006-06-13 13:22 ` [RFT 0/5] " Jeff Garzik
2006-06-13 16:38 ` Linus Torvalds
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=20060613081930.598695000@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=jgarzik@pobox.com \
--cc=linus@osdl.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.