iio: imu: st_lsm6dsx: read error when resuming from suspend
Hi Lorenzo,
I'm seeing this error sometimes when resuming:st_lsm6dsx_i2c 1-006a: failed to read fifo status (err=-13)
I doesn't matter if it's the ism330 or another wake source. I have not enabled fifo readings.
I have tried the "[PATCH 00/13] various st_lsm6dsx fixes and missing bits" same results.
The regmap_read in st_lsm6dsx_handler_thread for the event seems to be reading something as the event is reported correctly.
Later events are reported correctly...
/Sean
Quoted 2 lines
Hi Lorenzo,
Hi Sean,
Quoted 2 lines
I'm seeing this error sometimes when resuming:
st_lsm6dsx_i2c1-006a: failed to read fifo status (err=-13)
it seems the error is directly reported by regmap/i2c driver you are running, it is not related to the last series I sent.
Quoted 11 lines
I doesn't matter if it's the ism330 or another wake source. I have not enabled fifo readings.
I have tried the "[PATCH 00/13] various
st_lsm6dsxfixes and missing bits" same results.The
regmap_readinst_lsm6dsx_handler_threadfor the event seems to be reading something as the event is reported correctly.Later events are reported correctly...
So IIUC the system just reports a sporadic error sometimes during resume but it is able to recover, right?
Regards,
Lorenzo
Quoted 2 lines
/Sean
Quoted 11 lines · Lorenzo Bianconi
Quoted 2 lines
Hi Lorenzo,
Hi Sean,
Quoted 2 lines
I'm seeing this error sometimes when resuming:
st_lsm6dsx_i2c1-006a: failed to read fifo status (err=-13)it seems the error is directly reported by regmap/i2c driver you are running, it is not related to the last series I sent.
No not related :) The same error with or without the series ;)
Quoted 7 lines
Quoted 7 lines
I doesn't matter if it's the ism330 or another wake source. I have not enabled fifo readings.
I have tried the "[PATCH 00/13] various
st_lsm6dsxfixes and missing bits" same results.
Quoted 8 lines
Quoted 4 lines
The
regmap_readinst_lsm6dsx_handler_threadfor the event seems to be reading something as the event is reported correctly.Later events are reported correctly...
So IIUC the system just reports a sporadic error sometimes during resume but it is able to recover, right?
Yes, it's sporadic and suspend/resume sometimes does this... and we are
able to recover.
I just find it weird that regmap_read goes well and the next call to regmap_bulk_read (st_lsm6dsx_read_locked) gets "permission denied".
So all in all, just a heads up. Maybe we can ignore it for now :)
/Sean