From: Stephen Hemminger Date: Tue, 3 Feb 2009 11:27:27 +0000 (+0000) Subject: sky2: remove unneede workaround X-Git-Tag: MMI-PSA29.97-13-9~29230^2~835 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1bd68c04850b9e73f1c7022b9a8c38cd14ceb37d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sky2: remove unneede workaround This workaround is not needed. It was inherited from sk98lin driver but only applies to an early development version of the chip that is not supported by sky2. The workaround required an unnecessary pci read which hurts performance Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 994703cc0db3..db925085c185 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -2687,13 +2687,6 @@ static int sky2_poll(struct napi_struct *napi, int work_limit) goto done; } - /* Bug/Errata workaround? - * Need to kick the TX irq moderation timer. - */ - if (sky2_read8(hw, STAT_TX_TIMER_CTRL) == TIM_START) { - sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_STOP); - sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_START); - } napi_complete(napi); sky2_read32(hw, B0_Y2_SP_LISR); done: