<div dir="ltr"><div><div>You can implement irq handler in spi driver itself. SPI specific platform data can pass it from board file.<br></div>Regards<br></div>Vishwa <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 28, 2014 at 9:24 PM, Richard Weinberger <span dir="ltr">&lt;<a href="mailto:richard@nod.at" target="_blank">richard@nod.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am <a href="tel:28.01.2014" value="+85228012014">28.01.2014</a> 15:12, schrieb Amit Mahadik:<br>
<div class="im">&gt; Thanks Richard. One more question. If I register an SPI irq  struct spi_board_info spi_board_info[] structure in machine board.c file; then the request irq api and irq handler<br>
&gt; should be written in board.c file or in the spidev driver.<br>
<br>
</div>Never do any programming in the board file.<br>
The purpose if the board file it describing the hardware.<br>
Please note, board files go away, device tree is the way to go.<br>
<div class="im"><br>
Thanks,<br>
//richard<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
</div><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div>