From: Tobias Jakobi <liquid.acid@gmx.net>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
linux-samsung-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org
Cc: Kukjin Kim <kgene.kim@samsung.com>,
Daniel Drake <drake@endlessm.com>,
Andrzej Hajda <a.hajda@samsung.com>,
Inki Dae <inki.dae@samsung.com>,
Tomasz Stanislawski <t.stanislaws@samsung.com>,
Tomasz Figa <t.figa@samsung.com>
Subject: Re: [PATCH 4/7] Exynos: add support for 'domain-always-on' property
Date: Tue, 01 Jul 2014 10:52:14 +0200 [thread overview]
Message-ID: <53B276BE.2090509@gmx.net> (raw)
In-Reply-To: <1404202211-15788-5-git-send-email-m.szyprowski@samsung.com>
Hello Marek,
I think you had a similar patch in the tizen tree, but according to
Tomasz Figa, it was considered a hack. I don't quite see how this is
different.
Also, if I have been following the discussion correctly, then the
powerdomain issue essentially is about the question which SoC block
needs the LCD0 domain and how the proper power on/off sequences should
look like.
At least the mixer power issue, which I pointed out some time ago, seems
to be deal with now:
https://git.kernel.org/cgit/linux/kernel/git/daeinki/drm-exynos.git/commit/?h=exynos-drm-next&id=381be025ac1a6dc8efebdf146ced0d4a6007f77b
With best wishes,
Tobias
Marek Szyprowski wrote:
> This patch adds support for domain-always-on property to Exynos power
> domain driver. Domains with this property as always kept enabled.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> Documentation/devicetree/bindings/arm/exynos/power_domain.txt | 2 ++
> arch/arm/mach-exynos/pm_domains.c | 6 +++++-
> 2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> index 5216b419016a..b25d9b1ce471 100644
> --- a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> +++ b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> @@ -8,6 +8,8 @@ Required Properties:
> * samsung,exynos4210-pd - for exynos4210 type power domain.
> - reg: physical base address of the controller and length of memory mapped
> region.
> +Optional properties:
> +- domain-always-on: keeps the domain always enabled
>
> Node of a device using power domains must have a samsung,power-domain property
> defined with a phandle to respective power domain.
> diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c
> index fe6570ebbdde..279b008de02f 100644
> --- a/arch/arm/mach-exynos/pm_domains.c
> +++ b/arch/arm/mach-exynos/pm_domains.c
> @@ -151,6 +151,7 @@ static __init int exynos4_pm_init_power_domain(void)
> struct device_node *np;
>
> for_each_compatible_node(np, NULL, "samsung,exynos4210-pd") {
> + struct dev_power_governor *gov = NULL;
> struct exynos_pm_domain *pd;
> int on;
>
> @@ -163,6 +164,9 @@ static __init int exynos4_pm_init_power_domain(void)
> return -ENOMEM;
> }
>
> + if (of_property_read_bool(np, "domain-always-on"))
> + gov = &pm_domain_always_on_gov;
> +
> pd->pd.name = kstrdup(np->name, GFP_KERNEL);
> pd->name = pd->pd.name;
> pd->base = of_iomap(np, 0);
> @@ -174,7 +178,7 @@ static __init int exynos4_pm_init_power_domain(void)
>
> on = __raw_readl(pd->base + 0x4) & S5P_INT_LOCAL_PWR_EN;
>
> - pm_genpd_init(&pd->pd, NULL, !on);
> + pm_genpd_init(&pd->pd, gov, !on);
> }
>
> bus_register_notifier(&platform_bus_type, &platform_nb);
>
next prev parent reply other threads:[~2014-07-01 8:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 8:10 [PATCH 0/7] Exynos4: enable HDMI support for Odroid and UniversalC210 Marek Szyprowski
2014-07-01 8:10 ` [PATCH 1/7] clk: exynos4: add support for MOUT_HDMI and MOUT_MIXER clocks Marek Szyprowski
2014-07-01 8:46 ` Tobias Jakobi
2014-07-01 8:57 ` Marek Szyprowski
2014-07-01 17:44 ` Tobias Jakobi
2014-07-01 8:10 ` [PATCH 2/7] drm: exynos: hdmi: make 'hdmi-en' regulator optional and keep it enabled Marek Szyprowski
2014-07-01 8:10 ` [PATCH 3/7] drm: hdmi/mixer: enable exynos 4210 and 4x12 soc support Marek Szyprowski
2014-07-01 8:10 ` [PATCH 4/7] Exynos: add support for 'domain-always-on' property Marek Szyprowski
2014-07-01 8:52 ` Tobias Jakobi [this message]
2014-07-01 9:08 ` Marek Szyprowski
2014-07-01 17:54 ` Tobias Jakobi
2014-07-02 7:56 ` Marek Szyprowski
2014-07-02 7:28 ` Joonyoung Shim
2014-07-01 8:10 ` [PATCH 5/7] ARM: dts: exynos4: add hdmi related nodes Marek Szyprowski
2014-07-01 8:10 ` [PATCH 6/7] ARM: dts: exynos4412-odroid: enable hdmi support Marek Szyprowski
2014-07-01 8:10 ` [PATCH 7/7] ARM: dts: exynos4210-universal_c210: " Marek Szyprowski
2014-07-19 10:40 ` [PATCH 0/7] Exynos4: enable HDMI support for Odroid and UniversalC210 Inki Dae
2014-08-12 13:00 ` Tomeu Vizoso
2014-08-26 13:03 ` Marek Szyprowski
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=53B276BE.2090509@gmx.net \
--to=liquid.acid@gmx.net \
--cc=a.hajda@samsung.com \
--cc=drake@endlessm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=t.figa@samsung.com \
--cc=t.stanislaws@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.