[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071115105304.76ef6f29@freepuppy.rosehill>
Date: Thu, 15 Nov 2007 10:53:04 -0800
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: Florian Fainelli <florian.fainelli@...ecomint.eu>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>
Subject: Re: [PATCH] r6040 various bugfixes
On Thu, 15 Nov 2007 19:37:43 +0100
Florian Fainelli <florian.fainelli@...ecomint.eu> wrote:
> This patch fixes various bugfixes spotted by Stephen, thanks !
>
> - add functions to allocate/free TX and RX buffers
> - recover from transmit timeout and use the 4 helpers defined below
> - use netdev_alloc_skb instead of dev_alloc_skb
> - do not use a private stats structure to store statistics
> - break each TX/RX error to a separate line for better reading
> - suppress volatiles and make checkpatch happy
> - better control of the timer
> - fix spin_unlock_irq typo in netdev_get_settings
> - fix various typos and spelling in the driver
>
> Signed-off-by: Florian Fainelli <florian.fainelli@...ecomint.eu>
Looks good, thanks:
There is a function to make this easier:
> @@ -756,10 +803,8 @@ r6040_open(struct net_device *dev)
> if (lp->switch_sig != ICPLUS_PHY_ID) {
> /* set and active a timer process */
> init_timer(&lp->timer);
> - lp->timer.expires = TIMER_WUT;
> lp->timer.data = (unsigned long)dev;
> lp->timer.function = &r6040_timer;
> - add_timer(&lp->timer);
Could be:
setup_timer(&lp->timer, r6040_timer, dev);
if (lp->switch_sig != ICPLUS_PHY_ID)
mod_timer(&lp->timer, jiffies + HZ);
--
Stephen Hemminger <shemminger@...ux-foundation.org>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists