diff options
author | Heikki Krogerus <[email protected]> | 2024-08-30 14:16:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-03 10:06:15 +0200 |
commit | de3d7969f6a80aa5abbbc0f39897495ae35548d0 (patch) | |
tree | 5d3ba990f43c721af72012c1adce284da228a290 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | e2940928115e83d707b21bf00b0db7d6c15f8341 (diff) |
usb: typec: ucsi: Fix the partner PD revision
The Partner PD Revision field in GET_CONNECTOR_CAPABILITY
data structure was introduced in UCSI v2.1. In
ucsi_check_connector_capability() the version was assumed to
be 2.0, and in ucsi_register_partner() the field is accessed
completely unconditionally.
Fixing the version in ucsi_check_connector_capability(), and
replacing the unconditional pd_revision assignment with a
direct call to ucsi_check_connector_capability() in
ucsi_register_port(). After this the revision is also
checked only if there is a PD contract.
Fixes: b9fccfdb4ebb ("usb: typec: ucsi: Get PD revision for partner")
Cc: [email protected]
Signed-off-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions