mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
drm/i915: Initialize dig_port->aux_ch to NONE to be sure
Make sure dig_port->aux_ch is trustworthy by initializing it to NONE (-1) at the start. The encoder init will later fill in the actual value, if appropriate. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230630155846.29931-2-ville.syrjala@linux.intel.com
This commit is contained in:
parent
a122243367
commit
4cca967698
|
|
@ -1273,6 +1273,8 @@ bool g4x_dp_init(struct drm_i915_private *dev_priv,
|
|||
if (!dig_port)
|
||||
return false;
|
||||
|
||||
dig_port->aux_ch = AUX_CH_NONE;
|
||||
|
||||
intel_connector = intel_connector_alloc();
|
||||
if (!intel_connector)
|
||||
goto err_connector_alloc;
|
||||
|
|
|
|||
|
|
@ -698,6 +698,8 @@ void g4x_hdmi_init(struct drm_i915_private *dev_priv,
|
|||
if (!dig_port)
|
||||
return;
|
||||
|
||||
dig_port->aux_ch = AUX_CH_NONE;
|
||||
|
||||
intel_connector = intel_connector_alloc();
|
||||
if (!intel_connector) {
|
||||
kfree(dig_port);
|
||||
|
|
|
|||
|
|
@ -4747,6 +4747,8 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
|
|||
if (!dig_port)
|
||||
return;
|
||||
|
||||
dig_port->aux_ch = AUX_CH_NONE;
|
||||
|
||||
encoder = &dig_port->base;
|
||||
encoder->devdata = devdata;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user