mfd: cros_ec: Don't try to grab log when suspended
authorDouglas Anderson <dianders@chromium.org>
Wed, 18 Apr 2018 10:24:00 +0000 (12:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 29 May 2018 08:10:39 +0000 (09:10 +0100)
commit44d99d737279eb2021b2c66df3cee6f8a21ff4e4
tree276d5ee9916a9ec3b99cdec312fab5c66578d7f7
parenteb3f2f2396d1f8e1043b7613aa657fb4fd4ebc3e
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>
drivers/mfd/cros_ec_dev.c
drivers/platform/chrome/cros_ec_debugfs.c
include/linux/mfd/cros_ec.h