[Intel-gfx] [PATCH] drm/i915/cnl: Fix LSPCON support.
Sharma, Shashank
shashank.sharma at intel.com
Wed Aug 16 10:47:32 UTC 2017
There is probably one more place where we want this change, but I will
try to cover that in my 4:2:0 for lspcon patch set.
Meanwhile, please feel free to use:
Reviewed-by: Shashank Sharma <shashank.sharma at intel.com>
Regards
Shashank
On 8/16/2017 8:34 AM, Rodrigo Vivi wrote:
> When LSPCON support was extended to CNL
> one part was missed on lspcon_init.
>
> So, instead of adding check per platform on lspcon_init
> let's use HAS_LSPCON that is already there for that
> purpose.
>
> Fixes: ff15947e0f02 ("drm/i915/cnl: LSPCON support is gen9+")
> Cc: Shashank Sharma <shashank.sharma at intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
> drivers/gpu/drm/i915/intel_lspcon.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_lspcon.c b/drivers/gpu/drm/i915/intel_lspcon.c
> index 5abef482eacf..beb9baaf2f2e 100644
> --- a/drivers/gpu/drm/i915/intel_lspcon.c
> +++ b/drivers/gpu/drm/i915/intel_lspcon.c
> @@ -210,8 +210,8 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)
> struct drm_device *dev = intel_dig_port->base.base.dev;
> struct drm_i915_private *dev_priv = to_i915(dev);
>
> - if (!IS_GEN9(dev_priv)) {
> - DRM_ERROR("LSPCON is supported on GEN9 only\n");
> + if (!HAS_LSPCON(dev_priv)) {
> + DRM_ERROR("LSPCON is not supported on this platform\n");
> return false;
> }
>
More information about the Intel-gfx
mailing list