Skip to contentSkip to conversation

ehci-omap: simple suspend implementation

RFC Andreas Kemnade 1 participant 1 message Feb 20, 2018 USB

lore
Share & tools
lore
#0 lore raw

On Mon, 19 Feb 2018 11:41:36 +0200
Roger Quadros <[email protected]> wrote:

[...]

Quoted 9 lines

If the Hardware SAR (Save and restore) functionality is enabled then everything will be restored by hardware after a sleep to wake transition.

But you will need this patch to enable SAR for the USB power domain.
https://lkml.org/lkml/2013/7/10/356

Missing this might be the reason why things break for you after a system suspend/resume.

ehci_resume() has a force reset flag which should be enough to bring the system to a known state. But I tried SAR. It did not help.

rmmod ehci_omap
modprobe ehci_omap
is enough to make the device disappear (with and without the patch). rebooting is enough to make the device
appear again. That did once work, so I'll first check when did that broke.

Regards,
Andreas