Re: USB device fails to enumerate after multiple connect and disconnect in host mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 29 Aug 2012, megha dey wrote:

> I am hitting a dead end at the rpm_resume function as opposed to
> rpm_suspend in the commit ID specified.Below is a diff of the
> file,wherein I have moved the wake_up_all() location,just above the
> failure case (schedule()) and this solves the issue.I would like to
> know if this is the right place to apply this change.
> Also,can this cause some other issues to crop up?

Wait a minute...  You said that you are using 3.0.31, not 3.0.  The bug
I described _is_ present in 3.0.31, and the commit I mentioned should
fix it.

Even if you can't apply the patch directly, you can make an equivalent
change by hand.  In rpm_suspend(), move the

	wake_up_all(&dev->power.wait_queue);

line from where it is to just after

	retval = rpm_callback(callback, dev);

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux