platform/chrome: cros_ec_typec: Update port info from EC
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Mar 2020 09:00:19 +0000 (02:00 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Sun, 22 Mar 2020 10:11:26 +0000 (11:11 +0100)
commitad7c0510c99ef1568fcfd0ac7e2cefca3b30477a
treee5f5fc98cfc1b419395e1aa7c779e69e82012f01
parentfdc6b21e2444290b69ac9ffa936bf583830dc0de
platform/chrome: cros_ec_typec: Update port info from EC

After registering the ports at probe, get the current port information
from EC and update the Type C connector class ports accordingly.

Co-developed-by: Jon Flatley <jflat@chromium.org>
Signed-off-by: Prashant Malani <pmalani@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