Re: Handling interrupts in spidev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
             I am using versatile express board and have tried to allocate four interrupts (36 to 39) using IRQF_SHARED and IRQF_TRIGGER_HIGH flags in spidev.c file. However only INT 38 and 39 gets registered. For 36 and 37 I am getting errno 16 (Resource busy). In versatile express motherboard.h file INT 36 is RTC and 37 is UART0.Please help

Regards,
Amit.


On Saturday, 15 February 2014 12:21 AM, Anand Moon <moon.linux@xxxxxxxxx> wrote:
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@xxxxxxxxx> wrote:
you can use Asynchronous notification  , FASYNC .
 
 
Regards,
Nilesh


On Tue, Jan 28, 2014 at 9:47 PM, Vishwanath Govind <vishwanath.govind@xxxxxxxxx> 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@xxxxxx> 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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux