Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-14 Thread Claudio Lanconelli
David Brownell wrote: On Monday 11 February 2008, Claudio Lanconelli wrote: I have tried your latest patch. Only after the following change it works fine (no more rx errors during ifconfig up). Hmm, what chip rev do you have? Different errata and all. ISTR mine is rev4; so, not the

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-11 Thread David Brownell
On Monday 11 February 2008, Claudio Lanconelli wrote: I have tried your latest patch. Only after the following change it works fine (no more rx errors during ifconfig up). Hmm, what chip rev do you have? Different errata and all. ISTR mine is rev4; so, not the most current, but not the oldest

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-11 Thread Claudio Lanconelli
David Brownell wrote: and in the enc28j60_net_close() after enc28j60_hw_disable(). Probably we don't need to set_lowpower(false) in enc28j60_net_open() since it performs a soft reset with enc28j60_hw_init() (not sure). The current patch sets the device in low power mode in

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-10 Thread David Brownell
On Thursday 07 February 2008, Claudio Lanconelli wrote: David Brownell wrote: How long did that take? I did about four dozen ifconfig eth1 up sleep 3 ifconfig eth1 down cycles ... it worked fine. The sleep was to let the link negotiation complete. After a

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-07 Thread Claudio Lanconelli
David Brownell wrote: How long did that take? I did about four dozen ifconfig eth1 up sleep 3 ifconfig eth1 down cycles ... it worked fine. The sleep was to let the link negotiation complete. After a couple of : ifconfig eth0 down (wait just 1 second) ifconfig

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-06 Thread Claudio Lanconelli
David Brownell wrote: From: David Brownell [EMAIL PROTECTED] Prevent unaligned packet oops on enc28j60 packet RX. How can I reproduce the unaligned packet oops? Did you use any utilities to force this condition? Keep enc28j60 chips in low-power mode when they're not in use. At typically

Re: [patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-06 Thread David Brownell
On Wednesday 06 February 2008, Claudio Lanconelli wrote: Good idea, but with your patch applied, after some ifconfig down - ifconfig up cycle, the enc28j60 is left in an unknown state and it doesn' Rx/Tx anything. How long did that take? I did about four dozen ifconfig eth1 up

[patch 2.6.24-git] net/enc28j60: oops fix, low power mode

2008-02-05 Thread David Brownell
From: David Brownell [EMAIL PROTECTED] Prevent unaligned packet oops on enc28j60 packet RX. Keep enc28j60 chips in low-power mode when they're not in use. At typically 120 mA, these chips run hot even when idle. Low power mode cuts that power usage by a factor of around 100. Signed-off-by: