Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Andrzej Hajda <a.hajda@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Kukjin Kim <kgene@kernel.org>, Inki Dae <inki.dae@samsung.com>,
	Tomasz Figa <tomasz.figa@gmail.com>,
	Tobias Jakobi <Liquid.Acid@gmx.net>,
	Daniel Drake <drake@endlessm.com>
Subject: Re: [PATCH RESEND 1/7] clk: samsung: exynos4: set parent of sclk_hdmiphy to hdmi
Date: Mon, 24 Nov 2014 11:42:55 +0100	[thread overview]
Message-ID: <54730BAF.7000907@samsung.com> (raw)
In-Reply-To: <1416814256-24288-2-git-send-email-a.hajda@samsung.com>

On 24/11/14 08:30, Andrzej Hajda wrote:
> sclk_hdmiphy clock is generated by HDMI-PHY and depends on hdmi gate clock.
> The patch models this dependency using parent/child hirerarchy.
> 
> The patch fixes issue with system hangs during mixer device access, mixer uses
> sclk_hdmiphy descendant clock.
> 
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>

Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

I guess it can be merged as a bug fix, however it's not an ideal
solution. The proper approach would be probably to have the HDMIPHY
driver exposing a clk object. Unfortunately there seems to be
no sufficiently documented hardware control sequences available
for such a fine-grained hardware control.

> ---
>  drivers/clk/samsung/clk-exynos4.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c
> index 940f028..88e8c6b 100644
> --- a/drivers/clk/samsung/clk-exynos4.c
> +++ b/drivers/clk/samsung/clk-exynos4.c
> @@ -505,7 +505,7 @@ static struct samsung_fixed_rate_clock exynos4_fixed_rate_ext_clks[] __initdata
>  /* fixed rate clocks generated inside the soc */
>  static struct samsung_fixed_rate_clock exynos4_fixed_rate_clks[] __initdata = {
>  	FRATE(0, "sclk_hdmi24m", NULL, CLK_IS_ROOT, 24000000),
> -	FRATE(CLK_SCLK_HDMIPHY, "sclk_hdmiphy", NULL, CLK_IS_ROOT, 27000000),
> +	FRATE(CLK_SCLK_HDMIPHY, "sclk_hdmiphy", "hdmi", 0, 27000000),
>  	FRATE(0, "sclk_usbphy0", NULL, CLK_IS_ROOT, 48000000),
>  };


-- 
Regards,
Sylwester

  reply	other threads:[~2014-11-24 10:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-24  7:30 [PATCH RESEND 0/7] Enable HDMI support on Exynos platforms Andrzej Hajda
2014-11-24  7:30 ` [PATCH RESEND 1/7] clk: samsung: exynos4: set parent of sclk_hdmiphy to hdmi Andrzej Hajda
2014-11-24 10:42   ` Sylwester Nawrocki [this message]
2014-11-24  7:30 ` [PATCH RESEND 2/7] ARM: Exynos: add support for sub-power domains Andrzej Hajda
2014-11-26 10:30   ` [RESEND,2/7] " Pankaj Dubey
2014-12-03 12:33   ` [PATCH v2 2/7] " Marek Szyprowski
2014-12-03 12:36     ` Geert Uytterhoeven
2014-12-03 12:47       ` Marek Szyprowski
2014-12-03 19:57         ` Kevin Hilman
2014-12-04  3:45     ` amit daniel kachhap
2015-01-02 10:20       ` Marek Szyprowski
2014-11-24  7:30 ` [PATCH RESEND 3/7] ARM: dts: exynos4: add hdmi related nodes Andrzej Hajda
2014-11-24  7:30 ` [PATCH RESEND 4/7] ARM: dts: exynos4: add dependency between TV and LCD0 power domains Andrzej Hajda
2014-12-03 12:34   ` [PATCH v2 " Marek Szyprowski
2014-11-24  7:30 ` [PATCH RESEND 5/7] ARM: dts: exynos4412-odroid: enable hdmi support Andrzej Hajda
2014-11-24  7:36 ` [PATCH RESEND 6/7] ARM: dts: exynos4210-universal_c210: " Andrzej Hajda
2014-11-24  7:36 ` [PATCH RESEND 7/7] ARM: dts: exynos5250: add display power domain Andrzej Hajda

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=54730BAF.7000907@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=Liquid.Acid@gmx.net \
    --cc=a.hajda@samsung.com \
    --cc=drake@endlessm.com \
    --cc=inki.dae@samsung.com \
    --cc=kgene@kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=tomasz.figa@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox