On 30.08.19 09:23, Lorenzo Bianconi wrote: >> On 29.08.19 10:37, Lorenzo Bianconi wrote: >>>> On 27.08.19 22:08, Jonathan Cameron wrote: >>>>> On Tue, 27 Aug 2019 10:26:35 +0200 >>>>> Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote: >>>>> >>>>>> Get rid of invalid sensitivity value for LSM9DS1 gyro sensor >>>>>> >>>>>> Fixes: 687a60feb9c6 ("iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1") >>>>>> Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> >>>>> The zero degree scale is certainly odd otherwise, so good to tidy >>>>> this up. >>>>> >>>>> Applied to the togreg branch of iio.git. >>>>> > > [...] > >>> struct st_lsm6dsx_fs_table_entry in st_lsm6dsx_settings will always have 4 >>> elements for fs_avl array and since the array is defined as static the >>> uninitialized elements are set to 0. >>> >>> Could you please share the ops you are getting? >>> >> >> How this oops during startup can look like is appended below. I know >> that exactly this change causes it. Can you test this too please? > > I did it but I have no issues > >> >> Given the cleanup nature of this patch, I think it's best to revert it >> in case of any doubt. >> >> thanks, >> >> martin >> > > is it the full ops? It seems some parts are missing. > Are you running some userspace aps reading in_anglvel_scale_available or reading/writing in in_anglvel_scale? > Could you please double check if the following patch helps? (just compiled) > it does not, and you're right, the problem should be somewhere else. I've yet to debug it further. thanks, martin