Thread (12 messages) 12 messages, 6 authors, 2014-02-19

Handling interrupts in spidev

From: Amit Mahadik <hidden>
Date: 2014-01-27 05:37:08

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.

Regards,
Amit.




On Sunday, 26 January 2014 8:53 PM, Richard Weinberger [off-list ref] wrote:
 
On Sun, Jan 26, 2014 at 1:25 PM, Amit Mahadik [off-list ref] wrote:
Hello,
? ? ? ? ?  I am using a custom ARM board. I have a SPI slave device and using
the spidev_test utility I am able to do ioctls on the slave device.
However, I have a problem. The SPI slave device has an interrupt pin and I
want to process the interrupt and send some data into the userspace when I
receive the interrupt. Can anybody please suggest me a way to do this using
spidev driver?
Is the interrupt pin a gpio?
If so, you can access it from userspace and identify interrupts using poll().

-- 
Thanks,
//richard

_______________________________________________
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/20140126/3cc8cf8e/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help