Re: [PATCH] tpm_tis_spi: Pass the SPI IRQ down to the driver

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

 



On Fri, Jun 8, 2018 at 5:50 PM, Jason Gunthorpe <jgg@xxxxxxxx> wrote:
> On Fri, Jun 08, 2018 at 09:02:09AM +0200, Linus Walleij wrote:
>> An SPI TPM device managed directly on an embedded board using
>> the SPI bus and some GPIO or similar line as IRQ handler will
>> pass the IRQn from the TPM device associated with the SPI
>> device. This is already handled by the SPI core, so make sure
>> to pass this down to the core as well.
>>
>> (The TPM core habit of using -1 to signal no IRQ is dubious
>> (as IRQ 0 is NO_IRQ) but I do not want to mess with that
>> semantic in this patch.)
>
> Unless something has changed, there is no cross-arch constant called
> NO_IRQ, and the few arches that do define it, tend to use -1..

AFAIU the idea is that for archs that don't define it, it is implicitly
0.

I just refer to this, albeit it's been 7 years:
https://lwn.net/Articles/470820/

Yours,
Linus Walleij



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux