platform/chrome: cros_ec_typec: Handle hard reset
authorPrashant Malani <pmalani@chromium.org>
Tue, 20 Apr 2021 17:16:13 +0000 (10:16 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 20 Apr 2021 17:35:42 +0000 (19:35 +0200)
commit944b3a639573796debe3cd47298a5dd79810be73
tree703048dac0910ad9454b40e9d5c595d864ed7ffe
parent67880f1bc342ed4c94e72cad7f8ca76e5121aae3
platform/chrome: cros_ec_typec: Handle hard reset

The Chrome Embedded Controller (EC) generates a hard reset type C event
when a USB Power Delivery (PD) hard reset is encountered. Handle this
event by unregistering the partner and cable on the associated port and
clearing the event flag.

Cc: Benson Leung <bleung@chromium.org>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210420171617.3830902-2-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c