Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-29 Thread David Brownell
On Tuesday 25 July 2006 2:35 pm, Peter Chubb wrote: > David> ... in fact, it'd be a good thing to convert rtl8150 to run in > David> that driver framework, much like asix.c does already. You'd > David> probably get better throughput too. That's only if you have > David> the time... :) > > We ne

Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-28 Thread Peter Chubb
> "David" == David Brownell <[EMAIL PROTECTED]> writes: >> I get the feeling that your patch does much more testing for >> -ENODEV than necessary, and likewise for calls to >> netif_device_detach(). David> Paranoia? :) Indeed. >> Do you really have to call that routine from anywhere but th

Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-26 Thread Petko Manolov
The patch surely fix the unplug issue so after applying it the driver will be in better state than it is now. My only micro-addition was to shut off RX warning that was polluting the kernel log and replace it with dbg(). Greg, please apply. Petko On Tue, 25 Jul 2006, Peter

Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-25 Thread David Brownell
> I get the feeling that your patch does much more testing for -ENODEV than > necessary, and likewise for calls to netif_device_detach(). Paranoia? :) > Do you really > have to call that routine from anywhere but the disconnect() method? That routine is how the network layer knows not to se

Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-25 Thread Alan Stern
On Tue, 25 Jul 2006, Peter Chubb wrote: > The RTL8150 driver currently crashes the kernel if the USB lead is unplugged > while the device is active. The attached patch adds error handling to > tell the network layer that the device has gone away when the device is > unplugged. With this patch, t

[linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-25 Thread Peter Chubb
The RTL8150 driver currently crashes the kernel if the USB lead is unplugged while the device is active. The attached patch adds error handling to tell the network layer that the device has gone away when the device is unplugged. With this patch, the device can be plugged and unplugged to one's