<?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>i.MX ProcessorsのトピックRe: Wake up on CAN does not work after suspend</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616678#M93352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I do not have access to a Sabre reference board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 08:52:45 GMT</pubDate>
    <dc:creator>sanchayanmaity</dc:creator>
    <dc:date>2017-04-21T08:52:45Z</dc:date>
    <item>
      <title>Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616674#M93348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a Toradex Apalis iMX6Q module with 4.1.39 kernel based on NXP's downstream kernel release. After a suspend operation, the module does not wake up from suspend on a CAN frame reception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver does seem to implement the self wakeup mechanism to wake from suspend on CAN frame receive however it does not seem to work at the moment. &amp;nbsp;As per the TRM, the flexcan peripheral has a stop-mode which supports a waking up the processor if the following configuration is done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;“In the Self Wake mechanism, if the SLF_WAK bit in MCR Register was set at the time FlexCAN entered Stop Mode, then upon detection of a recessive to dominant transition on the CAN bus, FlexCAN sets the WAK_INT bit in the ESR Register and, if enabled by the WAK_MSK bit in MCR, generates a Wake Up interrupt to the ARM. Upon receiving the interrupt, the ARM should resume the clocks and remove the Stop Mode request manually”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the flexcan driver it seems that both SLF_WAK bit as well as WAK_INT bits are set during initialization in probe(). &amp;nbsp;So from the code the device should wake up on interrupt. Also as per the&amp;nbsp;TRM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;“To enter stop mode, the CPU should manually assert a global Stop Mode request (see the CAN1_STOP_REQ and CAN2_STOP_REQ bit in the register&amp;nbsp;IOMUXC_GPR4)and check the acknowledgement asserted by the FlexCAN (see the CAN1_STOP_ACK and CAN2_STOP_ACK in the register IOMUXC_GPR4) . The CPU must only consider the FlexCAN in Stop Mode when both request and acknowledgement conditions are satisfied”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it does not seem to check the ACK at all in flexcan_enter_stop_mode so the implementation seems incorrect or incomplete. Is there a known fix available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanchayan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616674#M93348</guid>
      <dc:creator>sanchayanmaity</dc:creator>
      <dc:date>2017-04-18T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616675#M93349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanchayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check with nxp official bsps described on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="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" title="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"&gt;i.MX 6 / i.MX 7 Series Software and Development Tool|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and imx-test package, folder /test/can&lt;/P&gt;&lt;P&gt;imx-test&lt;BR /&gt;&lt;A href="https://community.nxp.com/www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz" target="test_blank"&gt;www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note 4.1.39 kernel and third party boards bsps are not supported by nxp&lt;/P&gt;&lt;P&gt;and should be supported by vendors of these products. Also this may be&lt;/P&gt;&lt;P&gt;posted to meta-fsl-arm mailing list&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale" rel="nofollow" target="_blank"&gt;https://lists.yoctoproject.org/listinfo/meta-freescale&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>Tue, 18 Apr 2017 23:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616675#M93349</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-18T23:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616676#M93350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 4.1.39 because we merged the upstream stable release into NXP's downstream 4.1.15. It still implies a bug in the NXP downstream flexcan kernel driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our customer also reports that the same worked with older 3.14.28 kernel release so there is also a regression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 05:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616676#M93350</guid>
      <dc:creator>sanchayanmaity</dc:creator>
      <dc:date>2017-04-19T05:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616677#M93351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanchayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try to reproduce it on&amp;nbsp;nxp i.MX6Q&amp;nbsp; sabre ai reference board&lt;/P&gt;&lt;P&gt;with demo images on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/webapp/Download?colCode=IMX6_N7.1.1_1.0.0_ANDROID_DEMO_AI_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="http://www.nxp.com/webapp/Download?colCode=IMX6_N7.1.1_1.0.0_ANDROID_DEMO_AI_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;http://www.nxp.com/webapp/Download?colCode=IMX6_N7.1.1_1.0.0_ANDROID_DEMO_AI_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_no…&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>Wed, 19 Apr 2017 06:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616677#M93351</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-19T06:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616678#M93352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I do not have access to a Sabre reference board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616678#M93352</guid>
      <dc:creator>sanchayanmaity</dc:creator>
      <dc:date>2017-04-21T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616679#M93353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanchayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggest to borrow on local office.&lt;/P&gt;&lt;P&gt;If you think this is nxp bsp/chip issue, this should be&lt;/P&gt;&lt;P&gt;reproduced on&amp;nbsp;nxp i.MX6Q&amp;nbsp; sabre ai reference board with demo images.&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, 21 Apr 2017 09:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616679#M93353</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-21T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up on CAN does not work after suspend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616680#M93354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="http://git.toradex.com/cgit/linux-toradex.git/commit/?h=toradex_4.1-2.0.x-imx-next&amp;amp;id=8271e62089dc928c2517414e560f5f9428059768"&gt;patch&lt;/A&gt;&amp;nbsp;fixes the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current downstream NXP 4.1 kernel is broken with regards to suspend resume on CAN frame reception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanchayan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-on-CAN-does-not-work-after-suspend/m-p/616680#M93354</guid>
      <dc:creator>sanchayanmaity</dc:creator>
      <dc:date>2017-04-26T09:52:06Z</dc:date>
    </item>
  </channel>
</rss>

