linux-stable/drivers/iio
Hans de Goede f458bcfd26 iio: accel: mxc4005: Reset chip on probe() and resume()
commit 6b8cffdc4a upstream.

On some designs the chip is not properly reset when powered up at boot or
after a suspend/resume cycle.

Use the sw-reset feature to ensure that the chip is in a clean state
after probe() / resume() and in the case of resume() restore the settings
(scale, trigger-enabled).

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218578
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240326113700.56725-3-hdegoede@redhat.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-17 12:15:03 +02:00
..
accel iio: accel: mxc4005: Reset chip on probe() and resume() 2024-05-17 12:15:03 +02:00
adc iio: adc: rockchip_saradc: use mask for write_enable bitfield 2024-04-03 15:32:08 +02:00
addac
afe
amplifiers
buffer Char/Misc and other Driver changes for 6.8-rc1 2024-01-17 16:47:17 -08:00
cdc
chemical TTY/Serial changes for 6.8-rc1 2024-01-18 11:37:24 -08:00
common
dac
dummy
filter
frequency
gyro
health
humidity iio: humidity: hdc3020: fix temperature offset 2024-01-27 14:40:07 +00:00
imu iio:imu: adis16475: Fix sync mode setting 2024-05-17 12:15:02 +02:00
light iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP 2024-02-04 14:02:16 +00:00
magnetometer iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC 2024-01-22 18:59:06 +00:00
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: Fixes SPI support for BMP3xx devices 2024-05-17 12:15:02 +02:00
proximity
resolver
temperature
test
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c iio: core: fix memleak in iio_device_register_sysfs 2024-01-22 18:59:06 +00:00
industrialio-event.c
industrialio-gts-helper.c iio: gts-helper: Fix division loop 2024-03-26 18:17:29 -04:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile
TODO