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)
commit23219c134865d524357e9bb90e5badb422ac8fff
tree9f523c5723ed27451eab245cbc9da1afea61e40e
parent6ad576bb6715c1da1bb5c2ce59c3747368bba41f
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