platform/chrome: cros_ec_typec: Add PM support
authorPrashant Malani <pmalani@chromium.org>
Mon, 29 Jun 2020 21:13:29 +0000 (14:13 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 30 Jun 2020 14:35:16 +0000 (16:35 +0200)
commit20b736872f7f324438649a277ec711a646ce8e8d
treed9df1151145e1d90c08371b23c2e978f34e4874c
parent83cbc69df8b8ec598ff8ca7629be34a50274e5b5
platform/chrome: cros_ec_typec: Add PM support

Define basic suspend resume functions for cros-ec-typec. On suspend, we
simply ensure that any pending port update work is completed, and on
resume, we re-poll the port state to account for any
changes/disconnections that might have occurred during suspend.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_typec.c