lkml.org 
[lkml]   [2008]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.26-rc1 regression since 2.6.25 - problem in 2.6.26-rc8 again
On Mon, 30 Jun 2008, Lukas Hejtmanek wrote:

> On Fri, Jun 27, 2008 at 04:35:59PM -0400, Alan Stern wrote:
> > Do exactly the same thing under both operating system versions, and
> > then we should have suitably comparable logs.
>
> all you wanted is attached including dmesgs.

Ah, good. I see the problem now.

To tell the truth, this has been fixed in the development tree for so
long that I had forgotten about it. Unfortunately those fixes won't
get into the regular kernel until 2.6.27. Until then we need another
fix.

The patch below should take care of the problem. Let me know how it
works.

Alan Stern



Index: 2.6.26-rc8/drivers/usb/core/hub.c
===================================================================
--- 2.6.26-rc8.orig/drivers/usb/core/hub.c
+++ 2.6.26-rc8/drivers/usb/core/hub.c
@@ -713,18 +713,11 @@ static void hub_restart(struct usb_hub *
}

/* Was the power session lost while we were suspended? */
- switch (type) {
- case HUB_RESET_RESUME:
- portstatus = 0;
- portchange = USB_PORT_STAT_C_CONNECTION;
- break;
+ status = hub_port_status(hub, port1, &portstatus, &portchange);

- case HUB_RESET:
- case HUB_RESUME:
- status = hub_port_status(hub, port1,
- &portstatus, &portchange);
- break;
- }
+ /* If the device is gone, khubd will handle it later */
+ if (status == 0 && !(portstatus & USB_PORT_STAT_CONNECTION))
+ continue;

/* For "USB_PERSIST"-enabled children we must
* mark the child device for reset-resume and


\
 
 \ /
  Last update: 2008-06-30 19:23    [W:0.052 / U:1.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site