platform/chrome: cros_ec_typec: Set opmode to PD on SOP connected
authorBenson Leung <bleung@chromium.org>
Fri, 29 Jan 2021 06:14:06 +0000 (22:14 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 2 Feb 2021 07:49:54 +0000 (23:49 -0800)
commit0371616d8bef6926e9aa05757f35b901268d3724
tree4b40dbd2231d0ac8c8b8ec33adc3e90c6feba8d5
parentcefc011f8daf0ff3003208349b85174cda0b708d
platform/chrome: cros_ec_typec: Set opmode to PD on SOP connected

When SOP Discovery is done, set the opmode to PD if status indicates
SOP is connected.

SOP connected indicates a PD contract is in place, and is a solid
indication we have transitioned to PD power negotiation, either as
source or sink.

Signed-off-by: Benson Leung <bleung@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20210129061406.2680146-7-bleung@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_typec.c