<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div><span>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 should be written in board.c file or in the spidev driver.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Regards,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Amit.</span></div><div
class="yahoo_quoted" style="display: block;"> <br> <br> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, 27 January 2014 2:54 PM, Richard Weinberger <richard@nod.at> wrote:<br> </font> </div> <div class="y_msg_container">Am 27.01.2014 10:21, schrieb Amit Mahadik:<br clear="none">> Thanks for your input. But I dont want to block the read call. Also I dont want to miss the interrupts.<br clear="none"><br clear="none">Look how other drivers/programs deal with that...<br clear="none"><br clear="none">Thanks,<br clear="none">//richard<br clear="none"><br clear="none">> Regards,<br clear="none">> Amit.<br clear="none">> <br clear="none">> <br clear="none">> On Monday, 27 January 2014 12:22 PM, Richard Weinberger <<a shape="rect"
ymailto="mailto:richard@nod.at" href="mailto:richard@nod.at">richard@nod.at</a>> wrote:<br clear="none">> Am 27.01.2014 06:37, schrieb Amit Mahadik:<br clear="none">>> Thanks for the reply Richard.<br clear="none">>> The interrupt is not a GPIO pin. I have read something about UIO (userspace I/O).<br clear="none">>> Also, I want the operation to be asynchronous. Any pointer to such mechanism will be very helpful.<br clear="none">> <br clear="none">> Using UIO you can also catch an interrupt in userspace.<br clear="none">> You can have a read() which blocks till data is available.<br clear="none">> <br clear="none">> <br clear="none">> Thanks,<br clear="none">> //richard<br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> Kernelnewbies mailing list<br clear="none">> <a shape="rect"
ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a> <mailto:<a shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>><br clear="none">> <a shape="rect" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><div class="yqt4970199619" id="yqtfd94157"><br clear="none">> <br clear="none">> <br clear="none"><br clear="none">_______________________________________________<br clear="none">Kernelnewbies mailing list<br clear="none"><a shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none"><a shape="rect" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies"
target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none"></div><br><br></div> </div> </div> </div> </div></body></html>