[PATCH] uhci-hcd suspend fix
authorJan Harkes <jaharkes@cs.cmu.edu>
Mon, 22 Jul 2002 09:08:13 +0000 (02:08 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 22 Jul 2002 09:08:13 +0000 (02:08 -0700)
commit54d3494d572be96ce8e85cc5b633ea1291ed2abe
tree4551489c44c1a492d8699e3a72054f2ccd73c1ee
parent2b4c148caf18e23cf43fa5a57d8401f50afda655
[PATCH] uhci-hcd suspend fix

Problem:

When resuming after a suspend, the driver disconnects. Later on, (next
usb interrupt?) or suspend/resume, the kernel oopses.

Cause:

hcd.state is never set to 'USB_STATE_READY' when resuming. The following
patch fixes this. Maybe Johannes might want to do it differently, i.e.
by adding hcd.state = USB_STATE_READY to uhci_resume instead of moving
the state change into start_hc.
drivers/usb/host/uhci-hcd.c