From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: hdegoede@redhat.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/7] drm/i915/dsi: rename intel_dsi_pre_disable to intel_dsi_disable
Date: Mon, 6 Mar 2017 16:41:05 +0200 [thread overview]
Message-ID: <20170306144105.GU31595@intel.com> (raw)
In-Reply-To: <fd2afa6ddaaf9c33f28f914691595d0b5a8bf588.1488810382.git.jani.nikula@intel.com>
On Mon, Mar 06, 2017 at 04:31:28PM +0200, Jani Nikula wrote:
> The hook names reflect more the phase in the mode set sequence the hooks
> are called in than what they actually do in terms of the specific
> encoder. Stick to that scheme, and rename intel_dsi_pre_disable to
> intel_dsi_disable. Unify the comments around this while at it. No
> functional changes.
>
> Cc: Madhav Chauhan <madhav.chauhan@intel.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Cc: Bob Paauwe <bob.j.paauwe@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/intel_dsi.c | 21 ++++++++++++---------
> 1 file changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
> index 189b91478f8e..ebe1f55b20d6 100644
> --- a/drivers/gpu/drm/i915/intel_dsi.c
> +++ b/drivers/gpu/drm/i915/intel_dsi.c
> @@ -840,21 +840,24 @@ static void intel_dsi_pre_enable(struct intel_encoder *encoder,
> intel_dsi_vbt_exec_sequence(intel_dsi, MIPI_SEQ_BACKLIGHT_ON);
> }
>
> +/*
> + * For DSI port enable has to be done before pipe and plane enable, so port
> + * enable is done in pre_enable phase unlike other encoders.
The "unlike other encoders" part is nonsense.
> + */
> static void intel_dsi_enable_nop(struct intel_encoder *encoder,
> struct intel_crtc_state *pipe_config,
> struct drm_connector_state *conn_state)
> {
> DRM_DEBUG_KMS("\n");
> -
> - /* for DSI port enable has to be done before pipe
> - * and plane enable, so port enable is done in
> - * pre_enable phase itself unlike other encoders
> - */
> }
>
> -static void intel_dsi_pre_disable(struct intel_encoder *encoder,
> - struct intel_crtc_state *old_crtc_state,
> - struct drm_connector_state *old_conn_state)
> +/*
> + * For DSI port disable has to be done after pipe and plane disable, so port
> + * disable is done in post_disable phase unlike other encoders.
> + */
> +static void intel_dsi_disable(struct intel_encoder *encoder,
> + struct intel_crtc_state *old_crtc_state,
> + struct drm_connector_state *old_conn_state)
> {
> struct drm_device *dev = encoder->base.dev;
> struct drm_i915_private *dev_priv = dev->dev_private;
> @@ -1730,7 +1733,7 @@ void intel_dsi_init(struct drm_i915_private *dev_priv)
> intel_encoder->compute_config = intel_dsi_compute_config;
> intel_encoder->pre_enable = intel_dsi_pre_enable;
> intel_encoder->enable = intel_dsi_enable_nop;
> - intel_encoder->disable = intel_dsi_pre_disable;
> + intel_encoder->disable = intel_dsi_disable;
> intel_encoder->post_disable = intel_dsi_post_disable;
> intel_encoder->get_hw_state = intel_dsi_get_hw_state;
> intel_encoder->get_config = intel_dsi_get_config;
> --
> 2.1.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-03-06 14:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 14:31 [PATCH 0/7] drm/i915/dsi: stop using drm_panel, refactor Jani Nikula
2017-03-06 14:31 ` [PATCH 1/7] drm/i915/dsi: remove support for more than one panel driver Jani Nikula
2017-03-06 14:31 ` [PATCH 2/7] drm/i915/dsi: call vbt_panel_get_modes directly instead of via drm_panel Jani Nikula
2017-03-06 14:31 ` [PATCH 3/7] drm/i915/dsi: stop using the drm_panel framework completely Jani Nikula
2017-03-06 14:31 ` [PATCH 4/7] drm/i915/dsi: rename intel_dsi_exec_vbt_sequence to intel_dsi_vbt_exec_sequence Jani Nikula
2017-03-06 17:56 ` Daniel Vetter
2017-03-06 14:31 ` [PATCH 5/7] drm/i915/dsi: rename intel_dsi_pre_disable to intel_dsi_disable Jani Nikula
2017-03-06 14:41 ` Ville Syrjälä [this message]
2017-03-06 16:00 ` Jani Nikula
2017-03-06 17:58 ` Daniel Vetter
2017-03-07 8:18 ` Jani Nikula
2017-03-07 9:24 ` [PATCH v2] " Jani Nikula
2017-03-06 14:31 ` [PATCH 6/7] drm/i915/dsi: rename intel_dsi_panel_vbt.c to intel_dsi_vbt.c Jani Nikula
2017-03-06 14:31 ` [PATCH 7/7] drm/i915/dsi: arrange intel_dsi.h according to relevant files Jani Nikula
2017-03-06 15:29 ` [PATCH 0/7] drm/i915/dsi: stop using drm_panel, refactor Hans de Goede
2017-03-06 16:47 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-03-06 19:26 ` [PATCH 0/7] " Bob Paauwe
2017-03-07 9:47 ` ✓ Fi.CI.BAT: success for drm/i915/dsi: stop using drm_panel, refactor (rev2) Patchwork
2017-03-07 13:24 ` [PATCH 0/7] drm/i915/dsi: stop using drm_panel, refactor Jani Nikula
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=20170306144105.GU31595@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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.