aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2024-08-30 11:16:45 +0000
committerGreg Kroah-Hartman <[email protected]>2024-09-03 08:06:15 +0000
commitde3d7969f6a80aa5abbbc0f39897495ae35548d0 (patch)
tree5d3ba990f43c721af72012c1adce284da228a290 /rust/helpers/task.c
parentusb: cdns2: Fix controller reset issue (diff)
downloadkernel-de3d7969f6a80aa5abbbc0f39897495ae35548d0.tar.gz
kernel-de3d7969f6a80aa5abbbc0f39897495ae35548d0.zip
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 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions