platform/chrome: cros_ec_typec: Introduce TYPEC_STATUS
authorPrashant Malani <pmalani@chromium.org>
Thu, 29 Oct 2020 22:27:38 +0000 (15:27 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 12 Nov 2020 20:32:09 +0000 (21:32 +0100)
commit80f8cef60d79f23c02e546ba3de2fce84d5e8bdb
tree6efe5eba206493a1d262841ee2b30243a4880f96
parentcd2c40ff90b0e385c18f881ab5e17f7137864223
platform/chrome: cros_ec_typec: Introduce TYPEC_STATUS

Make a call to the newly introduced EC_CMD_TYPEC_STATUS command.
Currently we just check to see if the SOP (port-partner) discovery was
done and emit a debug level print for it.

Subsequent patches will retrieve and parse the discovery data and fill
out the Type C connector class data structures.

Also check the EC_FEATURE_TYPEC_CMD feature flag at probe, and only call
the new TYPEC_STATUS command if the feature flag is supported.

Reported-by: kernel test robot <lkp@intel.com>
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/20201029222738.482366-6-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c