All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Singh, Gaurav K" <gaurav.k.singh@intel.com>
To: Jani Nikula <jani.nikula@intel.com>,
	intel-gfx@lists.freedesktop.org, shobhit.kumar@linux.intel.com
Subject: Re: [PATCH 2/3] drm/i915/dsi: add ports to intel_dsi to describe the ports being driven
Date: Thu, 27 Nov 2014 12:54:10 +0530	[thread overview]
Message-ID: <5476D19A.3090608@intel.com> (raw)
In-Reply-To: <0525934e3794144faf938f5a28c86da9f28508b4.1415976065.git.jani.nikula@intel.com>


On 11/14/2014 8:24 PM, Jani Nikula wrote:
> Later on this can include multiple ports (e.g. (1 << PORT_A) | (1 <<
> PORT_C)) to describe dual link DSI.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Gaurav K Singh <gaurav.k.singh@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_dsi.c | 7 +++++--
>   drivers/gpu/drm/i915/intel_dsi.h | 3 +++
>   2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
> index 35842a6687d8..259cb4ab2067 100644
> --- a/drivers/gpu/drm/i915/intel_dsi.c
> +++ b/drivers/gpu/drm/i915/intel_dsi.c
> @@ -749,10 +749,13 @@ void intel_dsi_init(struct drm_device *dev)
>   	intel_connector->unregister = intel_connector_unregister;
>   
>   	/* Pipe A maps to MIPI DSI port A, pipe B maps to MIPI DSI port C */
> -	if (dev_priv->vbt.dsi.port == DVO_PORT_MIPIA)
> +	if (dev_priv->vbt.dsi.port == DVO_PORT_MIPIA) {
>   		intel_encoder->crtc_mask = (1 << PIPE_A);
> -	else if (dev_priv->vbt.dsi.port == DVO_PORT_MIPIC)
> +		intel_dsi->ports = (1 << PORT_A);
> +	} else if (dev_priv->vbt.dsi.port == DVO_PORT_MIPIC) {
>   		intel_encoder->crtc_mask = (1 << PIPE_B);
> +		intel_dsi->ports = (1 << PORT_C);
> +	}
>   
>   	for (i = 0; i < ARRAY_SIZE(intel_dsi_devices); i++) {
>   		dsi = &intel_dsi_devices[i];
> diff --git a/drivers/gpu/drm/i915/intel_dsi.h b/drivers/gpu/drm/i915/intel_dsi.h
> index 97a6f621774f..7f5d0280b9d7 100644
> --- a/drivers/gpu/drm/i915/intel_dsi.h
> +++ b/drivers/gpu/drm/i915/intel_dsi.h
> @@ -78,6 +78,9 @@ struct intel_dsi {
>   
>   	struct intel_connector *attached_connector;
>   
> +	/* bit mask of ports being driven */
> +	u16 ports;
> +
>   	/* if true, use HS mode, otherwise LP */
>   	bool hs;
>   
This patch looks good.

With regards,
Gaurav

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2014-11-27  7:24 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29  8:42 [PATCH 00/11] BYT DSI Dual Link Support Gaurav K Singh
2014-10-29  8:42 ` [PATCH 01/11] drm/i915: New functions added for enabling & disabling MIPI Port Ctrl reg Gaurav K Singh
2014-10-29  8:42 ` [PATCH 02/11] drm/i915: MIPI Sequence to be sent to the DSI Controller based on the port no from VBT Gaurav K Singh
2014-10-29  8:42 ` [PATCH 03/11] drm/i915: Cleanup in i915_reg.h for all MIPI regs Gaurav K Singh
2014-10-29  8:42 ` [PATCH 04/11] drm/i915: Cleanup patch for " Gaurav K Singh
2014-10-29  8:42 ` [PATCH 05/11] drm/i915: Add support for port enable/disable for dual link configuration Gaurav K Singh
2014-10-29  8:42 ` [PATCH 06/11] drm/i915: Pixel Clock changes for DSI dual link Gaurav K Singh
2014-10-29  8:42 ` [PATCH 07/11] drm/i915: Dual link needs Shutdown and Turn on packet for both ports Gaurav K Singh
2014-10-29  8:42 ` [PATCH 08/11] drm/i915: Enable DSI PLL for both DSI0 and DSI1 in case of dual link Gaurav K Singh
2014-10-29  8:42 ` [PATCH 09/11] drm/i915: MIPI Timings related changes for " Gaurav K Singh
2014-10-29  8:42 ` [PATCH 10/11] drm/i915: Update the DSI disable path to support dual link panel disabling Gaurav K Singh
2014-10-29  8:42 ` [PATCH 11/11] drm/i915: Update the DSI enable path to support dual link panel enabling Gaurav K Singh
2014-11-13 14:53 ` [PATCH 00/11] BYT DSI Dual Link Support Kumar, Shobhit
2014-11-14 14:54   ` [PATCH 0/3] " Jani Nikula
2014-11-14 14:54     ` [PATCH 1/3] drm/i915/dsi: clean up MIPI DSI pipe vs. port usage Jani Nikula
2014-11-26 17:20       ` Singh, Gaurav K
2014-11-26 18:08         ` Daniel Vetter
2014-11-26 18:43           ` Singh, Gaurav K
2014-11-27  7:28       ` Singh, Gaurav K
2014-11-14 14:54     ` [PATCH 2/3] drm/i915/dsi: add ports to intel_dsi to describe the ports being driven Jani Nikula
2014-11-27  7:24       ` Singh, Gaurav K [this message]
2014-11-14 14:54     ` [PATCH 3/3] drm/i915/dsi: an example how to handle dual link for each port Jani Nikula
2014-11-15  1:15       ` [PATCH 3/3] drm/i915/dsi: an example how to handle dual shuang.he
2014-11-24  8:10     ` [PATCH 0/3] BYT DSI Dual Link Support Singh, Gaurav K
2014-11-24  9:01       ` Jani Nikula
2014-11-26 17:21         ` Singh, Gaurav K
2014-11-27  7:50         ` Singh, Gaurav K
2014-11-28 17:19           ` Daniel Vetter

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=5476D19A.3090608@intel.com \
    --to=gaurav.k.singh@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=shobhit.kumar@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.