Re: Wakeup from USB on i.MX6S

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

 



Hi and sorry for the long time to the new answere.

I think meanwhile I've lost the trust in that I'm able to get this wakeup on usb plugin running properly by myself.
And, of course, there was a lot of work besides that wakeup problem.
Meanwhile our board supplier classified our wish as a special custom feature and won't "implement"/"fix" it for free. :)


> Would you measure the DP/DM signal between HUB and i.mx6 after echo mem
> to /sys/power/state? Besides, does the HUB will be re-enumerated after
> mem-sleep? Would you show me some kernel log during suspend/resume
> for mem-sleep?

I'm afraid I don't have the right equipment to measure a signal on a connector with 320 pins spread over 8 cm
while the correct signal seems to be on the underside of 2 boards laying parallel on each other. :)

But of course I can show you the logs. I hope, with "kernel log" you meant "var/logs/messages". The other files in /var/logs are not being changed during the sleep/wakeup process process.

1st The logs of mem-sleep + resume when only the wakeup button and serial input is enabled as wakeup source. I woke it up using serial input.
Mar 26 13:18:23 emtrion-mx6 user.info kernel: [ 1131.540666] PM: Syncing filesystems ... done.
Mar 26 13:18:23 emtrion-mx6 user.debug kernel: [ 1131.713587] PM: Preparing system for sleep (mem)
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.731182] Freezing user space processes ... (elapsed 0.007 seconds) done.
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.741783] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
Mar 26 13:18:35 emtrion-mx6 user.debug kernel: [ 1131.752465] PM: Suspending system (mem)
Mar 26 13:18:35 emtrion-mx6 user.warn kernel: [ 1131.752481] windows pfad zu datei kopierenfsdggsfdgsgsdfsdgsfsdsfdSuspending console(s) (use no_console_suspend to debug)
<the system sleeps now and receives my serial input>
Mar 26 13:18:35 emtrion-mx6 user.err kernel: [ 1131.891004] fec 2188000.ethernet eth0: Graceful transmit stop did not complete!
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.893766] PM: suspend of devices complete after 120.759 msecs
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.893786] PM: suspend devices took 0.140 seconds
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.916027] PM: late suspend of devices complete after 22.201 msecs
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.937767] PM: noirq suspend of devices complete after 21.697 msecs
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1131.937786] Disabling non-boot CPUs ...
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.252197] PM: noirq resume of devices complete after 314.183 msecs
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.270129] PM: early resume of devices complete after 16.491 msecs
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.334240] Suspended for 10.646 seconds
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.403717] PM: resume of devices complete after 133.549 msecs
Mar 26 13:18:35 emtrion-mx6 user.err kernel: [ 1132.419340] fsl-asoc-card sound: ASoC: CODEC DAI sgtl5000 not registered
Mar 26 13:18:35 emtrion-mx6 user.err kernel: [ 1132.419361] fsl-asoc-card sound: snd_soc_register_card failed (-517)
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.419467] PM: resume devices took 0.140 seconds
Mar 26 13:18:35 emtrion-mx6 user.debug kernel: [ 1132.494804] PM: Finishing wakeup.
Mar 26 13:18:35 emtrion-mx6 user.info kernel: [ 1132.494811] Restarting tasks ... done.
Mar 26 13:18:44 emtrion-mx6 user.info kernel: [ 1141.658428] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

2nd the logs with all wakeup sources enabled which results in abnormal wakeup:
Mar 26 13:22:48 emtrion-mx6 user.info kernel: [ 1385.770596] PM: Syncing filesystems ... done.<\r><\n>
Mar 26 13:22:48 emtrion-mx6 user.debug kernel: [ 1385.943617] PM: Preparing system for sleep (mem)<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1385.961206] Freezing user space processes ... (elapsed 0.007 seconds) done.<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1385.972191] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.debug kernel: [ 1385.983700] PM: Suspending system (mem)<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.warn kernel: [ 1385.983716] Suspending console(s) (use no_console_suspend to debug)<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.err kernel: [ 1386.081787] fec 2188000.ethernet eth0: Graceful transmit stop did not complete!<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.083278] PM: suspend of devices complete after 84.635 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.083287] PM: suspend devices took 0.090 seconds<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.094787] PM: late suspend of devices complete after 11.477 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.106324] PM: noirq suspend of devices complete after 11.512 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.106335] Disabling non-boot CPUs ...<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.114986] PM: noirq resume of devices complete after 8.531 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.124875] PM: early resume of devices complete after 9.145 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.180062] Suspended for 0.153 seconds<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.261114] PM: resume of devices complete after 136.215 msecs<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.err kernel: [ 1386.269803] fsl-asoc-card sound: ASoC: CODEC DAI sgtl5000 not registered<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.err kernel: [ 1386.269824] fsl-asoc-card sound: snd_soc_register_card failed (-517)<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.269951] PM: resume devices took 0.140 seconds<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.debug kernel: [ 1386.344843] PM: Finishing wakeup.<\r><\n>
Mar 26 13:22:49 emtrion-mx6 user.info kernel: [ 1386.344852] Restarting tasks ... done.<\r><\n>
Mar 26 13:22:58 emtrion-mx6 user.info kernel: [ 1396.062142] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx


After the things we found out about the problem, I think this feature is either missing/erronous in the bsp/driver or the used usb-hub simply doesn't support it.
Do you still think it is possible for me/us to get it running?

Best regards and have a nice Easter Weekend (in case of you celebrate it),
Ralf
--
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