]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Patch for rtl8150 to fix unplug problems
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Tue, 25 Jul 2006 10:39:14 +0000 (20:39 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Aug 2006 23:41:42 +0000 (16:41 -0700)
commitb49f67e4f328274c564cfec2e239bef143b3cbcf
tree9f523c5723ed27451eab245cbc9da1afea61e40e
parente394711ed335993fb139095fdd4f03fbcc42307c
USB: Patch for rtl8150 to fix unplug problems

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 hearts' content, without crashing anything.

Oh, I've also added rudimentary suspend and resume methods.

Signed-off-by: Peter Chubb <peter@gelato.unsw.edu.au>
Acked-by: Petko Manolov <petkan@nucleusys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/net/rtl8150.c