Handling interrupts in spidev
Amit Mahadik
amitmahadik35 at yahoo.com
Tue Jan 28 09:12:09 EST 2014
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.
Regards,
Amit.
On Monday, 27 January 2014 2:54 PM, Richard Weinberger <richard at nod.at> wrote:
Am 27.01.2014 10:21, schrieb Amit Mahadik:
> Thanks for your input. But I dont want to block the read call. Also I dont want to miss the interrupts.
Look how other drivers/programs deal with that...
Thanks,
//richard
> Regards,
> Amit.
>
>
> On Monday, 27 January 2014 12:22 PM, Richard Weinberger <richard at nod.at> wrote:
> Am 27.01.2014 06:37, schrieb Amit Mahadik:
>> Thanks for the reply Richard.
>> The interrupt is not a GPIO pin. I have read something about UIO (userspace I/O).
>> Also, I want the operation to be asynchronous. Any pointer to such mechanism will be very helpful.
>
> Using UIO you can also catch an interrupt in userspace.
> You can have a read() which blocks till data is available.
>
>
> Thanks,
> //richard
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org <mailto:Kernelnewbies at kernelnewbies.org>
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140128/a86e3f23/attachment.html
More information about the Kernelnewbies
mailing list