Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] sky2: fix hotplug detect during poll

If the poll routine detects no hardware available, it needs to dequeue
it self from the network poll list. Linus didn't understand NAPI.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Stephen Hemminger and committed by
Linus Torvalds
26ec43f1 f05267e7

+2 -2
+2 -2
drivers/net/sky2.c
··· 2181 2181 u32 status = sky2_read32(hw, B0_Y2_SP_EISR); 2182 2182 2183 2183 if (!~status) 2184 - return 0; 2184 + goto out; 2185 2185 2186 2186 if (status & Y2_IS_HW_ERR) 2187 2187 sky2_hw_intr(hw); ··· 2219 2219 2220 2220 if (sky2_more_work(hw)) 2221 2221 return 1; 2222 - 2222 + out: 2223 2223 netif_rx_complete(dev0); 2224 2224 2225 2225 sky2_read32(hw, B0_Y2_SP_LISR);