Commit 7801f3b7 authored by Lucas De Marchi's avatar Lucas De Marchi

drm/i915/display: prefer dig_port to reference intel_digital_port

We have a mix of dport, intel_dport, intel_dig_port and dig_port to
reference a intel_digital_port struct. Numbers are around

5	intel_dport
36	dport
479	intel_dig_port
352	dig_port

Since we already removed the intel_ prefix from most of our other
structs, do the same here and prefer dig_port.

v2: rename everything in i915, not just a few display sources and
reword commit message (from Matt Roper)
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701045054.23357-1-lucas.demarchi@intel.com
parent d524b87f
This diff is collapsed.
...@@ -1612,13 +1612,13 @@ static void chv_disable_pll(struct drm_i915_private *dev_priv, enum pipe pipe) ...@@ -1612,13 +1612,13 @@ static void chv_disable_pll(struct drm_i915_private *dev_priv, enum pipe pipe)
} }
void vlv_wait_port_ready(struct drm_i915_private *dev_priv, void vlv_wait_port_ready(struct drm_i915_private *dev_priv,
struct intel_digital_port *dport, struct intel_digital_port *dig_port,
unsigned int expected_mask) unsigned int expected_mask)
{ {
u32 port_mask; u32 port_mask;
i915_reg_t dpll_reg; i915_reg_t dpll_reg;
switch (dport->base.port) { switch (dig_port->base.port) {
case PORT_B: case PORT_B:
port_mask = DPLL_PORTB_READY_MASK; port_mask = DPLL_PORTB_READY_MASK;
dpll_reg = DPLL(0); dpll_reg = DPLL(0);
...@@ -1640,7 +1640,7 @@ void vlv_wait_port_ready(struct drm_i915_private *dev_priv, ...@@ -1640,7 +1640,7 @@ void vlv_wait_port_ready(struct drm_i915_private *dev_priv,
port_mask, expected_mask, 1000)) port_mask, expected_mask, 1000))
drm_WARN(&dev_priv->drm, 1, drm_WARN(&dev_priv->drm, 1,
"timed out waiting for [ENCODER:%d:%s] port ready: got 0x%x, expected 0x%x\n", "timed out waiting for [ENCODER:%d:%s] port ready: got 0x%x, expected 0x%x\n",
dport->base.base.base.id, dport->base.base.name, dig_port->base.base.base.id, dig_port->base.base.name,
intel_de_read(dev_priv, dpll_reg) & port_mask, intel_de_read(dev_priv, dpll_reg) & port_mask,
expected_mask); expected_mask);
} }
......
...@@ -542,7 +542,7 @@ void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state); ...@@ -542,7 +542,7 @@ void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state);
int ilk_get_lanes_required(int target_clock, int link_bw, int bpp); int ilk_get_lanes_required(int target_clock, int link_bw, int bpp);
void vlv_wait_port_ready(struct drm_i915_private *dev_priv, void vlv_wait_port_ready(struct drm_i915_private *dev_priv,
struct intel_digital_port *dport, struct intel_digital_port *dig_port,
unsigned int expected_mask); unsigned int expected_mask);
int intel_get_load_detect_pipe(struct drm_connector *connector, int intel_get_load_detect_pipe(struct drm_connector *connector,
struct intel_load_detect_pipe *old, struct intel_load_detect_pipe *old,
......
...@@ -1194,7 +1194,7 @@ static int i915_dp_mst_info(struct seq_file *m, void *unused) ...@@ -1194,7 +1194,7 @@ static int i915_dp_mst_info(struct seq_file *m, void *unused)
struct drm_i915_private *dev_priv = node_to_i915(m->private); struct drm_i915_private *dev_priv = node_to_i915(m->private);
struct drm_device *dev = &dev_priv->drm; struct drm_device *dev = &dev_priv->drm;
struct intel_encoder *intel_encoder; struct intel_encoder *intel_encoder;
struct intel_digital_port *intel_dig_port; struct intel_digital_port *dig_port;
struct drm_connector *connector; struct drm_connector *connector;
struct drm_connector_list_iter conn_iter; struct drm_connector_list_iter conn_iter;
...@@ -1207,14 +1207,14 @@ static int i915_dp_mst_info(struct seq_file *m, void *unused) ...@@ -1207,14 +1207,14 @@ static int i915_dp_mst_info(struct seq_file *m, void *unused)
if (!intel_encoder || intel_encoder->type == INTEL_OUTPUT_DP_MST) if (!intel_encoder || intel_encoder->type == INTEL_OUTPUT_DP_MST)
continue; continue;
intel_dig_port = enc_to_dig_port(intel_encoder); dig_port = enc_to_dig_port(intel_encoder);
if (!intel_dig_port->dp.can_mst) if (!dig_port->dp.can_mst)
continue; continue;
seq_printf(m, "MST Source Port [ENCODER:%d:%s]\n", seq_printf(m, "MST Source Port [ENCODER:%d:%s]\n",
intel_dig_port->base.base.base.id, dig_port->base.base.base.id,
intel_dig_port->base.base.name); dig_port->base.base.name);
drm_dp_mst_dump_topology(m, &intel_dig_port->dp.mst_mgr); drm_dp_mst_dump_topology(m, &dig_port->dp.mst_mgr);
} }
drm_connector_list_iter_end(&conn_iter); drm_connector_list_iter_end(&conn_iter);
......
...@@ -1817,8 +1817,8 @@ void chv_phy_powergate_lanes(struct intel_encoder *encoder, ...@@ -1817,8 +1817,8 @@ void chv_phy_powergate_lanes(struct intel_encoder *encoder,
{ {
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct i915_power_domains *power_domains = &dev_priv->power_domains; struct i915_power_domains *power_domains = &dev_priv->power_domains;
enum dpio_phy phy = vlv_dport_to_phy(enc_to_dig_port(encoder)); enum dpio_phy phy = vlv_dig_port_to_phy(enc_to_dig_port(encoder));
enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(encoder)); enum dpio_channel ch = vlv_dig_port_to_channel(enc_to_dig_port(encoder));
mutex_lock(&power_domains->lock); mutex_lock(&power_domains->lock);
......
...@@ -279,10 +279,10 @@ enum check_link_response { ...@@ -279,10 +279,10 @@ enum check_link_response {
*/ */
struct intel_hdcp_shim { struct intel_hdcp_shim {
/* Outputs the transmitter's An and Aksv values to the receiver. */ /* Outputs the transmitter's An and Aksv values to the receiver. */
int (*write_an_aksv)(struct intel_digital_port *intel_dig_port, u8 *an); int (*write_an_aksv)(struct intel_digital_port *dig_port, u8 *an);
/* Reads the receiver's key selection vector */ /* Reads the receiver's key selection vector */
int (*read_bksv)(struct intel_digital_port *intel_dig_port, u8 *bksv); int (*read_bksv)(struct intel_digital_port *dig_port, u8 *bksv);
/* /*
* Reads BINFO from DP receivers and BSTATUS from HDMI receivers. The * Reads BINFO from DP receivers and BSTATUS from HDMI receivers. The
...@@ -290,52 +290,52 @@ struct intel_hdcp_shim { ...@@ -290,52 +290,52 @@ struct intel_hdcp_shim {
* different. Call it BSTATUS since that's the name the HDMI spec * different. Call it BSTATUS since that's the name the HDMI spec
* uses and it was there first. * uses and it was there first.
*/ */
int (*read_bstatus)(struct intel_digital_port *intel_dig_port, int (*read_bstatus)(struct intel_digital_port *dig_port,
u8 *bstatus); u8 *bstatus);
/* Determines whether a repeater is present downstream */ /* Determines whether a repeater is present downstream */
int (*repeater_present)(struct intel_digital_port *intel_dig_port, int (*repeater_present)(struct intel_digital_port *dig_port,
bool *repeater_present); bool *repeater_present);
/* Reads the receiver's Ri' value */ /* Reads the receiver's Ri' value */
int (*read_ri_prime)(struct intel_digital_port *intel_dig_port, u8 *ri); int (*read_ri_prime)(struct intel_digital_port *dig_port, u8 *ri);
/* Determines if the receiver's KSV FIFO is ready for consumption */ /* Determines if the receiver's KSV FIFO is ready for consumption */
int (*read_ksv_ready)(struct intel_digital_port *intel_dig_port, int (*read_ksv_ready)(struct intel_digital_port *dig_port,
bool *ksv_ready); bool *ksv_ready);
/* Reads the ksv fifo for num_downstream devices */ /* Reads the ksv fifo for num_downstream devices */
int (*read_ksv_fifo)(struct intel_digital_port *intel_dig_port, int (*read_ksv_fifo)(struct intel_digital_port *dig_port,
int num_downstream, u8 *ksv_fifo); int num_downstream, u8 *ksv_fifo);
/* Reads a 32-bit part of V' from the receiver */ /* Reads a 32-bit part of V' from the receiver */
int (*read_v_prime_part)(struct intel_digital_port *intel_dig_port, int (*read_v_prime_part)(struct intel_digital_port *dig_port,
int i, u32 *part); int i, u32 *part);
/* Enables HDCP signalling on the port */ /* Enables HDCP signalling on the port */
int (*toggle_signalling)(struct intel_digital_port *intel_dig_port, int (*toggle_signalling)(struct intel_digital_port *dig_port,
bool enable); bool enable);
/* Ensures the link is still protected */ /* Ensures the link is still protected */
bool (*check_link)(struct intel_digital_port *intel_dig_port); bool (*check_link)(struct intel_digital_port *dig_port);
/* Detects panel's hdcp capability. This is optional for HDMI. */ /* Detects panel's hdcp capability. This is optional for HDMI. */
int (*hdcp_capable)(struct intel_digital_port *intel_dig_port, int (*hdcp_capable)(struct intel_digital_port *dig_port,
bool *hdcp_capable); bool *hdcp_capable);
/* HDCP adaptation(DP/HDMI) required on the port */ /* HDCP adaptation(DP/HDMI) required on the port */
enum hdcp_wired_protocol protocol; enum hdcp_wired_protocol protocol;
/* Detects whether sink is HDCP2.2 capable */ /* Detects whether sink is HDCP2.2 capable */
int (*hdcp_2_2_capable)(struct intel_digital_port *intel_dig_port, int (*hdcp_2_2_capable)(struct intel_digital_port *dig_port,
bool *capable); bool *capable);
/* Write HDCP2.2 messages */ /* Write HDCP2.2 messages */
int (*write_2_2_msg)(struct intel_digital_port *intel_dig_port, int (*write_2_2_msg)(struct intel_digital_port *dig_port,
void *buf, size_t size); void *buf, size_t size);
/* Read HDCP2.2 messages */ /* Read HDCP2.2 messages */
int (*read_2_2_msg)(struct intel_digital_port *intel_dig_port, int (*read_2_2_msg)(struct intel_digital_port *dig_port,
u8 msg_id, void *buf, size_t size); u8 msg_id, void *buf, size_t size);
/* /*
...@@ -343,11 +343,11 @@ struct intel_hdcp_shim { ...@@ -343,11 +343,11 @@ struct intel_hdcp_shim {
* type to Receivers. In DP HDCP2.2 Stream type is one of the input to * type to Receivers. In DP HDCP2.2 Stream type is one of the input to
* the HDCP2.2 Cipher for En/De-Cryption. Not applicable for HDMI. * the HDCP2.2 Cipher for En/De-Cryption. Not applicable for HDMI.
*/ */
int (*config_stream_type)(struct intel_digital_port *intel_dig_port, int (*config_stream_type)(struct intel_digital_port *dig_port,
bool is_repeater, u8 type); bool is_repeater, u8 type);
/* HDCP2.2 Link Integrity Check */ /* HDCP2.2 Link Integrity Check */
int (*check_2_2_link)(struct intel_digital_port *intel_dig_port); int (*check_2_2_link)(struct intel_digital_port *dig_port);
}; };
struct intel_hdcp { struct intel_hdcp {
...@@ -1434,9 +1434,9 @@ struct intel_dp_mst_encoder { ...@@ -1434,9 +1434,9 @@ struct intel_dp_mst_encoder {
}; };
static inline enum dpio_channel static inline enum dpio_channel
vlv_dport_to_channel(struct intel_digital_port *dport) vlv_dig_port_to_channel(struct intel_digital_port *dig_port)
{ {
switch (dport->base.port) { switch (dig_port->base.port) {
case PORT_B: case PORT_B:
case PORT_D: case PORT_D:
return DPIO_CH0; return DPIO_CH0;
...@@ -1448,9 +1448,9 @@ vlv_dport_to_channel(struct intel_digital_port *dport) ...@@ -1448,9 +1448,9 @@ vlv_dport_to_channel(struct intel_digital_port *dport)
} }
static inline enum dpio_phy static inline enum dpio_phy
vlv_dport_to_phy(struct intel_digital_port *dport) vlv_dig_port_to_phy(struct intel_digital_port *dig_port)
{ {
switch (dport->base.port) { switch (dig_port->base.port) {
case PORT_B: case PORT_B:
case PORT_C: case PORT_C:
return DPIO_PHY0; return DPIO_PHY0;
......
This diff is collapsed.
...@@ -40,7 +40,7 @@ bool intel_dp_port_enabled(struct drm_i915_private *dev_priv, ...@@ -40,7 +40,7 @@ bool intel_dp_port_enabled(struct drm_i915_private *dev_priv,
enum pipe *pipe); enum pipe *pipe);
bool intel_dp_init(struct drm_i915_private *dev_priv, i915_reg_t output_reg, bool intel_dp_init(struct drm_i915_private *dev_priv, i915_reg_t output_reg,
enum port port); enum port port);
bool intel_dp_init_connector(struct intel_digital_port *intel_dig_port, bool intel_dp_init_connector(struct intel_digital_port *dig_port,
struct intel_connector *intel_connector); struct intel_connector *intel_connector);
void intel_dp_set_link_params(struct intel_dp *intel_dp, void intel_dp_set_link_params(struct intel_dp *intel_dp,
int link_rate, u8 lane_count, int link_rate, u8 lane_count,
...@@ -61,7 +61,7 @@ int intel_dp_compute_config(struct intel_encoder *encoder, ...@@ -61,7 +61,7 @@ int intel_dp_compute_config(struct intel_encoder *encoder,
struct drm_connector_state *conn_state); struct drm_connector_state *conn_state);
bool intel_dp_is_edp(struct intel_dp *intel_dp); bool intel_dp_is_edp(struct intel_dp *intel_dp);
bool intel_dp_is_port_edp(struct drm_i915_private *dev_priv, enum port port); bool intel_dp_is_port_edp(struct drm_i915_private *dev_priv, enum port port);
enum irqreturn intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, enum irqreturn intel_dp_hpd_pulse(struct intel_digital_port *dig_port,
bool long_hpd); bool long_hpd);
void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state, void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state,
const struct drm_connector_state *conn_state); const struct drm_connector_state *conn_state);
......
...@@ -342,8 +342,8 @@ static void intel_mst_disable_dp(struct intel_atomic_state *state, ...@@ -342,8 +342,8 @@ static void intel_mst_disable_dp(struct intel_atomic_state *state,
const struct drm_connector_state *old_conn_state) const struct drm_connector_state *old_conn_state)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
struct intel_connector *connector = struct intel_connector *connector =
to_intel_connector(old_conn_state->connector); to_intel_connector(old_conn_state->connector);
struct drm_i915_private *i915 = to_i915(connector->base.dev); struct drm_i915_private *i915 = to_i915(connector->base.dev);
...@@ -369,8 +369,8 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state, ...@@ -369,8 +369,8 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,
const struct drm_connector_state *old_conn_state) const struct drm_connector_state *old_conn_state)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
struct intel_connector *connector = struct intel_connector *connector =
to_intel_connector(old_conn_state->connector); to_intel_connector(old_conn_state->connector);
struct drm_i915_private *dev_priv = to_i915(connector->base.dev); struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
...@@ -421,7 +421,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state, ...@@ -421,7 +421,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,
* the transcoder clock select is set to none. * the transcoder clock select is set to none.
*/ */
if (last_mst_stream) if (last_mst_stream)
intel_dp_set_infoframes(&intel_dig_port->base, false, intel_dp_set_infoframes(&dig_port->base, false,
old_crtc_state, NULL); old_crtc_state, NULL);
/* /*
* From TGL spec: "If multi-stream slave transcoder: Configure * From TGL spec: "If multi-stream slave transcoder: Configure
...@@ -436,7 +436,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state, ...@@ -436,7 +436,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,
intel_mst->connector = NULL; intel_mst->connector = NULL;
if (last_mst_stream) if (last_mst_stream)
intel_dig_port->base.post_disable(state, &intel_dig_port->base, dig_port->base.post_disable(state, &dig_port->base,
old_crtc_state, NULL); old_crtc_state, NULL);
drm_dbg_kms(&dev_priv->drm, "active links %d\n", drm_dbg_kms(&dev_priv->drm, "active links %d\n",
...@@ -449,11 +449,11 @@ static void intel_mst_pre_pll_enable_dp(struct intel_atomic_state *state, ...@@ -449,11 +449,11 @@ static void intel_mst_pre_pll_enable_dp(struct intel_atomic_state *state,
const struct drm_connector_state *conn_state) const struct drm_connector_state *conn_state)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
if (intel_dp->active_mst_links == 0) if (intel_dp->active_mst_links == 0)
intel_dig_port->base.pre_pll_enable(state, &intel_dig_port->base, dig_port->base.pre_pll_enable(state, &dig_port->base,
pipe_config, NULL); pipe_config, NULL);
} }
...@@ -463,8 +463,8 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state, ...@@ -463,8 +463,8 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state,
const struct drm_connector_state *conn_state) const struct drm_connector_state *conn_state)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_connector *connector = struct intel_connector *connector =
to_intel_connector(conn_state->connector); to_intel_connector(conn_state->connector);
...@@ -490,7 +490,7 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state, ...@@ -490,7 +490,7 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state,
drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, true); drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, true);
if (first_mst_stream) if (first_mst_stream)
intel_dig_port->base.pre_enable(state, &intel_dig_port->base, dig_port->base.pre_enable(state, &dig_port->base,
pipe_config, NULL); pipe_config, NULL);
ret = drm_dp_mst_allocate_vcpi(&intel_dp->mst_mgr, ret = drm_dp_mst_allocate_vcpi(&intel_dp->mst_mgr,
...@@ -506,7 +506,7 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state, ...@@ -506,7 +506,7 @@ static void intel_mst_pre_enable_dp(struct intel_atomic_state *state,
/* /*
* Before Gen 12 this is not done as part of * Before Gen 12 this is not done as part of
* intel_dig_port->base.pre_enable() and should be done here. For * dig_port->base.pre_enable() and should be done here. For
* Gen 12+ the step in which this should be done is different for the * Gen 12+ the step in which this should be done is different for the
* first MST stream, so it's done on the DDI for the first stream and * first MST stream, so it's done on the DDI for the first stream and
* here for the following ones. * here for the following ones.
...@@ -525,8 +525,8 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state, ...@@ -525,8 +525,8 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,
const struct drm_connector_state *conn_state) const struct drm_connector_state *conn_state)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
u32 val; u32 val;
...@@ -572,9 +572,9 @@ static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder, ...@@ -572,9 +572,9 @@ static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder,
struct intel_crtc_state *pipe_config) struct intel_crtc_state *pipe_config)
{ {
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
struct intel_digital_port *intel_dig_port = intel_mst->primary; struct intel_digital_port *dig_port = intel_mst->primary;
intel_ddi_get_config(&intel_dig_port->base, pipe_config); intel_ddi_get_config(&dig_port->base, pipe_config);
} }
static int intel_dp_mst_get_ddc_modes(struct drm_connector *connector) static int intel_dp_mst_get_ddc_modes(struct drm_connector *connector)
...@@ -732,8 +732,8 @@ static bool intel_dp_mst_get_hw_state(struct intel_connector *connector) ...@@ -732,8 +732,8 @@ static bool intel_dp_mst_get_hw_state(struct intel_connector *connector)
static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, const char *pathprop) static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, const char *pathprop)
{ {
struct intel_dp *intel_dp = container_of(mgr, struct intel_dp, mst_mgr); struct intel_dp *intel_dp = container_of(mgr, struct intel_dp, mst_mgr);
struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
struct drm_device *dev = intel_dig_port->base.base.dev; struct drm_device *dev = dig_port->base.base.dev;
struct drm_i915_private *dev_priv = to_i915(dev); struct drm_i915_private *dev_priv = to_i915(dev);
struct intel_connector *intel_connector; struct intel_connector *intel_connector;
struct drm_connector *connector; struct drm_connector *connector;
...@@ -808,11 +808,11 @@ static const struct drm_dp_mst_topology_cbs mst_cbs = { ...@@ -808,11 +808,11 @@ static const struct drm_dp_mst_topology_cbs mst_cbs = {
}; };
static struct intel_dp_mst_encoder * static struct intel_dp_mst_encoder *
intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum pipe pipe) intel_dp_create_fake_mst_encoder(struct intel_digital_port *dig_port, enum pipe pipe)
{ {
struct intel_dp_mst_encoder *intel_mst; struct intel_dp_mst_encoder *intel_mst;
struct intel_encoder *intel_encoder; struct intel_encoder *intel_encoder;
struct drm_device *dev = intel_dig_port->base.base.dev; struct drm_device *dev = dig_port->base.base.dev;
intel_mst = kzalloc(sizeof(*intel_mst), GFP_KERNEL); intel_mst = kzalloc(sizeof(*intel_mst), GFP_KERNEL);
...@@ -821,14 +821,14 @@ intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum ...@@ -821,14 +821,14 @@ intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum
intel_mst->pipe = pipe; intel_mst->pipe = pipe;
intel_encoder = &intel_mst->base; intel_encoder = &intel_mst->base;
intel_mst->primary = intel_dig_port; intel_mst->primary = dig_port;
drm_encoder_init(dev, &intel_encoder->base, &intel_dp_mst_enc_funcs, drm_encoder_init(dev, &intel_encoder->base, &intel_dp_mst_enc_funcs,
DRM_MODE_ENCODER_DPMST, "DP-MST %c", pipe_name(pipe)); DRM_MODE_ENCODER_DPMST, "DP-MST %c", pipe_name(pipe));
intel_encoder->type = INTEL_OUTPUT_DP_MST; intel_encoder->type = INTEL_OUTPUT_DP_MST;
intel_encoder->power_domain = intel_dig_port->base.power_domain; intel_encoder->power_domain = dig_port->base.power_domain;
intel_encoder->port = intel_dig_port->base.port; intel_encoder->port = dig_port->base.port;
intel_encoder->cloneable = 0; intel_encoder->cloneable = 0;
/* /*
* This is wrong, but broken userspace uses the intersection * This is wrong, but broken userspace uses the intersection
...@@ -855,29 +855,29 @@ intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum ...@@ -855,29 +855,29 @@ intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum
} }
static bool static bool
intel_dp_create_fake_mst_encoders(struct intel_digital_port *intel_dig_port) intel_dp_create_fake_mst_encoders(struct intel_digital_port *dig_port)
{ {
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
struct drm_i915_private *dev_priv = to_i915(intel_dig_port->base.base.dev); struct drm_i915_private *dev_priv = to_i915(dig_port->base.base.dev);
enum pipe pipe; enum pipe pipe;
for_each_pipe(dev_priv, pipe) for_each_pipe(dev_priv, pipe)
intel_dp->mst_encoders[pipe] = intel_dp_create_fake_mst_encoder(intel_dig_port, pipe); intel_dp->mst_encoders[pipe] = intel_dp_create_fake_mst_encoder(dig_port, pipe);
return true; return true;
} }
int int
intel_dp_mst_encoder_active_links(struct intel_digital_port *intel_dig_port) intel_dp_mst_encoder_active_links(struct intel_digital_port *dig_port)
{ {
return intel_dig_port->dp.active_mst_links; return dig_port->dp.active_mst_links;
} }
int int
intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_base_id) intel_dp_mst_encoder_init(struct intel_digital_port *dig_port, int conn_base_id)
{ {
struct drm_i915_private *i915 = to_i915(intel_dig_port->base.base.dev); struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
enum port port = intel_dig_port->base.port; enum port port = dig_port->base.port;
int ret; int ret;
if (!HAS_DP_MST(i915) || intel_dp_is_edp(intel_dp)) if (!HAS_DP_MST(i915) || intel_dp_is_edp(intel_dp))
...@@ -892,7 +892,7 @@ intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_ba ...@@ -892,7 +892,7 @@ intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_ba
intel_dp->mst_mgr.cbs = &mst_cbs; intel_dp->mst_mgr.cbs = &mst_cbs;
/* create encoders */ /* create encoders */
intel_dp_create_fake_mst_encoders(intel_dig_port); intel_dp_create_fake_mst_encoders(dig_port);
ret = drm_dp_mst_topology_mgr_init(&intel_dp->mst_mgr, &i915->drm, ret = drm_dp_mst_topology_mgr_init(&intel_dp->mst_mgr, &i915->drm,
&intel_dp->aux, 16, 3, conn_base_id); &intel_dp->aux, 16, 3, conn_base_id);
if (ret) if (ret)
...@@ -904,9 +904,9 @@ intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_ba ...@@ -904,9 +904,9 @@ intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_ba
} }
void void
intel_dp_mst_encoder_cleanup(struct intel_digital_port *intel_dig_port) intel_dp_mst_encoder_cleanup(struct intel_digital_port *dig_port)
{ {
struct intel_dp *intel_dp = &intel_dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
if (!intel_dp->can_mst) if (!intel_dp->can_mst)
return; return;
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
struct intel_digital_port; struct intel_digital_port;
struct intel_crtc_state; struct intel_crtc_state;
int intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_id); int intel_dp_mst_encoder_init(struct intel_digital_port *dig_port, int conn_id);
void intel_dp_mst_encoder_cleanup(struct intel_digital_port *intel_dig_port); void intel_dp_mst_encoder_cleanup(struct intel_digital_port *dig_port);
int intel_dp_mst_encoder_active_links(struct intel_digital_port *intel_dig_port); int intel_dp_mst_encoder_active_links(struct intel_digital_port *dig_port);
bool intel_dp_mst_is_master_trans(const struct intel_crtc_state *crtc_state); bool intel_dp_mst_is_master_trans(const struct intel_crtc_state *crtc_state);
bool intel_dp_mst_is_slave_trans(const struct intel_crtc_state *crtc_state); bool intel_dp_mst_is_slave_trans(const struct intel_crtc_state *crtc_state);
......
...@@ -650,9 +650,9 @@ void chv_set_phy_signal_level(struct intel_encoder *encoder, ...@@ -650,9 +650,9 @@ void chv_set_phy_signal_level(struct intel_encoder *encoder,
bool uniq_trans_scale) bool uniq_trans_scale)
{ {
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc);
enum dpio_channel ch = vlv_dport_to_channel(dport); enum dpio_channel ch = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = intel_crtc->pipe; enum pipe pipe = intel_crtc->pipe;
u32 val; u32 val;
int i; int i;
...@@ -746,7 +746,7 @@ void chv_data_lane_soft_reset(struct intel_encoder *encoder, ...@@ -746,7 +746,7 @@ void chv_data_lane_soft_reset(struct intel_encoder *encoder,
bool reset) bool reset)
{ {
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(encoder)); enum dpio_channel ch = vlv_dig_port_to_channel(enc_to_dig_port(encoder));
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
u32 val; u32 val;
...@@ -789,10 +789,10 @@ void chv_data_lane_soft_reset(struct intel_encoder *encoder, ...@@ -789,10 +789,10 @@ void chv_data_lane_soft_reset(struct intel_encoder *encoder,
void chv_phy_pre_pll_enable(struct intel_encoder *encoder, void chv_phy_pre_pll_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
enum dpio_channel ch = vlv_dport_to_channel(dport); enum dpio_channel ch = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
unsigned int lane_mask = unsigned int lane_mask =
intel_dp_unused_lane_mask(crtc_state->lane_count); intel_dp_unused_lane_mask(crtc_state->lane_count);
...@@ -803,7 +803,7 @@ void chv_phy_pre_pll_enable(struct intel_encoder *encoder, ...@@ -803,7 +803,7 @@ void chv_phy_pre_pll_enable(struct intel_encoder *encoder,
* Otherwise we can't even access the PLL. * Otherwise we can't even access the PLL.
*/ */
if (ch == DPIO_CH0 && pipe == PIPE_B) if (ch == DPIO_CH0 && pipe == PIPE_B)
dport->release_cl2_override = dig_port->release_cl2_override =
!chv_phy_powergate_ch(dev_priv, DPIO_PHY0, DPIO_CH1, true); !chv_phy_powergate_ch(dev_priv, DPIO_PHY0, DPIO_CH1, true);
chv_phy_powergate_lanes(encoder, true, lane_mask); chv_phy_powergate_lanes(encoder, true, lane_mask);
...@@ -870,10 +870,10 @@ void chv_phy_pre_encoder_enable(struct intel_encoder *encoder, ...@@ -870,10 +870,10 @@ void chv_phy_pre_encoder_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_dp *intel_dp = enc_to_intel_dp(encoder); struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
struct intel_digital_port *dport = dp_to_dig_port(intel_dp); struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
enum dpio_channel ch = vlv_dport_to_channel(dport); enum dpio_channel ch = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
int data, i, stagger; int data, i, stagger;
u32 val; u32 val;
...@@ -948,12 +948,12 @@ void chv_phy_pre_encoder_enable(struct intel_encoder *encoder, ...@@ -948,12 +948,12 @@ void chv_phy_pre_encoder_enable(struct intel_encoder *encoder,
void chv_phy_release_cl2_override(struct intel_encoder *encoder) void chv_phy_release_cl2_override(struct intel_encoder *encoder)
{ {
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
if (dport->release_cl2_override) { if (dig_port->release_cl2_override) {
chv_phy_powergate_ch(dev_priv, DPIO_PHY0, DPIO_CH1, false); chv_phy_powergate_ch(dev_priv, DPIO_PHY0, DPIO_CH1, false);
dport->release_cl2_override = false; dig_port->release_cl2_override = false;
} }
} }
...@@ -997,8 +997,8 @@ void vlv_set_phy_signal_level(struct intel_encoder *encoder, ...@@ -997,8 +997,8 @@ void vlv_set_phy_signal_level(struct intel_encoder *encoder,
{ {
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc);
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
enum dpio_channel port = vlv_dport_to_channel(dport); enum dpio_channel port = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = intel_crtc->pipe; enum pipe pipe = intel_crtc->pipe;
vlv_dpio_get(dev_priv); vlv_dpio_get(dev_priv);
...@@ -1022,10 +1022,10 @@ void vlv_set_phy_signal_level(struct intel_encoder *encoder, ...@@ -1022,10 +1022,10 @@ void vlv_set_phy_signal_level(struct intel_encoder *encoder,
void vlv_phy_pre_pll_enable(struct intel_encoder *encoder, void vlv_phy_pre_pll_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
enum dpio_channel port = vlv_dport_to_channel(dport); enum dpio_channel port = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
/* Program Tx lane resets to default */ /* Program Tx lane resets to default */
...@@ -1052,10 +1052,10 @@ void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder, ...@@ -1052,10 +1052,10 @@ void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_dp *intel_dp = enc_to_intel_dp(encoder); struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
struct intel_digital_port *dport = dp_to_dig_port(intel_dp); struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
enum dpio_channel port = vlv_dport_to_channel(dport); enum dpio_channel port = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
u32 val; u32 val;
...@@ -1081,10 +1081,10 @@ void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder, ...@@ -1081,10 +1081,10 @@ void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder,
void vlv_phy_reset_lanes(struct intel_encoder *encoder, void vlv_phy_reset_lanes(struct intel_encoder *encoder,
const struct intel_crtc_state *old_crtc_state) const struct intel_crtc_state *old_crtc_state)
{ {
struct intel_digital_port *dport = enc_to_dig_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc);
enum dpio_channel port = vlv_dport_to_channel(dport); enum dpio_channel port = vlv_dig_port_to_channel(dig_port);
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
vlv_dpio_get(dev_priv); vlv_dpio_get(dev_priv);
......
This diff is collapsed.
This diff is collapsed.
...@@ -25,7 +25,7 @@ enum port; ...@@ -25,7 +25,7 @@ enum port;
void intel_hdmi_init(struct drm_i915_private *dev_priv, i915_reg_t hdmi_reg, void intel_hdmi_init(struct drm_i915_private *dev_priv, i915_reg_t hdmi_reg,
enum port port); enum port port);
void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port, void intel_hdmi_init_connector(struct intel_digital_port *dig_port,
struct intel_connector *intel_connector); struct intel_connector *intel_connector);
struct intel_hdmi *enc_to_intel_hdmi(struct intel_encoder *encoder); struct intel_hdmi *enc_to_intel_hdmi(struct intel_encoder *encoder);
int intel_hdmi_compute_config(struct intel_encoder *encoder, int intel_hdmi_compute_config(struct intel_encoder *encoder,
...@@ -36,7 +36,7 @@ bool intel_hdmi_handle_sink_scrambling(struct intel_encoder *encoder, ...@@ -36,7 +36,7 @@ bool intel_hdmi_handle_sink_scrambling(struct intel_encoder *encoder,
bool high_tmds_clock_ratio, bool high_tmds_clock_ratio,
bool scrambling); bool scrambling);
void intel_dp_dual_mode_set_tmds_output(struct intel_hdmi *hdmi, bool enable); void intel_dp_dual_mode_set_tmds_output(struct intel_hdmi *hdmi, bool enable);
void intel_infoframe_init(struct intel_digital_port *intel_dig_port); void intel_infoframe_init(struct intel_digital_port *dig_port);
u32 intel_hdmi_infoframes_enabled(struct intel_encoder *encoder, u32 intel_hdmi_infoframes_enabled(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state); const struct intel_crtc_state *crtc_state);
u32 intel_hdmi_infoframe_enable(unsigned int type); u32 intel_hdmi_infoframe_enable(unsigned int type);
......
...@@ -550,11 +550,11 @@ void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon) ...@@ -550,11 +550,11 @@ void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon)
lspcon_wait_mode(lspcon, DRM_LSPCON_MODE_PCON); lspcon_wait_mode(lspcon, DRM_LSPCON_MODE_PCON);
} }
bool lspcon_init(struct intel_digital_port *intel_dig_port) bool lspcon_init(struct intel_digital_port *dig_port)
{ {
struct intel_dp *dp = &intel_dig_port->dp; struct intel_dp *dp = &dig_port->dp;
struct intel_lspcon *lspcon = &intel_dig_port->lspcon; struct intel_lspcon *lspcon = &dig_port->lspcon;
struct drm_device *dev = intel_dig_port->base.base.dev; struct drm_device *dev = dig_port->base.base.dev;
struct drm_i915_private *dev_priv = to_i915(dev); struct drm_i915_private *dev_priv = to_i915(dev);
struct drm_connector *connector = &dp->attached_connector->base; struct drm_connector *connector = &dp->attached_connector->base;
......
...@@ -15,7 +15,7 @@ struct intel_digital_port; ...@@ -15,7 +15,7 @@ struct intel_digital_port;
struct intel_encoder; struct intel_encoder;
struct intel_lspcon; struct intel_lspcon;
bool lspcon_init(struct intel_digital_port *intel_dig_port); bool lspcon_init(struct intel_digital_port *dig_port);
void lspcon_resume(struct intel_lspcon *lspcon); void lspcon_resume(struct intel_lspcon *lspcon);
void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon); void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon);
void lspcon_write_infoframe(struct intel_encoder *encoder, void lspcon_write_infoframe(struct intel_encoder *encoder,
......
...@@ -905,8 +905,8 @@ static void intel_psr_enable_locked(struct drm_i915_private *dev_priv, ...@@ -905,8 +905,8 @@ static void intel_psr_enable_locked(struct drm_i915_private *dev_priv,
const struct drm_connector_state *conn_state) const struct drm_connector_state *conn_state)
{ {
struct intel_dp *intel_dp = dev_priv->psr.dp; struct intel_dp *intel_dp = dev_priv->psr.dp;
struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
struct intel_encoder *encoder = &intel_dig_port->base; struct intel_encoder *encoder = &dig_port->base;
u32 val; u32 val;
drm_WARN_ON(&dev_priv->drm, dev_priv->psr.enabled); drm_WARN_ON(&dev_priv->drm, dev_priv->psr.enabled);
......
...@@ -1045,7 +1045,7 @@ static void intel_dsc_dp_pps_write(struct intel_encoder *encoder, ...@@ -1045,7 +1045,7 @@ static void intel_dsc_dp_pps_write(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_dp *intel_dp = enc_to_intel_dp(encoder); struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;
struct drm_dsc_pps_infoframe dp_dsc_pps_sdp; struct drm_dsc_pps_infoframe dp_dsc_pps_sdp;
...@@ -1055,9 +1055,9 @@ static void intel_dsc_dp_pps_write(struct intel_encoder *encoder, ...@@ -1055,9 +1055,9 @@ static void intel_dsc_dp_pps_write(struct intel_encoder *encoder,
/* Fill the PPS payload bytes as per DSC spec 1.2 Table 4-1 */ /* Fill the PPS payload bytes as per DSC spec 1.2 Table 4-1 */
drm_dsc_pps_payload_pack(&dp_dsc_pps_sdp.pps_payload, vdsc_cfg); drm_dsc_pps_payload_pack(&dp_dsc_pps_sdp.pps_payload, vdsc_cfg);
intel_dig_port->write_infoframe(encoder, crtc_state, dig_port->write_infoframe(encoder, crtc_state,
DP_SDP_PPS, &dp_dsc_pps_sdp, DP_SDP_PPS, &dp_dsc_pps_sdp,
sizeof(dp_dsc_pps_sdp)); sizeof(dp_dsc_pps_sdp));
} }
void intel_dsc_enable(struct intel_encoder *encoder, void intel_dsc_enable(struct intel_encoder *encoder,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment