Skip to contentSkip to conversation

iio: imu: st_lsm6dsx: read error when resuming from suspend

BUG Sean Nyekjaer 2 participants 3 messages Oct 7, 2019 IIO

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines

Hi Lorenzo,

Hi Sean,

Quoted 2 lines

I'm seeing this error sometimes when resuming:
st_lsm6dsx_i2c 1-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_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...

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

#2 lore raw
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_i2c 1-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_lsm6dsx fixes and missing bits​" same results.

Quoted 8 lines
Quoted 4 lines

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...

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