mirror of https://github.com/torvalds/linux.git
Some devices (such as Smaug) report having MOTION_SENSE_FIFO but do not support controlling the behaviour of the FIFO interrupt via the FIFO_INT_ENABLE command and in these cases the interrupt is always enabled. However, currently the code assumes that if MOTION_SENSE_FIFO is supported then so is FIFO_INT_ENABLE, and when it tries to enable the interrupt via this command and an unsupported device reports a failure it then propagates this into failing the sensors probe. Interpret the return value -EINVAL as a device where FIFO_INT_ENABLE is not present and the interrupt is always enabled. Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> Link: https://lore.kernel.org/r/20251112-diogo-smaug_ec_sensorhub-v1-1-f71d4e9eb9d4@tecnico.ulisboa.pt Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> |
||
|---|---|---|
| .. | ||
| wilco_ec | ||
| Kconfig | ||
| Makefile | ||
| chromeos_acpi.c | ||
| chromeos_laptop.c | ||
| chromeos_of_hw_prober.c | ||
| chromeos_privacy_screen.c | ||
| chromeos_pstore.c | ||
| chromeos_tbmc.c | ||
| cros_ec.c | ||
| cros_ec.h | ||
| cros_ec_chardev.c | ||
| cros_ec_debugfs.c | ||
| cros_ec_i2c.c | ||
| cros_ec_ishtp.c | ||
| cros_ec_lightbar.c | ||
| cros_ec_lpc.c | ||
| cros_ec_lpc_mec.c | ||
| cros_ec_lpc_mec.h | ||
| cros_ec_proto.c | ||
| cros_ec_proto_test.c | ||
| cros_ec_proto_test_util.c | ||
| cros_ec_proto_test_util.h | ||
| cros_ec_rpmsg.c | ||
| cros_ec_sensorhub.c | ||
| cros_ec_sensorhub_ring.c | ||
| cros_ec_sensorhub_trace.h | ||
| cros_ec_spi.c | ||
| cros_ec_sysfs.c | ||
| cros_ec_trace.c | ||
| cros_ec_trace.h | ||
| cros_ec_typec.c | ||
| cros_ec_typec.h | ||
| cros_ec_uart.c | ||
| cros_ec_vbc.c | ||
| cros_hps_i2c.c | ||
| cros_kbd_led_backlight.c | ||
| cros_typec_altmode.c | ||
| cros_typec_altmode.h | ||
| cros_typec_switch.c | ||
| cros_typec_vdm.c | ||
| cros_typec_vdm.h | ||
| cros_usbpd_logger.c | ||
| cros_usbpd_notify.c | ||