From mboxrd@z Thu Jan 1 00:00:00 1970 From: richard@nod.at (Richard Weinberger) Date: Tue, 28 Jan 2014 16:54:12 +0100 Subject: Handling interrupts in spidev In-Reply-To: <1390918329.64761.YahooMailNeo@web125705.mail.ne1.yahoo.com> References: <1390739101.73437.YahooMailNeo@web125705.mail.ne1.yahoo.com> <1390801028.48573.YahooMailNeo@web125705.mail.ne1.yahoo.com> <52E601DC.2040008@nod.at> <1390814505.58456.YahooMailNeo@web125701.mail.ne1.yahoo.com> <52E62585.1040001@nod.at> <1390918329.64761.YahooMailNeo@web125705.mail.ne1.yahoo.com> Message-ID: <52E7D2A4.3020407@nod.at> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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