Skip to content

Commit 294955f

Browse files
uhpatelgregkh
authored andcommitted
usb: typec: intel_pmc_mux: Do not configure Altmode HPD High
According to the PMC Type C Subsystem (TCSS) Mux programming guide rev 0.7, bit 14 is reserved in Alternate mode. In DP Alternate Mode state, if the HPD_STATE (bit 7) field in the status update command VDO is set to HPD_HIGH, HPD is configured via separate HPD mode request after configuring DP Alternate mode request. Configuring reserved bit may show unexpected behaviour. So do not configure them while issuing the Alternate Mode request. Fixes: 7990be4 ("usb: typec: mux: intel: Handle alt mode HPD_HIGH") Cc: [email protected] Signed-off-by: Utkarsh Patel <[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]>
1 parent a18cd6c commit 294955f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/usb/typec/mux/intel_pmc_mux.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ enum {
6868
#define PMC_USB_ALTMODE_DP_MODE_SHIFT 8
6969

7070
/* TBT specific Mode Data bits */
71-
#define PMC_USB_ALTMODE_HPD_HIGH BIT(14)
7271
#define PMC_USB_ALTMODE_TBT_TYPE BIT(17)
7372
#define PMC_USB_ALTMODE_CABLE_TYPE BIT(18)
7473
#define PMC_USB_ALTMODE_ACTIVE_LINK BIT(20)
@@ -185,9 +184,6 @@ pmc_usb_mux_dp(struct pmc_usb_port *port, struct typec_mux_state *state)
185184
req.mode_data |= (state->mode - TYPEC_STATE_MODAL) <<
186185
PMC_USB_ALTMODE_DP_MODE_SHIFT;
187186

188-
if (data->status & DP_STATUS_HPD_STATE)
189-
req.mode_data |= PMC_USB_ALTMODE_HPD_HIGH;
190-
191187
ret = pmc_usb_command(port, (void *)&req, sizeof(req));
192188
if (ret)
193189
return ret;

0 commit comments

Comments
 (0)