]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros_ec_dev: Register shutdown function for debugfs
authorDaniel Hung-yu Wu <hywu@google.com>
Wed, 18 Apr 2018 10:24:02 +0000 (12:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 29 May 2018 08:10:54 +0000 (09:10 +0100)
commit60202c07fa8e114c9f815f5426abc0a968cc8083
treec4cce3140a276e969d2fb92a063b30afaf848038
parentf81a94323c7b63eb19f64322ed7b8f6a51777464
mfd: cros_ec_dev: Register shutdown function for debugfs

Reboot or shutdown during delayed works could corrupt communication with
EC and certain I2C controller may not be able to recover from the error
state.

This patch registers a shutdown callback used to cancel the debugfs log
worker thread.

Signed-off-by: Daniel Hung-yu Wu <hywu@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c