提交 84787e3f 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

sky2: remove dual port workaround

This workaround was added to deal with NAPI core and how
it affected dual port shared polling. It turned out not to
be necessary. Stopping device 0 only doesn't stop NAPI from
working completely after that.
Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 a3caeada
...@@ -1579,13 +1579,6 @@ static int sky2_down(struct net_device *dev) ...@@ -1579,13 +1579,6 @@ static int sky2_down(struct net_device *dev)
imask &= ~portirq_msk[port]; imask &= ~portirq_msk[port];
sky2_write32(hw, B0_IMSK, imask); sky2_write32(hw, B0_IMSK, imask);
/*
* Both ports share the NAPI poll on port 0, so if necessary undo the
* the disable that is done in dev_close.
*/
if (sky2->port == 0 && hw->ports > 1)
netif_poll_enable(dev);
sky2_gmac_reset(hw, port); sky2_gmac_reset(hw, port);
/* Stop transmitter */ /* Stop transmitter */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册