diff options
author | Prashant Malani <pmalani@chromium.org> | 2020-05-28 14:36:05 +0300 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-06-19 20:16:18 +0300 |
commit | 2ee97377a0d459fb3c484e49fb471ac6add06441 (patch) | |
tree | 3bcfb04cdb887d5da838f712a053270375d11cb3 /net/unix/af_unix.c | |
parent | e32b16c31339e37d3cdc814f2773b74c1dbf660c (diff) | |
download | linux-2ee97377a0d459fb3c484e49fb471ac6add06441.tar.xz |
platform/chrome: cros_ec_typec: Register PD CTRL cmd v2
Recognize EC_CMD_USB_PD_CONTROL command version 2. This is necessary in
order to process Type C mux information (like DP alt mode pin
configuration), which is needed by the Type C Connector class API to
configure the Type C muxes correctly
While we are here, rename the struct member storing this version number
from cmd_ver to pd_ctrl_ver, which more accurately reflects what is
being stored.
Also, slightly change the logic for calling
cros_typec_set_port_params_*(). Now, v0 is called when pd_ctrl_ver is 0,
and v1 is called otherwise.
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions