<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Resume the Linux System using Keypad in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750962#M116879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I made the changes in sgtl5000.c&amp;nbsp; file according to the latest BSP. Now the issue is solved and the keypad wakeup source is working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2018 07:32:42 GMT</pubDate>
    <dc:creator>anjalikkrishna</dc:creator>
    <dc:date>2018-01-12T07:32:42Z</dc:date>
    <item>
      <title>Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750956#M116873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;I am doing power management in Linux 3.14.38 . I need to configure the touch and keypad as wakesource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After suspending the system using echo mem &amp;gt; /sys/power state command&amp;nbsp; the keypad suspend routine is getting called from imx-keypad.c file and for resume I am pressing a key and the resume function is called and gets hang. System does not look like resumed and the LCD backlight also in off state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prints are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo mem &amp;gt; /sys/power/state &lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;imx_kbd_suspend ------&amp;gt;&lt;BR /&gt;PM: suspend of devices complete after 70.704 msecs&lt;BR /&gt;PM: suspend devices took 0.080 seconds&lt;BR /&gt;PM: late suspend of devices complete after 0.535 msecs&lt;BR /&gt;PM: noirq suspend of devices complete after 0.634 msecs&lt;BR /&gt;Disabling non-boot CPUs ...&lt;BR /&gt;PM: noirq resume of devices complete after 0.290 msecs&lt;BR /&gt;PM: early resume of devices complete after 0.413 msecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;imx_kbd_resume -----&amp;gt;&lt;BR /&gt;&amp;nbsp;114 irq kpp&lt;BR /&gt;&amp;nbsp;imx_kbd_resume end -----&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dtsi file I tried adding wakeup-source property but it didnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp; kpp: kpp@020b8000 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl,imx6sl-kpp", "fsl,imx21-kpp";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x020b8000 0x4000&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupts = &amp;lt;0 82 0x04&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clocks = &amp;lt;&amp;amp;clks 0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wakeup-source;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 10:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750956#M116873</guid>
      <dc:creator>anjalikkrishna</dc:creator>
      <dc:date>2017-11-30T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750957#M116874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjalik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you try with property property "linux,wakeup" as&lt;/P&gt;&lt;P&gt;in linux/arch/arm/boot/dts/imx7d-sdb-touch.dts&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx7d-sdb-touch.dts%3Fh%3Dimx_3.14.38_6ul_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx7d-sdb-touch.dts?h=imx_3.14.38_6ul_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 22:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750957#M116874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-11-30T22:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750958#M116875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I tried it. But it didnt work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 05:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750958#M116875</guid>
      <dc:creator>anjalikkrishna</dc:creator>
      <dc:date>2017-12-01T05:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750959#M116876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjalik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what bsp used in the case, could you try with nxp official releases described on&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Fsoftware-development-tools%2Fi.mx-software-and-tools%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 07:07:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750959#M116876</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-12-01T07:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750960#M116877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I could find out that a device driver is causing the hang issue using the pm_test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After a long trial of disabling various drivers I was finally able to get into the root cause, the SGTL5000 driver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disabling the driver is not a solution for me, since my i.MX6 board should be supporting Audio peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So further debugging on the suspend / resume routines were inevitable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suspend routine seems to be fine as but I get the hang issue , when I enable the highlighted part of the resume function under soc-core.c file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ac97_control |= cpu_dai-&amp;gt;driver-&amp;gt;ac97_control;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ac97_control) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_dbg(dev, "ASoC: Resuming AC97 immediately\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soc_resume_deferred(&amp;amp;card-&amp;gt;deferred_resume_work);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk ("\n resume called end if ");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_dbg(dev, "ASoC: Scheduling resume work\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; if (!schedule_work(&amp;amp;card-&amp;gt;deferred_resume_work))&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_err(dev, "ASoC: resume work item may be lost\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;The function returns true by the way. But still what might be causing the problem. How can I debug more on this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 15:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750960#M116877</guid>
      <dc:creator>anjalikkrishna</dc:creator>
      <dc:date>2017-12-04T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750961#M116878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sgtl5000 is well supported on BD bsps, one can look at its releases&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/boundarydevices/linux-imx6" title="https://github.com/boundarydevices/linux-imx6"&gt;GitHub - boundarydevices/linux-imx6: Boundary Devices Kernel tree for i.MX6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 05:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750961#M116878</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-12-05T05:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the Linux System using Keypad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750962#M116879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I made the changes in sgtl5000.c&amp;nbsp; file according to the latest BSP. Now the issue is solved and the keypad wakeup source is working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 07:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Resume-the-Linux-System-using-Keypad/m-p/750962#M116879</guid>
      <dc:creator>anjalikkrishna</dc:creator>
      <dc:date>2018-01-12T07:32:42Z</dc:date>
    </item>
  </channel>
</rss>

