From: Mike McCormack Date: Thu, 13 May 2010 06:12:50 +0000 (+0000) Subject: sky2: Shut off interrupts before NAPI X-Git-Tag: v2.6.35-rc1~473^2~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93135a3be0d909fabca9c4329177f71ae71b6847;p=profile%2Fivi%2Fkernel-x86-ivi.git sky2: Shut off interrupts before NAPI Interrupts should be masked, then synchronized, and finally NAPI should be disabled. Signed-off-by: Mike McCormack Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index efc31e9..f13a45f 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -3320,10 +3320,10 @@ static void sky2_restart(struct work_struct *work) rtnl_lock(); - napi_disable(&hw->napi); - synchronize_irq(hw->pdev->irq); imask = sky2_read32(hw, B0_IMSK); sky2_write32(hw, B0_IMSK, 0); + synchronize_irq(hw->pdev->irq); + napi_disable(&hw->napi); for (i = 0; i < hw->ports; i++) { struct net_device *dev = hw->dev[i];