mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
drm/i915: Align power domain names with port names
There is a difference in BSpec's and the driver's designation of DDI ports. BSpec uses the following names: - before GEN11: BSpec/driver: port A/B/C/D etc - GEN11: BSpec/driver: port A-F - GEN12: BSpec: port A/B/C for combo PHY ports port TC1-6 for Type C PHY ports driver: port A-I. The driver's port D name matches BSpec's TC1 port name. So far power domains were named according to the BSpec designation, to make it easier to match the code against the specification. That however can be confusing when a power domain needs to be matched to a port on GEN12+. To resolve that use the driver's port A-I designation for power domain names too and rename the corresponding power wells so that they reflect the mapping from the driver's to BSpec's port name. Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190823100711.27833-1-imre.deak@intel.com
This commit is contained in:
@@ -6737,16 +6737,16 @@ intel_aux_power_domain(struct intel_digital_port *dig_port)
|
||||
dig_port->tc_mode == TC_PORT_TBT_ALT) {
|
||||
switch (dig_port->aux_ch) {
|
||||
case AUX_CH_C:
|
||||
return POWER_DOMAIN_AUX_TBT1;
|
||||
return POWER_DOMAIN_AUX_C_TBT;
|
||||
case AUX_CH_D:
|
||||
return POWER_DOMAIN_AUX_TBT2;
|
||||
return POWER_DOMAIN_AUX_D_TBT;
|
||||
case AUX_CH_E:
|
||||
return POWER_DOMAIN_AUX_TBT3;
|
||||
return POWER_DOMAIN_AUX_E_TBT;
|
||||
case AUX_CH_F:
|
||||
return POWER_DOMAIN_AUX_TBT4;
|
||||
return POWER_DOMAIN_AUX_F_TBT;
|
||||
default:
|
||||
MISSING_CASE(dig_port->aux_ch);
|
||||
return POWER_DOMAIN_AUX_TBT1;
|
||||
return POWER_DOMAIN_AUX_C_TBT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user