This fixes setting rx_coalesce_usecs_irq via ethtool in sky2.
The write was directed to the wrong register.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
Signed-off-by: Carl-Daniel Hailfinger <[EMAIL PROTECTED]>

--- sky2-1.0.orig/drivers/net/sky2.c
+++ sky2-1.0/drivers/net/sky2.c
@@ -2827,7 +2827,7 @@ static int sky2_set_coalesce(struct net_
if (ecmd->rx_coalesce_usecs_irq == 0)
        sky2_write8(hw, STAT_ISR_TIMER_CTRL, TIM_STOP);
else {
-               sky2_write32(hw, STAT_TX_TIMER_INI,
+               sky2_write32(hw, STAT_ISR_TIMER_INI,
                     sky2_us2clk(hw, ecmd->rx_coalesce_usecs_irq));
        sky2_write8(hw, STAT_ISR_TIMER_CTRL, TIM_START);
}

--

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to