]> err.no Git - linux-2.6/commitdiff
[PATCH] sky2: ethtool rx_coalesce settings fix
authorStephen Hemminger <shemminger@osdl.org>
Mon, 30 Jan 2006 19:37:56 +0000 (11:37 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 7 Feb 2006 07:00:35 +0000 (02:00 -0500)
This fixes setting rx_coalesce_usecs_irq via ethtool in sky2.
The write was directed to the wrong register.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sky2.c

index e04c4f40e0bb0c9d4ce10d9d2d43e670f4c43e75..12ff1c857bf9e4f3b38c842ca341814a0b3f74b5 100644 (file)
@@ -2847,7 +2847,7 @@ static int sky2_set_coalesce(struct net_device *dev,
        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);
        }