[PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Daniel Campello
Fixes enable/disable irq handling at various points. The driver needs to only enable/disable irqs if there is an actual irq handler installed. Signed-off-by: Daniel Campello --- drivers/iio/proximity/sx9310.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff

Re: [PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Andy Shevchenko
On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello wrote: > > Fixes enable/disable irq handling at various points. The driver needs to > only enable/disable irqs if there is an actual irq handler installed. > - enable_irq(data->client->irq); > + if (!ret) > + enable_irq(dat

Re: [PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 12:08 PM Andy Shevchenko wrote: > > On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello wrote: > > > > Fixes enable/disable irq handling at various points. The driver needs to > > only enable/disable irqs if there is an actual irq handler installed. > > > - enable_irq(da

Re: [PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 13:07:00) > On Tue, Jul 28, 2020 at 12:08 PM Andy Shevchenko > wrote: > > > > On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello > > wrote: > > > > > > Fixes enable/disable irq handling at various points. The driver needs to > > > only enable/disable irqs if ther