Re: [RFC] iio: Release irq if set_trigger_state fails

2016-05-03 Thread Crestez Dan Leonard
On 05/01/2016 10:11 PM, Jonathan Cameron wrote: > On 28/04/16 17:40, Crestez Dan Leonard wrote: >> When attaching a pollfunc iio_trigger_attach_poll_func will allocate a >> virtual irq and call the driver's set_trigger_state function. Fix error >> handling to release the irq if set_trigger_state fa

Re: [RFC] iio: Release irq if set_trigger_state fails

2016-05-01 Thread Jonathan Cameron
On 28/04/16 17:40, Crestez Dan Leonard wrote: > When attaching a pollfunc iio_trigger_attach_poll_func will allocate a > virtual irq and call the driver's set_trigger_state function. Fix error > handling to release the irq if set_trigger_state fails. > > Otherwise when using triggered buffers and

[RFC] iio: Release irq if set_trigger_state fails

2016-04-28 Thread Crestez Dan Leonard
When attaching a pollfunc iio_trigger_attach_poll_func will allocate a virtual irq and call the driver's set_trigger_state function. Fix error handling to release the irq if set_trigger_state fails. Otherwise when using triggered buffers and the driver's set_trigger_state fails once then the buffe