Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions drivers/gpu/drm/apple/dcp-fabric.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,14 +2311,14 @@ static int dcp_typec_route_apply(struct typec_mux_dev *mux,
}

/*
* Desktop 26.x has one Type-C pipeline: only a port with a sink (HPD)
* takes it. A dock or cable in DP alt mode without a display behind it
* would otherwise hold it against the port that has one.
* Only a port with a sink (HPD) takes a pipeline. A dock or cable in DP
* alt mode without a display behind it would otherwise hold one against
* a port that has a display, for as long as it stays plugged in. The
* port controller reports HPD as a new status when a display appears,
* and the port is routed then. What a port that owns a pipeline does on
* an HPD drop is unchanged.
*/
if (!port->owner && !hpd &&
(route->dcp->fw_compat == DCP_FIRMWARE_V_26_6_DESKTOP ||
dcp_t6041_ext_v27(route->dcp) ||
dcp_t8142_ext(route->dcp))) {
if (!port->owner && !hpd) {
port->applied_valid = true;
return 0;
}
Expand All @@ -2333,7 +2333,7 @@ static int dcp_typec_route_apply(struct typec_mux_dev *mux,
best = dcp_typec_free_route(port);
/* Every pipeline is driving another port's display. */
if (!best)
return hpd ? dcp_typec_port_busy(port, route->dcp) : -ENOSPC;
return dcp_typec_port_busy(port, route->dcp);

ret = dcp_typec_route_activate(best, best->xbar);
if (ret)
Expand Down