Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-04 Thread Jonathan Cameron
On Mon, 3 Jul 2017 23:19:45 +0200 Maxime Ripard wrote: > On Mon, Jul 03, 2017 at 03:09:26PM +0200, Quentin Schulz wrote: > > When initializing interrupts, the devm_request_any_context_irq will > > enable them right away. An atomic flag was set in sun4i_irq_init

Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-04 Thread Jonathan Cameron
On Mon, 3 Jul 2017 23:19:45 +0200 Maxime Ripard wrote: > On Mon, Jul 03, 2017 at 03:09:26PM +0200, Quentin Schulz wrote: > > When initializing interrupts, the devm_request_any_context_irq will > > enable them right away. An atomic flag was set in sun4i_irq_init and read > > in the interrupt

Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-03 Thread Maxime Ripard
On Mon, Jul 03, 2017 at 03:09:26PM +0200, Quentin Schulz wrote: > When initializing interrupts, the devm_request_any_context_irq will > enable them right away. An atomic flag was set in sun4i_irq_init and read > in the interrupt handler to make sure no unwanted interrupts were > handled. If an

Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-03 Thread Maxime Ripard
On Mon, Jul 03, 2017 at 03:09:26PM +0200, Quentin Schulz wrote: > When initializing interrupts, the devm_request_any_context_irq will > enable them right away. An atomic flag was set in sun4i_irq_init and read > in the interrupt handler to make sure no unwanted interrupts were > handled. If an

[PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-03 Thread Quentin Schulz
When initializing interrupts, the devm_request_any_context_irq will enable them right away. An atomic flag was set in sun4i_irq_init and read in the interrupt handler to make sure no unwanted interrupts were handled. If an unwanted interrupt occurred, the handler would disable the irq and return

[PATCH] iio: adc: sun4i-gpadc-iio: fix unbalanced irq enable/disable

2017-07-03 Thread Quentin Schulz
When initializing interrupts, the devm_request_any_context_irq will enable them right away. An atomic flag was set in sun4i_irq_init and read in the interrupt handler to make sure no unwanted interrupts were handled. If an unwanted interrupt occurred, the handler would disable the irq and return