<?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: Custom kernel driver interrupt not being called in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701742#M109002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple mistake. I was enabling the interrupts (writing ECSPI_INTREG) before enabling the module itself (ECSPI_CONREG:EN=1). Docs do say that "This bit must be set before writing to other registers or initiating an exchange.". RTFM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 08:36:41 GMT</pubDate>
    <dc:creator>chris_f</dc:creator>
    <dc:date>2017-09-13T08:36:41Z</dc:date>
    <item>
      <title>Custom kernel driver interrupt not being called</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701739#M108999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a custom driver for the ecspi module on an imx6ull. Everything works except my interrupt handler never gets called and I'm struggling to find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've taken what look like the right parts from spi-imx.c so the irq handler is installed with:&lt;/P&gt;&lt;PRE&gt; irq = platform_get_irq(pdev, 0);
 ret = devm_request_irq(&amp;amp;pdev-&amp;gt;dev, irq, spi_slave_isr, 0,
&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_name(&amp;amp;pdev-&amp;gt;dev), spi_data);&lt;/PRE&gt;&lt;P&gt;/proc/interrupts shows that the interrupt is installed on the right irq number (confirmed by comparison to the spi-imx driver).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enabled all of the interrupts in&amp;nbsp;ECSPI0_INTREG. When I write to ECSPI0_TXDATA and set ECSPI0_CONREG_XCH. The SPI module outputs the data correctly (confirmed on the selected pins) so I would expect a TXFIFO empty interrupt but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something obvious that I'm missing? Any tips gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I see that the serial driver calls enable_irq but that's only done during resume&amp;nbsp;to reverse the disable_irq in suspend. Doesn't look like the problem.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 18:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701739#M108999</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2017-09-12T18:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom kernel driver interrupt not being called</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701740#M109000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chris_f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this can be debugged using existing spi-nor driver described in&lt;/P&gt;&lt;P&gt;Chapter 31 SPI NOR attached Linux Manual and AN4553 Using Open Source&lt;/P&gt;&lt;P&gt;Debugging Tools for Linux on i.MX Processors&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fassets%2Fdocuments%2Fdata%2Fen%2Fapplication-notes%2FAN4553.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&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, 12 Sep 2017 23:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701740#M109000</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-12T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom kernel driver interrupt not being called</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701741#M109001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion. I'll take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 08:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701741#M109001</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2017-09-13T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom kernel driver interrupt not being called</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701742#M109002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple mistake. I was enabling the interrupts (writing ECSPI_INTREG) before enabling the module itself (ECSPI_CONREG:EN=1). Docs do say that "This bit must be set before writing to other registers or initiating an exchange.". RTFM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 08:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-kernel-driver-interrupt-not-being-called/m-p/701742#M109002</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2017-09-13T08:36:41Z</dc:date>
    </item>
  </channel>
</rss>

