summaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-03-26 12:37:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-17 12:15:03 +0200
commitf458bcfd26de924313fd1b96f671d8feaed6431c (patch)
treefd4c016b18efec4a06ebc2e145d86362044a3bc3 /lib/dynamic_debug.c
parent2087ae77c79f963c7112c0befc74fe7461f52df8 (diff)
iio: accel: mxc4005: Reset chip on probe() and resume()
commit 6b8cffdc4a31e4a72f75ecd1bc13fbf0dafee390 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>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions