diff options
author | Douglas Anderson <dianders@chromium.org> | 2018-04-18 12:24:00 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-05-29 10:10:39 +0200 |
commit | 44d99d737279eb2021b2c66df3cee6f8a21ff4e4 (patch) | |
tree | 276d5ee9916a9ec3b99cdec312fab5c66578d7f7 /drivers/mfd/cros_ec_dev.c | |
parent | mfd: cros_ec: Free IRQ automatically (diff) | |
download | linux-44d99d737279eb2021b2c66df3cee6f8a21ff4e4.tar.xz linux-44d99d737279eb2021b2c66df3cee6f8a21ff4e4.zip |
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 'drivers/mfd/cros_ec_dev.c')
-rw-r--r-- | drivers/mfd/cros_ec_dev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index eafd06f62a3a..5a7d4e1dea70 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -466,6 +466,8 @@ static __maybe_unused int ec_device_suspend(struct device *dev) { struct cros_ec_dev *ec = dev_get_drvdata(dev); + cros_ec_debugfs_suspend(ec); + lb_suspend(ec); return 0; @@ -475,6 +477,8 @@ static __maybe_unused int ec_device_resume(struct device *dev) { struct cros_ec_dev *ec = dev_get_drvdata(dev); + cros_ec_debugfs_resume(ec); + lb_resume(ec); return 0; |