Re: [PATCH v2 2/5] usb: musb: call musb_port_suspend from musb_bus_suspend

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

 



On 02.10.2013 14:01, Sebastian Andrzej Siewior wrote:
> On 10/02/2013 01:14 PM, Daniel Mack wrote:
>> On 02.10.2013 12:49, Sebastian Andrzej Siewior wrote:

>>> What happens if the device is unplugged while the host is suspended and
>>> not there on resume?
>>
>> That condition is detected and a full teardown of the connected drivers
>> is conducted. Try what happens on your notebook when you do that.
>> Embedded systems should behave just the same.
> 
> I had the feeling that the USB device gets disconnected and
> re-enumerated on resume.

Yes. The device looses its +5V power supply, so it has to be reset and
re-enumerated on resume of course. It's just that USB drivers know about
the state the device has to be put back into after resume, and don't
assume the device was disconnected and reconnected. The latter would
(for usb-storage) also cause paritions to be removed and added.

> But if you say that the ehci-hcd saves the
> state and keeps the device connected if it wasn't disconnected during
> suspend then there is no reason for musb to behave differently.

Which it doesn't with my patches applied. I can mount a USB volume, put
the system into suspend and access the contents after resume. Just the
way it should be :)


Daniel

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




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux