From: Jani Nikula <jani.nikula@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/5] drm/i915/crt: clean up encoder hook assignment
Date: Fri, 06 Oct 2017 11:40:59 +0300 [thread overview]
Message-ID: <87efqg4qjo.fsf@intel.com> (raw)
In-Reply-To: <20171005152208.rautgt6y2dg5zp24@phenom.ffwll.local>
On Thu, 05 Oct 2017, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Thu, Oct 05, 2017 at 01:52:14PM +0300, Jani Nikula wrote:
>> Only assign the hooks once instead of overwriting for DDI.
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Thanks for the review, pushed patches 1-5 to dinq.
BR,
Jani.
>
>> ---
>> drivers/gpu/drm/i915/intel_crt.c | 15 ++++++++-------
>> 1 file changed, 8 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
>> index 2abe556ccaf5..668e8c3e791d 100644
>> --- a/drivers/gpu/drm/i915/intel_crt.c
>> +++ b/drivers/gpu/drm/i915/intel_crt.c
>> @@ -955,16 +955,11 @@ void intel_crt_init(struct drm_i915_private *dev_priv)
>>
>> crt->base.power_domain = POWER_DOMAIN_PORT_CRT;
>>
>> - crt->base.compute_config = intel_crt_compute_config;
>> - if (HAS_PCH_SPLIT(dev_priv)) {
>> - crt->base.disable = pch_disable_crt;
>> - crt->base.post_disable = pch_post_disable_crt;
>> - } else {
>> - crt->base.disable = intel_disable_crt;
>> - }
>> if (I915_HAS_HOTPLUG(dev_priv) &&
>> !dmi_check_system(intel_spurious_crt_detect))
>> crt->base.hpd_pin = HPD_CRT;
>> +
>> + crt->base.compute_config = intel_crt_compute_config;
>> if (HAS_DDI(dev_priv)) {
>> crt->base.port = PORT_E;
>> crt->base.get_config = hsw_crt_get_config;
>> @@ -975,6 +970,12 @@ void intel_crt_init(struct drm_i915_private *dev_priv)
>> crt->base.disable = hsw_disable_crt;
>> crt->base.post_disable = hsw_post_disable_crt;
>> } else {
>> + if (HAS_PCH_SPLIT(dev_priv)) {
>> + crt->base.disable = pch_disable_crt;
>> + crt->base.post_disable = pch_post_disable_crt;
>> + } else {
>> + crt->base.disable = intel_disable_crt;
>> + }
>> crt->base.port = PORT_NONE;
>> crt->base.get_config = intel_crt_get_config;
>> crt->base.get_hw_state = intel_crt_get_hw_state;
>> --
>> 2.11.0
>>
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-10-06 8:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 10:52 [PATCH 0/5] drm/i915: push more stuff down to encoders on crtc enable/disable Jani Nikula
2017-10-05 10:52 ` [PATCH 1/5] drm/i915: push DDI CRT underrun reporting on enable to encoder Jani Nikula
2017-10-05 10:52 ` [PATCH 2/5] drm/i915: push DDI CRT underrun reporting on disable " Jani Nikula
2017-10-05 10:52 ` [PATCH 3/5] drm/i915: push DDI and DSI underrun reporting on enable " Jani Nikula
2017-10-05 15:21 ` Daniel Vetter
2017-10-05 10:52 ` [PATCH 4/5] drm/i915: push DDI FDI link training on enable to CRT encoder Jani Nikula
2017-10-05 10:52 ` [PATCH 5/5] drm/i915/crt: clean up encoder hook assignment Jani Nikula
2017-10-05 15:22 ` Daniel Vetter
2017-10-06 8:40 ` Jani Nikula [this message]
2017-10-05 11:18 ` ✓ Fi.CI.BAT: success for drm/i915: push more stuff down to encoders on crtc enable/disable (rev2) Patchwork
2017-10-05 11:50 ` [RFC PATCH] drm/i915: push shared dpll enable to encoders on DDI platforms Jani Nikula
2017-10-05 15:24 ` Daniel Vetter
2017-10-06 8:07 ` Daniel Vetter
2017-10-06 8:09 ` Daniel Vetter
2017-10-12 13:50 ` Jani Nikula
2017-10-05 12:23 ` ✓ Fi.CI.IGT: success for drm/i915: push shared dpll enable to encoders on DDI platforms (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=87efqg4qjo.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox