All of lore.kernel.org
 help / color / mirror / Atom feed
From: Inki Dae <inki.dae@samsung.com>
To: Shirish S <s.shirish@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>,
	DRI mailing list <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/exynos: restore core HDMI settings
Date: Wed, 19 Feb 2014 19:32:11 +0900	[thread overview]
Message-ID: <CAAQKjZPrqbcPAC8QRSLd0Pn4=o8gzDr1fKHq3U0uS6sK2bJ1gQ@mail.gmail.com> (raw)
In-Reply-To: <1392363297-15486-1-git-send-email-s.shirish@samsung.com>

2014-02-14 16:34 GMT+09:00 Shirish S <s.shirish@samsung.com>:
> In DVI mode the video preamble and Guard band should
> be disabled whereas it should be applied in HDMI mode,
> the re-applying of preamble and guard band was missing,
> which resulted in display failures when switched to HDMI
> mode from DVI mode.
> This patch ensures the setting is applied in HDMI mode.
>
> Signed-off-by: Shirish S <s.shirish@samsung.com>
> ---
>  drivers/gpu/drm/exynos/exynos_hdmi.c |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
> index a0e10ae..a102076 100644
> --- a/drivers/gpu/drm/exynos/exynos_hdmi.c
> +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
> @@ -994,6 +994,8 @@ static void hdmi_conf_init(struct hdmi_context *hdata)
>         /* choose HDMI mode */
>         hdmi_reg_writemask(hdata, HDMI_MODE_SEL,
>                 HDMI_MODE_HDMI_EN, HDMI_MODE_MASK);
> +       /* Apply Video preable and Guard band in HDMI mode only */
> +       hdmi_reg_writeb(hdata, HDMI_CON_2, 0);

Isn't hdmi_conf_init function always called after hdmi core is reset?
And HDMI_CON_2 would have 0 as reset value. It seems that your code
isn't meaningful.

If you want to set HDMI_CON_2 to HDMI mode in there then it would
better to use meaningful macro, HDMI_VID_PREAMBLE_DIS and
HDMI_GUARD_BAND_DIS.

Thanks,
Inki Dae

>         /* disable bluescreen */
>         hdmi_reg_writemask(hdata, HDMI_CON_0, 0, HDMI_BLUE_SCR_EN);
>
> --
> 1.7.9.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2014-02-19 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  7:34 [PATCH] drm/exynos: restore core HDMI settings Shirish S
2014-02-19 10:32 ` Inki Dae [this message]
2014-05-13  4:44   ` Shirish S
2014-05-16  6:38     ` Inki Dae

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='CAAQKjZPrqbcPAC8QRSLd0Pn4=o8gzDr1fKHq3U0uS6sK2bJ1gQ@mail.gmail.com' \
    --to=inki.dae@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=s.shirish@samsung.com \
    --cc=sw0312.kim@samsung.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.