diff options
-rw-r--r-- | drivers/net/sky2.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index cc1c8d13845f..fd7accf8f305 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1815,8 +1815,6 @@ static int sky2_down(struct net_device *dev) | |||
1815 | sky2_write32(hw, B0_IMSK, imask); | 1815 | sky2_write32(hw, B0_IMSK, imask); |
1816 | sky2_read32(hw, B0_IMSK); | 1816 | sky2_read32(hw, B0_IMSK); |
1817 | 1817 | ||
1818 | synchronize_irq(hw->pdev->irq); | ||
1819 | |||
1820 | /* Force flow control off */ | 1818 | /* Force flow control off */ |
1821 | sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF); | 1819 | sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF); |
1822 | 1820 | ||
@@ -1831,9 +1829,6 @@ static int sky2_down(struct net_device *dev) | |||
1831 | ctrl &= ~(GM_GPCR_TX_ENA | GM_GPCR_RX_ENA); | 1829 | ctrl &= ~(GM_GPCR_TX_ENA | GM_GPCR_RX_ENA); |
1832 | gma_write16(hw, port, GM_GP_CTRL, ctrl); | 1830 | gma_write16(hw, port, GM_GP_CTRL, ctrl); |
1833 | 1831 | ||
1834 | /* Make sure no packets are pending */ | ||
1835 | napi_synchronize(&hw->napi); | ||
1836 | |||
1837 | sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET); | 1832 | sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET); |
1838 | 1833 | ||
1839 | /* Workaround shared GMAC reset */ | 1834 | /* Workaround shared GMAC reset */ |
@@ -1864,6 +1859,15 @@ static int sky2_down(struct net_device *dev) | |||
1864 | sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET); | 1859 | sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET); |
1865 | sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_SET); | 1860 | sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_SET); |
1866 | 1861 | ||
1862 | /* Force any delayed status interrrupt and NAPI */ | ||
1863 | sky2_write32(hw, STAT_LEV_TIMER_CNT, 0); | ||
1864 | sky2_write32(hw, STAT_TX_TIMER_CNT, 0); | ||
1865 | sky2_write32(hw, STAT_ISR_TIMER_CNT, 0); | ||
1866 | sky2_read8(hw, STAT_ISR_TIMER_CTRL); | ||
1867 | |||
1868 | synchronize_irq(hw->pdev->irq); | ||
1869 | napi_synchronize(&hw->napi); | ||
1870 | |||
1867 | sky2_phy_power_down(hw, port); | 1871 | sky2_phy_power_down(hw, port); |
1868 | 1872 | ||
1869 | /* turn off LED's */ | 1873 | /* turn off LED's */ |