Hi,
since the evaluation in WP76xx not waking up from SPM on GPIO - #16 by simon.naegele, which is now working smoothly, we are going on and found that hwirq: 47
is waking up the module sometimes:
Feb 6 07:00:42 swi-mdm9x28-wp user.debug kernel: [ 633.211913] PM: Entering mem sleep
Feb 6 07:00:42 swi-mdm9x28-wp user.warn kernel: [ 633.211953] Suspending console(s) (use no_console_suspend to debug)
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.266344] PM: suspend of devices complete after 52.169 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.268815] PM: late suspend of devices complete after 2.422 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271527] PM: noirq suspend of devices complete after 2.665 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271556] msm_mpm_interrupts_detectable(): gpio preventing system sleep modes during suspend
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271569] hwirq: 47
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271618] suspend ns: 633271599094 suspend cycles: 3101531768376
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271599] msm_mpm_interrupts_detectable(): gpio preventing system sleep modes during suspend
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271599] hwirq: 47
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271599] CPU0:msm_cpu_pm_enter_sleep mode:3 during suspend
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.271599] resume cycles: 3102101630546
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.273902] PM: noirq resume of devices complete after 1.770 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.274565] sierra_rtc_wake
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.274574] sierra_rtc_wake: sierra_rtc_wake
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.276535] PM: early resume of devices complete after 1.333 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.300531] PM: resume of devices complete after 23.925 msecs
Feb 6 07:00:42 swi-mdm9x28-wp user.debug kernel: [ 633.302328] PM: Finishing wakeup.
Feb 6 07:00:42 swi-mdm9x28-wp user.warn kernel: [ 633.302354] Restarting tasks ... done.
Feb 6 07:00:42 swi-mdm9x28-wp user.info kernel: [ 633.329669] sierra_pm_resume
Feb 6 07:01:13 swi-mdm9x28-wp user.info kernel: [ 633.340769] PM: suspend exit 2023-02-06 07:00:42.998744035 UTC
Feb 6 07:01:13 swi-mdm9x28-wp user.info kernel: [ 633.340842] PM: suspend entry 2023-02-06 07:00:42.998856848 UTC
We searched for the IRQ in the device tree and code, but we couldn’t find which GPIO this is.
Is it even a GPIO?
Is this the RTC?
Is this expected behaviour?
Any insights would be helpfull.
Thanks,
Simon