kitakar5525 / chromeos-kernel-linux-surface

linux-surface kernel for chromiumos.
GNU General Public License v3.0
18 stars 1 forks source link

i2c_hid: sensor device: output "failed to retrieve report from device" repeatedly after suspend #11

Closed kitakar5525 closed 4 years ago

kitakar5525 commented 4 years ago

After suspend, error messages will be printed repeatedly.

On Surface 3:

kern  :err   : [  552.529630] i2c_hid i2c-MSHW0102:00: failed to retrieve report from device.

On Surface Book 1:

kern  :err   : [ 3077.026112] i2c_hid i2c-MSHW0030:00: failed to retrieve report from device.

Seems to be no impact on functionality, though. I can still read sensor values.

# on Surface Book 1
$ grep -H . /sys/bus/iio/devices/iio\:device?/in*_raw
/sys/bus/iio/devices/iio:device0/in_illuminance_raw:314
/sys/bus/iio/devices/iio:device0/in_intensity_both_raw:314
/sys/bus/iio/devices/iio:device1/in_rot_quaternion_raw:0 0 0 0 
/sys/bus/iio/devices/iio:device2/in_accel_x_raw:50
/sys/bus/iio/devices/iio:device2/in_accel_y_raw:-955
/sys/bus/iio/devices/iio:device2/in_accel_z_raw:-274
/sys/bus/iio/devices/iio:device3/in_anglvel_x_raw:93
/sys/bus/iio/devices/iio:device3/in_anglvel_y_raw:-49
/sys/bus/iio/devices/iio:device3/in_anglvel_z_raw:-16

But still those messages are annoying. Reloading i2c_hid module (if you build it as module) after suspend will suppress the messages.

There is no such issue on Arch Linux kernel.

kitakar5525 commented 4 years ago

I haven't seen this issue on 5.4 series (so, only on 4.19) with config-minimal-surface. I don't see this issue on 4.19 series anyway on config-general-surface. So, this is a config issue.

kitakar5525 commented 4 years ago

Fortunately, I can't reproduce this issue anymore with 4.19.126-minimal-surface-k5-09205-g5e9fefe31794, closing.