diff options
author | Douglas Anderson <dianders@chromium.org> | 2018-04-18 13:24:00 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-05-29 11:10:39 +0300 |
commit | 44d99d737279eb2021b2c66df3cee6f8a21ff4e4 (patch) | |
tree | 276d5ee9916a9ec3b99cdec312fab5c66578d7f7 /include/linux/mfd/cros_ec.h | |
parent | eb3f2f2396d1f8e1043b7613aa657fb4fd4ebc3e (diff) | |
download | linux-44d99d737279eb2021b2c66df3cee6f8a21ff4e4.tar.xz |
mfd: cros_ec: Don't try to grab log when suspended
We should stop our worker thread while we're suspended. If we don't
then we'll get messages like:
cros-ec-spi spi5.0: spi transfer failed: -108
cros-ec-spi spi5.0: cs-deassert spi transfer failed: -108
cros-ec-ctl cros-ec-ctl.0.auto: EC communication failed
Signed-off-by: Douglas Anderson <dianders@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>
Diffstat (limited to 'include/linux/mfd/cros_ec.h')
-rw-r--r-- | include/linux/mfd/cros_ec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h index 4ff0cec979b0..b8e750d91200 100644 --- a/include/linux/mfd/cros_ec.h +++ b/include/linux/mfd/cros_ec.h @@ -327,5 +327,7 @@ extern struct attribute_group cros_ec_vbc_attr_group; /* debugfs stuff */ int cros_ec_debugfs_init(struct cros_ec_dev *ec); void cros_ec_debugfs_remove(struct cros_ec_dev *ec); +void cros_ec_debugfs_suspend(struct cros_ec_dev *ec); +void cros_ec_debugfs_resume(struct cros_ec_dev *ec); #endif /* __LINUX_MFD_CROS_EC_H */ |