From: Imre Deak <imre.deak@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
ville.syrjala@linux.intel.com
Subject: Re: [PATCH 4/8] drm/i915/mst: use primary_encoder in fake mst encoder creation
Date: Mon, 11 Nov 2024 18:04:15 +0200 [thread overview]
Message-ID: <ZzIq_443iIDYhhJ6@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <96be1ba5dcaf1a758f6b75527374b881bd01dd4a.1731011435.git.jani.nikula@intel.com>
On Thu, Nov 07, 2024 at 10:32:17PM +0200, Jani Nikula wrote:
> Use a primary_encoder local variable in
> intel_dp_create_fake_mst_encoder() for clarity.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp_mst.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 558cf13b977f..6d0b4a8f4849 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -1789,6 +1789,7 @@ static const struct drm_dp_mst_topology_cbs mst_cbs = {
> static struct intel_dp_mst_encoder *
> intel_dp_create_fake_mst_encoder(struct intel_digital_port *dig_port, enum pipe pipe)
> {
> + struct intel_encoder *primary_encoder = &dig_port->base;
> struct intel_dp_mst_encoder *intel_mst;
> struct intel_encoder *encoder;
> struct drm_device *dev = dig_port->base.base.dev;
> @@ -1806,8 +1807,8 @@ intel_dp_create_fake_mst_encoder(struct intel_digital_port *dig_port, enum pipe
> DRM_MODE_ENCODER_DPMST, "DP-MST %c", pipe_name(pipe));
>
> encoder->type = INTEL_OUTPUT_DP_MST;
> - encoder->power_domain = dig_port->base.power_domain;
> - encoder->port = dig_port->base.port;
> + encoder->power_domain = primary_encoder->power_domain;
> + encoder->port = primary_encoder->port;
> encoder->cloneable = 0;
> /*
> * This is wrong, but broken userspace uses the intersection
> --
> 2.39.5
>
next prev parent reply other threads:[~2024-11-11 16:03 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 20:32 [PATCH 0/8] drm/i915/mst: cleanups, renames, clarifications Jani Nikula
2024-11-07 20:32 ` [PATCH 1/8] drm/i915/mst: pass primary encoder to primary encoder hooks Jani Nikula
2024-11-11 15:38 ` Imre Deak
2024-11-07 20:32 ` [PATCH 2/8] drm/i915/mst: rename intel_encoder to encoder Jani Nikula
2024-11-11 15:41 ` Imre Deak
2024-11-07 20:32 ` [PATCH 3/8] drm/i915/mst: introduce to_primary_encoder() and to_primary_dp() Jani Nikula
2024-11-11 16:01 ` Imre Deak
2024-11-07 20:32 ` [PATCH 4/8] drm/i915/mst: use primary_encoder in fake mst encoder creation Jani Nikula
2024-11-11 16:04 ` Imre Deak [this message]
2024-11-07 20:32 ` [PATCH 5/8] drm/i915/display: make CHICKEN_TRANS() display version aware Jani Nikula
2024-11-08 9:31 ` [PATCH v2] " Jani Nikula
2024-11-11 16:14 ` Imre Deak
2024-11-07 20:32 ` [PATCH 6/8] drm/i915/mst: convert to struct intel_display Jani Nikula
2024-11-11 16:22 ` Imre Deak
2024-11-07 20:32 ` [PATCH 7/8] drm/i915/mst: change naming from fake encoders to MST stream encoders Jani Nikula
2024-11-11 16:58 ` Imre Deak
2024-11-11 17:17 ` Imre Deak
2024-11-11 17:42 ` Jani Nikula
2024-11-07 20:32 ` [PATCH 8/8] drm/i915/dp: add comments about hooks called from " Jani Nikula
2024-11-07 20:46 ` Jani Nikula
2024-11-11 16:43 ` Imre Deak
2024-11-07 20:39 ` ✓ CI.Patch_applied: success for drm/i915/mst: cleanups, renames, clarifications Patchwork
2024-11-07 20:39 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-07 20:40 ` ✓ CI.KUnit: success " Patchwork
2024-11-07 20:52 ` ✓ CI.Build: " Patchwork
2024-11-07 20:54 ` ✓ CI.Hooks: " Patchwork
2024-11-07 20:56 ` ✗ CI.checksparse: warning " Patchwork
2024-11-07 21:02 ` ✗ Fi.CI.CHECKPATCH: " Patchwork
2024-11-07 21:02 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-07 21:20 ` ✓ CI.BAT: success " Patchwork
2024-11-07 21:21 ` ✓ Fi.CI.BAT: " Patchwork
2024-11-07 23:11 ` ✓ Fi.CI.IGT: " Patchwork
2024-11-08 9:51 ` ✓ CI.Patch_applied: success for drm/i915/mst: cleanups, renames, clarifications (rev2) Patchwork
2024-11-08 9:52 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-08 9:53 ` ✓ CI.KUnit: success " Patchwork
2024-11-08 10:04 ` ✓ CI.Build: " Patchwork
2024-11-08 10:07 ` ✓ CI.Hooks: " Patchwork
2024-11-08 10:07 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-11-08 10:07 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-08 10:08 ` ✗ CI.checksparse: " Patchwork
2024-11-08 10:23 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-11-08 10:32 ` ✓ CI.BAT: success " Patchwork
2024-11-09 3:47 ` ✗ CI.FULL: failure for drm/i915/mst: cleanups, renames, clarifications Patchwork
2024-11-09 14:29 ` ✗ CI.FULL: failure for drm/i915/mst: cleanups, renames, clarifications (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzIq_443iIDYhhJ6@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.