summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorStephan Gerhold <stephan.gerhold@linaro.org>2026-06-01 15:55:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-08 13:54:52 +0200
commitb229b22b0a945d52dee887c856991ad08744d08e (patch)
tree55d0a411aac04cd6c8cae19e7590d4d1222e9af3 /rust/kernel
parent42c37c4b75d38b51d84f31a8e29427f5e06a7c2a (diff)
usb: typec: ps883x: Fix DP+USB3 configuration
Commit 6bebd9b77726 ("usb: typec: ps883x: Rework ps883x_set()") introduced two regressions: 1. The CONN_STATUS_0_USB_3_1_CONNECTED bit is mistakenly written to the wrong configuration register (cfg1 instead of cfg0). This breaks USB3 when using USB3+DP adapters. 2. The switch-case fallthrough block is inverted: Currently, TYPEC_DP_STATE_C (DP-only) inherits the USB3 configuration, while TYPEC_DP_STATE_D (DP+USB3) is missing the necessary DP sink flags. Fix these by writing the USB3 bit to the correct register and swapping the case statement order so both states get their correct bits assigned. Cc: stable <stable@kernel.org> Fixes: 6bebd9b77726 ("usb: typec: ps883x: Rework ps883x_set()") Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://patch.msgid.link/20260601-ps883x-usb3dp-fixes-v1-1-d19bec3a6d26@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions