usb: typec: ucsi: Pass full DP config payload in SET_NEW_CAM for DP alt mode
Subsystems (2)
PATCH 1/1 usb: typec: ucsi: Pass full DP config payload in SET_NEW_CAM for DP alt mode
From: Madhu M <[email protected]>
In the UCSI Specification Revision 3.1 RC1, bits 32-63 of the SET_NEW_CAM command hold the 32-bit Alternate Mode Specific (AMSpecific) field.
For DisplayPort Alternate Mode, this field must contain the full 32-bit DisplayPort configuration VDO payload that the OPM wants the connector to operate in, rather than just the pin assignment value. This AMSpecific value follows the DisplayPort Configurations defined in the DisplayPort Alt Mode on USB Type-C Specification v2.1a, Table 5-13: SOP DisplayPort Configurations.
--- drivers/usb/typec/ucsi/displayport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/usb/typec/ucsi/displayport.c +1 -2
@@ -185,13 +185,12 @@ static int ucsi_displayport_status_update(struct ucsi_dp *dp)static int ucsi_displayport_configure (struct ucsi_dp *dp) { -u32 pins =DP_CONF_GET_PIN_ASSIGN (dp->data.conf);u64 command;if (!dp->override)return 0 ; - command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, pins); + command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, dp->data.conf);return ucsi_send_command (dp->con->ucsi, command,NULL ,0 ); }
Signature · 1 line
2.34.1
Greg KH
maintainerQuoted 43 lines · On Fri, Jun 19, 2026 at 08:33:29PM +0530, [email protected] wrote:
From: Madhu M <[email protected]>
In the UCSI Specification Revision 3.1 RC1, bits 32-63 of the
SET_NEW_CAMcommand hold the 32-bit Alternate Mode Specific (AMSpecific) field.For DisplayPort Alternate Mode, this field must contain the full 32-bit DisplayPort configuration VDO payload that the OPM wants the connector to operate in, rather than just the pin assignment value. This AMSpecific value follows the DisplayPort Configurations defined in the DisplayPort Alt Mode on USB Type-C Specification v2.1a, Table 5-13: SOP DisplayPort Configurations.
Signed-off-by Madhu M <[email protected]>Reviewed-by Jameson Thies <[email protected]>Reviewed-by Andrei Kuchynski <[email protected]>Reviewed-by Heikki Krogerus <[email protected]>--- drivers/usb/typec/ucsi/displayport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/usb/typec/ucsi/displayport.c +1
-2@@ -185,13 +185,12 @@ static int ucsi_displayport_status_update(struct ucsi_dp *dp)static int ucsi_displayport_configure (struct ucsi_dp *dp) { -u32 pins =DP_CONF_GET_PIN_ASSIGN (dp->data.conf);u64 command;if (!dp->override)return 0 ; - command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, pins); + command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, dp->data.conf);return ucsi_send_command (dp->con->ucsi, command,NULL ,0 ); }Signature · 1 line
2.34.1
SHouldn't this have a Fixes: and cc: stable tag?
thanks,
greg k-h
You're right, it should. The bug was introduced in af8622f6a585, which has been around since v5.2, so I'll add:
I'll send a v2 with these tags added.
Thanks,
Madhu M
-----Original Message-----
From: Greg KH <[email protected]>
Sent: 19 June 2026 20:10
To: M, Madhu <[email protected]>
Cc: [email protected]; Katiyar, Pooja <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v1] usb: typec: ucsi: Pass full DP config payload in SET_NEW_CAM for DP alt mode
Quoted 41 lines · On Fri, Jun 19, 2026 at 08:33:29PM +0530, [email protected] wrote:
From: Madhu M <[email protected]>
In the UCSI Specification Revision 3.1 RC1, bits 32-63 of the
SET_NEW_CAMcommand hold the 32-bit Alternate Mode Specific (AMSpecific) field.For DisplayPort Alternate Mode, this field must contain the full 32-bit DisplayPort configuration VDO payload that the OPM wants the connector to operate in, rather than just the pin assignment value. This AMSpecific value follows the DisplayPort Configurations defined in the DisplayPort Alt Mode on USB Type-C Specification v2.1a, Table 5-13: SOP DisplayPort Configurations.
Signed-off-by Madhu M <[email protected]>Reviewed-by Jameson Thies <[email protected]>Reviewed-by Andrei Kuchynski <[email protected]>Reviewed-by Heikki Krogerus <[email protected]>--- drivers/usb/typec/ucsi/displayport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/usb/typec/ucsi/displayport.c +2
-3@@ -185,13 +185,12 @@ static int ucsi_displayport_status_update(struct ucsi_dp *dp)static int ucsi_displayport_configure (struct ucsi_dp *dp) { -u32 pins =DP_CONF_GET_PIN_ASSIGN (dp->data.conf);u64 command;if (!dp->override)return 0 ; - command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, pins); + command =UCSI_CMD_SET_NEW_CAM (dp->con->num,1 , dp->offset, +dp->data.conf);return ucsi_send_command (dp->con->ucsi, command,NULL ,0 ); } --
Quoted 3 lines
2.34.1
SHouldn't this have a Fixes: and cc: stable tag?
thanks,
greg k-h