OSDN Git Service

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)
commite15b7f44a224851ea9f03edca65596627913a445
treec4cce3140a276e969d2fb92a063b30afaf848038
parent95a4d07fdecbd52a2e683607d561a200d2522033
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