On Tue, 28 Jun 2005 [EMAIL PROTECTED] wrote:

> Selon Alan Stern <[EMAIL PROTECTED]>:
> 
> > On Sun, 26 Jun 2005 [EMAIL PROTECTED] wrote:
> >
> > > You are right, the patch doesn't match the code.
> >
> > Okay, here's a patch that does apply to vanilla 2.6.12.  This will prevent
> > the driver from suspending the controller.
> >
> > Alan Stern
> >
> >
> > Index: linux-2.6.12/drivers/usb/host/uhci-hcd.c
> > ===================================================================
> > --- linux-2.6.12.orig/drivers/usb/host/uhci-hcd.c
> > +++ linux-2.6.12/drivers/usb/host/uhci-hcd.c
> > @@ -282,6 +282,7 @@ static int ports_active(struct uhci_hcd
> >     int connection = 0;
> >     int i;
> >
> > +   return 1;
> >     for (i = 0; i < uhci->rh_numports; i++)
> >             connection |= (inw(io_addr + USBPORTSC1 + i * 2) & 
> > USBPORTSC_CCS);
> >
> >
> >
> 
> ok it works. no more hang !!
> I can plug-unplug-plug etc.. no problem.
> If the uhci-hcd module is unloaded, the device plugged, the module loaded
> manually, no problem too.

That proves the problem was caused by the controller chip when it resumed.

> Thank you very very much for everything and for your big availability !!

You're welcome.

> I keep the patch by myself. Just to know, do you plan a option in the kernel 
> for
> this workaround ?

No.  You should keep that earlier patch, by the way.  When 2.6.13 comes 
out, the later patch won't apply any more but the earlier one probably 
will.

> By the way, was this problem reported by other people ?

Nobody else has reported anything like it; yours is the only controller
with this problem.  That's the main reason why there won't be an option
for this workaround in the kernel.  If there are reports from other people
showing the same behavior, then I will add an option to prevent suspending
the controller.

Alan Stern



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to