Re: [PATCH 1/2] tpm_tis: Disable interrupt auto probing on a per-device basis

2015-12-01 Thread Jason Gunthorpe
On Tue, Dec 01, 2015 at 08:17:43AM +0100, Uwe Kleine-König wrote: > Hello Jason, > > On Mon, Nov 30, 2015 at 12:27:11PM -0700, Jason Gunthorpe wrote: > > Instead of clearing the global interrupts flag when any device > > does not have an interrupt just pass -1 through tpm_info.irq. > > Is there a

Re: [PATCH 1/2] tpm_tis: Disable interrupt auto probing on a per-device basis

2015-11-30 Thread Uwe Kleine-König
Hello Jason, On Mon, Nov 30, 2015 at 12:27:11PM -0700, Jason Gunthorpe wrote: > Instead of clearing the global interrupts flag when any device > does not have an interrupt just pass -1 through tpm_info.irq. Is there a reason not to use 0 for the invalid irq? > The only thing that asks for autopr

[PATCH 1/2] tpm_tis: Disable interrupt auto probing on a per-device basis

2015-11-30 Thread Jason Gunthorpe
Instead of clearing the global interrupts flag when any device does not have an interrupt just pass -1 through tpm_info.irq. The only thing that asks for autoprobing is the force=1 path. Signed-off-by: Jason Gunthorpe --- drivers/char/tpm/tpm_tis.c | 16 +++- 1 file changed, 7 inser