<?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 FLEXCAN timeout on multiple ifup/ifdown in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1868145#M223893</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a custom design based on i.MX6SX I'm facing a timeout when I try to ifup the interface after an ifdown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;~# ip link set can0 up type can bitrate 500000
~# ip link set can0 down
~# ip link set can0 up type can bitrate 500000
[ 1456.393368] A link change request failed with some changes committed already. Interface can0 may have been left with an inconsistent configuration, please check.
RTNETLINK answers: Connection timed out&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;As you can see the device is not used after ifup.&lt;/P&gt;&lt;P&gt;Digging into the flexcan driver I found that&amp;nbsp;on ifdown the flexcan_low_power_enter_ack() exits with&amp;nbsp;-ETIMEDOUT because the LPM_ACK bit in FLEXCANx_MCR is never set.&lt;/P&gt;&lt;P&gt;I tried to enlarge the timeout from 250us to 1000us but it does not have any affect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone out there ever experienced something like this? Someone of you may try to reproduce the issue on another design or evaluation board with any i.MX.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. the version of BSP I'm using is the lastest one:&amp;nbsp;&lt;STRONG&gt;Linux 6.6.3_1.0.0&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 15:09:20 GMT</pubDate>
    <dc:creator>smanni</dc:creator>
    <dc:date>2024-05-17T15:09:20Z</dc:date>
    <item>
      <title>FLEXCAN timeout on multiple ifup/ifdown</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1868145#M223893</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a custom design based on i.MX6SX I'm facing a timeout when I try to ifup the interface after an ifdown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;~# ip link set can0 up type can bitrate 500000
~# ip link set can0 down
~# ip link set can0 up type can bitrate 500000
[ 1456.393368] A link change request failed with some changes committed already. Interface can0 may have been left with an inconsistent configuration, please check.
RTNETLINK answers: Connection timed out&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;As you can see the device is not used after ifup.&lt;/P&gt;&lt;P&gt;Digging into the flexcan driver I found that&amp;nbsp;on ifdown the flexcan_low_power_enter_ack() exits with&amp;nbsp;-ETIMEDOUT because the LPM_ACK bit in FLEXCANx_MCR is never set.&lt;/P&gt;&lt;P&gt;I tried to enlarge the timeout from 250us to 1000us but it does not have any affect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone out there ever experienced something like this? Someone of you may try to reproduce the issue on another design or evaluation board with any i.MX.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. the version of BSP I'm using is the lastest one:&amp;nbsp;&lt;STRONG&gt;Linux 6.6.3_1.0.0&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 15:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1868145#M223893</guid>
      <dc:creator>smanni</dc:creator>
      <dc:date>2024-05-17T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN timeout on multiple ifup/ifdown</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1870175#M224032</link>
      <description>&lt;P&gt;Please try this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lore.kernel.org/all/20190131065619.7298-1-qiangqing.zhang@nxp.com/T/" target="_blank"&gt;https://lore.kernel.org/all/20190131065619.7298-1-qiangqing.zhang@nxp.com/T/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 03:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1870175#M224032</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-05-22T03:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN timeout on multiple ifup/ifdown</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1871749#M224090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the patch you suggested is not wothless because I already have this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#define FLEXCAN_TIMEOUT_US      (250)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any other idea?&amp;nbsp; Could you please try multiple ifup/ifdown on one of yours evaluation board?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 07:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1871749#M224090</guid>
      <dc:creator>smanni</dc:creator>
      <dc:date>2024-05-23T07:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN timeout on multiple ifup/ifdown</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1908935#M226194</link>
      <description>&lt;P&gt;Anyone can help?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1908935#M226194</guid>
      <dc:creator>smanni</dc:creator>
      <dc:date>2024-07-15T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN timeout on multiple ifup/ifdown</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1957477#M228636</link>
      <description>&lt;P&gt;any update?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 08:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-timeout-on-multiple-ifup-ifdown/m-p/1957477#M228636</guid>
      <dc:creator>smanni</dc:creator>
      <dc:date>2024-09-19T08:48:30Z</dc:date>
    </item>
  </channel>
</rss>

