Handling interrupts in spidev

Anand Moon moon.linux at yahoo.com
Fri Feb 14 13:49:50 EST 2014


Hi All,

You can use netlink socket to send data from kernel to user space.

-Anand Moon



On Friday, February 14, 2014 11:51 AM, Nilesh Bacchewar <b.nilesh2005 at gmail.com> wrote:
  
you can use Asynchronous notification  , FASYNC .

http://www.makelinux.net/ldd3/chp-6-sect-4

Regards, 
Nilesh



On Tue, Jan 28, 2014 at 9:47 PM, Vishwanath Govind <vishwanath.govind at gmail.com> wrote:

You can implement irq handler in spi driver itself. SPI specific platform data can pass it from board file.
>Regards
>Vishwa 
>
>
>
>
>On Tue, Jan 28, 2014 at 9:24 PM, Richard Weinberger <richard at nod.at> wrote:
>
>Am 28.01.2014 15:12, schrieb Amit Mahadik:
>>
>>> 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.
>>
>>Never do any programming in the board file.
>>The purpose if the board file it describing the hardware.
>>Please note, board files go away, device tree is the way to go.
>>
>>
>>Thanks,
>>//richard
>>
>>_______________________________________________
>>Kernelnewbies mailing list
>>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
>
>


_______________________________________________
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/20140214/8c5a5aae/attachment.html 


More information about the Kernelnewbies mailing list