Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-29 Thread Jonathan Cameron
On 24/05/16 22:54, Linus Walleij wrote: > On Tue, May 24, 2016 at 2:33 PM, Crestez Dan Leonard > wrote: >> [Me] >>> However I think my patch fixing the thread issue will collide >>> by being close in context to this so it'd be great if you >>> could resend it on top of >>> "iio: st_sensors: switch

Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-24 Thread Linus Walleij
On Tue, May 24, 2016 at 2:33 PM, Crestez Dan Leonard wrote: > [Me] >> However I think my patch fixing the thread issue will collide >> by being close in context to this so it'd be great if you >> could resend it on top of >> "iio: st_sensors: switch to a threaded interrupt"? > > I checked my local

Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-24 Thread Crestez Dan Leonard
On 05/24/2016 02:27 PM, Linus Walleij wrote: > On Fri, May 13, 2016 at 8:43 PM, Crestez Dan Leonard > wrote: > >> This fixes a possible race where an interrupt arrives before complete >> initialization and crashes because iio_trigger_get_drvdata returns NULL. >> >> Cc: Linus Walleij >> Cc: Giuse

Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 8:43 PM, Crestez Dan Leonard wrote: > This fixes a possible race where an interrupt arrives before complete > initialization and crashes because iio_trigger_get_drvdata returns NULL. > > Cc: Linus Walleij > Cc: Giuseppe Barba > Cc: Denis Ciocca > Signed-off-by: Crestez

Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-14 Thread Jonathan Cameron
On 13/05/16 19:43, Crestez Dan Leonard wrote: > This fixes a possible race where an interrupt arrives before complete > initialization and crashes because iio_trigger_get_drvdata returns NULL. > > Cc: Linus Walleij > Cc: Giuseppe Barba > Cc: Denis Ciocca > Signed-off-by: Crestez Dan Leonard Lo

[PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-13 Thread Crestez Dan Leonard
This fixes a possible race where an interrupt arrives before complete initialization and crashes because iio_trigger_get_drvdata returns NULL. Cc: Linus Walleij Cc: Giuseppe Barba Cc: Denis Ciocca Signed-off-by: Crestez Dan Leonard --- I ran into this while breaking the driver. But since the i