linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] video: exynos_dp: check DP PLL Lock status
Date: Mon, 23 Apr 2012 06:15:47 +0000	[thread overview]
Message-ID: <4F94F393.3000409@gmx.de> (raw)
In-Reply-To: <001401cd1230$7846abc0$68d40340$%han@samsung.com>

On 04/04/2012 06:59 AM, Jingoo Han wrote:
> DP PLL Lock status should be checked in order to  prevent unlocked PLL.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied.


Thanks,

Florian Tobias Schandinat

> ---
>  drivers/video/exynos/exynos_dp_reg.c |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/video/exynos/exynos_dp_reg.c b/drivers/video/exynos/exynos_dp_reg.c
> index d9c66fd..661d010 100644
> --- a/drivers/video/exynos/exynos_dp_reg.c
> +++ b/drivers/video/exynos/exynos_dp_reg.c
> @@ -285,6 +285,7 @@ void exynos_dp_set_analog_power_down(struct exynos_dp_device *dp,
>  void exynos_dp_init_analog_func(struct exynos_dp_device *dp)
>  {
>  	u32 reg;
> +	int timeout_loop = 0;
>  
>  	exynos_dp_set_analog_power_down(dp, POWER_ALL, 0);
>  
> @@ -296,9 +297,19 @@ void exynos_dp_init_analog_func(struct exynos_dp_device *dp)
>  	writel(reg, dp->reg_base + EXYNOS_DP_DEBUG_CTL);
>  
>  	/* Power up PLL */
> -	if (exynos_dp_get_pll_lock_status(dp) = PLL_UNLOCKED)
> +	if (exynos_dp_get_pll_lock_status(dp) = PLL_UNLOCKED) {
>  		exynos_dp_set_pll_power_down(dp, 0);
>  
> +		while (exynos_dp_get_pll_lock_status(dp) = PLL_UNLOCKED) {
> +			timeout_loop++;
> +			if (DP_TIMEOUT_LOOP_COUNT < timeout_loop) {
> +				dev_err(dp->dev, "failed to get pll lock status\n");
> +				return;
> +			}
> +			usleep_range(10, 20);
> +		}
> +	}
> +
>  	/* Enable Serdes FIFO function and Link symbol clock domain module */
>  	reg = readl(dp->reg_base + EXYNOS_DP_FUNC_EN_2);
>  	reg &= ~(SERDES_FIFO_FUNC_EN_N | LS_CLK_DOMAIN_FUNC_EN_N


      reply	other threads:[~2012-04-23  6:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04  6:59 [PATCH] video: exynos_dp: check DP PLL Lock status Jingoo Han
2012-04-23  6:15 ` Florian Tobias Schandinat [this message]

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=4F94F393.3000409@gmx.de \
    --to=florianschandinat@gmx.de \
    --cc=linux-fbdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).