diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 17:24:06 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 17:24:06 -0700 |
commit | 320f0d3bea6a54d9eb42a31e2df2d4cb325404fb (patch) | |
tree | 8a8b798c19df0d44561230a7193be0f339d4e5b6 /usb | |
parent | 5180aff9a27e53abd72d1f91fcabd3fbcb04254b (diff) | |
download | patches-320f0d3bea6a54d9eb42a31e2df2d4cb325404fb.tar.gz |
add usb suspend fix patch
Diffstat (limited to 'usb')
-rw-r--r-- | usb/usb-get-usb-suspend-to-work-again.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/usb/usb-get-usb-suspend-to-work-again.patch b/usb/usb-get-usb-suspend-to-work-again.patch new file mode 100644 index 0000000000000..535f44a79176f --- /dev/null +++ b/usb/usb-get-usb-suspend-to-work-again.patch @@ -0,0 +1,29 @@ +From foo@baz Tue Apr 9 12:12:43 2002 +Date: Thu, 22 Jun 2006 13:29:52 -0700 +To: Greg KH <greg@kroah.com> +From: Greg Kroah-Hartman <gregkh@suse.de> +Subject: USB: get USB suspend to work again + +Yeah, it's a hack, but it is only temporary until Alan's patches +reworking this area make it in. We really should not care what devices +below us are doing, especially when we do not really know what type of +devices they are. This patch relies on the fact that the endpoint +devices do not have a driver assigned to us. + +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/usb/core/usb.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- gregkh-2.6.orig/drivers/usb/core/usb.c ++++ gregkh-2.6/drivers/usb/core/usb.c +@@ -991,6 +991,8 @@ void usb_buffer_unmap_sg (struct usb_dev + + static int verify_suspended(struct device *dev, void *unused) + { ++ if (dev->driver == NULL) ++ return 0; + return (dev->power.power_state.event == PM_EVENT_ON) ? -EBUSY : 0; + } + |