platform/chrome: cros_ec_typec: Parse partner PD ID VDOs
authorPrashant Malani <pmalani@chromium.org>
Thu, 29 Oct 2020 22:27:40 +0000 (15:27 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 12 Nov 2020 20:32:09 +0000 (21:32 +0100)
commitf6f668118918f533676e51f3214f5a104562b59c
tree0752afc6e9526c23fca0027b6ccaa118a5d31f60
parent80f8cef60d79f23c02e546ba3de2fce84d5e8bdb
platform/chrome: cros_ec_typec: Parse partner PD ID VDOs

Use EC_CMD_TYPE_DISCOVERY to retrieve and store the discovery data for
the port partner. With that data, update the PD Identity VDO values for
the partner, which were earlier not initialized.

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