[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170213083232.rfezcsr6tcbz7hiw@lukather>
Date: Mon, 13 Feb 2017 09:32:32 +0100
From: Maxime Ripard <maxime.ripard@...e-electrons.com>
To: Priit Laes <plaes@...es.org>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org, dri-devel@...ts.freedesktop.org,
Jonathan Liu <net147@...il.com>,
Thierry Reding <thierry.reding@...il.com>,
Russell King <linux@...linux.org.uk>,
Chen-Yu Tsai <wens@...e.org>,
Mark Rutland <mark.rutland@....com>,
Rob Herring <robh+dt@...nel.org>,
David Airlie <airlied@...ux.ie>,
Quentin Schulz <quentin.schulz@...e-electrons.com>,
linux-sunxi@...glegroups.com
Subject: Re: [PATCH 5/8] drm/sun4i: Add encoder type argument to
sun4i_tcon0_mode_set
On Sat, Feb 11, 2017 at 07:44:02PM +0200, Priit Laes wrote:
> Depending on the output type, we have to enable/disable some
> bits conditionally.
>
> Signed-off-by: Priit Laes <plaes@...es.org>
> ---
> drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +-
> drivers/gpu/drm/sun4i/sun4i_tcon.c | 3 ++-
> drivers/gpu/drm/sun4i/sun4i_tcon.h | 3 ++-
> 3 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c
> index f5e86fe..3d4eb05 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_rgb.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_rgb.c
> @@ -179,7 +179,7 @@ static void sun4i_rgb_encoder_mode_set(struct drm_encoder *encoder,
> struct sun4i_drv *drv = rgb->drv;
> struct sun4i_tcon *tcon = drv->tcon;
>
> - sun4i_tcon0_mode_set(tcon, mode);
> + sun4i_tcon0_mode_set(tcon, mode, DRM_MODE_ENCODER_DAC);
This is not the proper encoder type. You can just use encoder_type in
drm_encoder.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists