All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liviu Dudau <liviu.dudau@arm.com>
To: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Cc: airlied@linux.ie, dri-devel@lists.freedesktop.org,
	malidp@foss.arm.com, nd@arm.com
Subject: Re: [PATCH v3] drm: mali-dp: Set encoder possible_clones
Date: Mon, 16 Jul 2018 12:15:07 +0100	[thread overview]
Message-ID: <20180716111507.GX15340@e110455-lin.cambridge.arm.com> (raw)
In-Reply-To: <1531734973-8804-1-git-send-email-alexandru-cosmin.gheorghe@arm.com>

On Mon, Jul 16, 2018 at 10:56:13AM +0100, Alexandru Gheorghe wrote:
> Set possible_clones field to report that the writeback connector and
> the one driving the display could be enabled at the same time.
> 
> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>

Acked-by: Liviu Dudau <liviu.dudau@arm.com>

> 
> Changes since v2:
>   - Use proper style for multi-line comments.
> ---
>  drivers/gpu/drm/arm/malidp_drv.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c
> index 5b72605..4169a72 100644
> --- a/drivers/gpu/drm/arm/malidp_drv.c
> +++ b/drivers/gpu/drm/arm/malidp_drv.c
> @@ -616,6 +616,7 @@ static int malidp_bind(struct device *dev)
>  	struct malidp_hw_device *hwdev;
>  	struct platform_device *pdev = to_platform_device(dev);
>  	struct of_device_id const *dev_id;
> +	struct drm_encoder *encoder;
>  	/* number of lines for the R, G and B output */
>  	u8 output_width[MAX_OUTPUT_CHANNELS];
>  	int ret = 0, i;
> @@ -737,6 +738,16 @@ static int malidp_bind(struct device *dev)
>  		goto bind_fail;
>  	}
>  
> +	/*
> +	 * We expect to have a maximum of two encoders one for the actual
> +	 * display and a virtual one for the writeback connector
> +	 */
> +	WARN_ON(drm->mode_config.num_encoder > 2);
> +	list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) {
> +		encoder->possible_clones =
> +				(1 << drm->mode_config.num_encoder) -  1;
> +	}
> +
>  	ret = malidp_irq_init(pdev);
>  	if (ret < 0)
>  		goto irq_init_fail;
> -- 
> 2.7.4
> 

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-07-16 11:15 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-13 15:10 [PATCH v2 1/3] drm: writeback: Fix doc that says connector should be disconnected Alexandru Gheorghe
2018-07-13 15:10 ` [PATCH v2 2/3] drm: mali-dp: Report writeback connector as connected Alexandru Gheorghe
2018-07-13 15:37   ` Sean Paul
2018-07-16 11:19   ` Liviu Dudau
2018-07-13 15:11 ` [PATCH v2 3/3] drm: mali-dp: Set encoder possible_clones Alexandru Gheorghe
2018-07-13 15:40   ` Sean Paul
2018-07-13 15:47     ` Sean Paul
2018-07-13 15:55       ` Alexandru-Cosmin Gheorghe
2018-07-13 16:14         ` Sean Paul
2018-07-16  9:56           ` [PATCH v3] " Alexandru Gheorghe
2018-07-16 11:15             ` Liviu Dudau [this message]
2018-07-20 21:14           ` [PATCH 00/10] Add helper for plane reset Alexandru Gheorghe
2018-07-20 21:14             ` Alexandru Gheorghe
2018-07-20 21:15             ` [PATCH 01/10] drm/atomic: Add __drm_atomic_helper_plane_reset Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-23  9:37               ` Ayan Halder
2018-07-23  9:37                 ` Ayan Halder
2018-07-24  7:48               ` Philipp Zabel
2018-07-24  7:48                 ` Philipp Zabel
2018-07-24  8:14                 ` Alexandru-Cosmin Gheorghe
2018-07-24  8:14                   ` Alexandru-Cosmin Gheorghe
2018-07-24  8:16                   ` Boris Brezillon
2018-07-24  8:16                     ` Boris Brezillon
2018-07-24  9:28                     ` Alexandru-Cosmin Gheorghe
2018-07-24  9:28                       ` Alexandru-Cosmin Gheorghe
2018-07-20 21:15             ` [PATCH 02/10] drm/amd/display: Use __drm_atomic_helper_plane_reset instead of copying the logic Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-20 21:15             ` [PATCH 03/10] drm: mali-dp: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-23  9:35               ` Ayan Halder
2018-07-23  9:35                 ` Ayan Halder
2018-07-24  8:26               ` Liviu Dudau
2018-07-24  8:26                 ` Liviu Dudau
2018-07-20 21:15             ` [PATCH 04/10] drm: atmel-hlcdc: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-21  6:12               ` Boris Brezillon
2018-07-21  6:12                 ` Boris Brezillon
2018-07-20 21:15             ` [PATCH 05/10] drm/exynos: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-20 21:15             ` [PATCH 06/10] drm/imx: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-24  7:49               ` Philipp Zabel
2018-07-24  7:49                 ` Philipp Zabel
2018-07-24  7:51                 ` Philipp Zabel
2018-07-24  7:51                   ` Philipp Zabel
2018-07-20 21:15             ` [PATCH 07/10] drm: rcar-du: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-20 21:15             ` [PATCH 08/10] drm/sun4i: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-20 21:15             ` [PATCH 09/10] drm/vc4: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-24  6:57               ` Maxime Ripard
2018-07-24  6:57                 ` Maxime Ripard
2018-07-24  8:11                 ` Alexandru-Cosmin Gheorghe
2018-07-24  8:11                   ` Alexandru-Cosmin Gheorghe
2018-07-24 12:54                   ` Maxime Ripard
2018-07-24 12:54                     ` Maxime Ripard
2018-07-20 21:15             ` [PATCH 10/10] drm/vmwgfx: " Alexandru Gheorghe
2018-07-20 21:15               ` Alexandru Gheorghe
2018-07-23 17:16               ` Deepak Singh Rawat
2018-07-23 17:16                 ` Deepak Singh Rawat
2018-07-23 18:02               ` Sinclair Yeh
2018-07-23 18:02                 ` Sinclair Yeh
2018-07-24 15:31             ` [PATCH 00/10] Add helper for plane reset Harry Wentland
2018-07-24 15:31               ` Harry Wentland
2018-07-13 15:37 ` [PATCH v2 1/3] drm: writeback: Fix doc that says connector should be disconnected Sean Paul
2018-07-16 11:18 ` Liviu Dudau

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=20180716111507.GX15340@e110455-lin.cambridge.arm.com \
    --to=liviu.dudau@arm.com \
    --cc=airlied@linux.ie \
    --cc=alexandru-cosmin.gheorghe@arm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=malidp@foss.arm.com \
    --cc=nd@arm.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.