From: Kukjin Kim <kgene@kernel.org>
To: 'Amit Daniel Kachhap' <amit.daniel@samsung.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org
Cc: b.zolnierkie@samsung.com, pankaj.dubey@samsung.com
Subject: RE: [PATCH v5 3/6] driver: soc: exynos-pmu: Add an API to be called after wakeup
Date: Sun, 30 Nov 2014 08:26:42 +0900 [thread overview]
Message-ID: <02a301d00c2b$ef2f0eb0$cd8d2c10$@kernel.org> (raw)
In-Reply-To: <1417270508-11174-4-git-send-email-amit.daniel@samsung.com>
Amit Daniel Kachhap wrote:
>
> This patch adds an API exynos_sys_powerup_conf to be called after system sleep
> wakeup. This will useful for exynos7 SoC to perform resume related
> initialisations. This is similar to currently existing API
> exynos_sys_powerdown_conf.
>
> Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
In subject,
"driver: soc..." -> "drivers: soc..." ?
- Kukjin
> ---
> drivers/soc/samsung/exynos-pmu.c | 9 +++++++++
> include/linux/soc/samsung/exynos-pmu.h | 1 +
> 2 files changed, 10 insertions(+)
>
> diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c
> index 7eb5b0b..c3307eb 100644
> --- a/drivers/soc/samsung/exynos-pmu.c
> +++ b/drivers/soc/samsung/exynos-pmu.c
> @@ -33,6 +33,7 @@ struct exynos_pmu_data {
> void (*pmu_init)(void);
> void (*powerdown_conf)(enum sys_powerdown);
> void (*powerdown_conf_extra)(enum sys_powerdown);
> + void (*powerup_conf)(enum sys_powerdown);
> };
>
> struct exynos_pmu_context {
> @@ -768,6 +769,14 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode)
> }
> }
>
> +void exynos_sys_powerup_conf(enum sys_powerdown mode)
> +{
> + const struct exynos_pmu_data *pmu_data = pmu_context->pmu_data;
> +
> + if (pmu_data->powerup_conf)
> + pmu_data->powerup_conf(mode);
> +}
> +
> static void exynos3250_pmu_init(void)
> {
> unsigned int value;
> diff --git a/include/linux/soc/samsung/exynos-pmu.h b/include/linux/soc/samsung/exynos-pmu.h
> index a2ab0d5..b497712 100644
> --- a/include/linux/soc/samsung/exynos-pmu.h
> +++ b/include/linux/soc/samsung/exynos-pmu.h
> @@ -20,5 +20,6 @@ enum sys_powerdown {
> };
>
> extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
> +extern void exynos_sys_powerup_conf(enum sys_powerdown mode);
>
> #endif /* __EXYNOS_PMU_H */
> --
> 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: kgene@kernel.org (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 3/6] driver: soc: exynos-pmu: Add an API to be called after wakeup
Date: Sun, 30 Nov 2014 08:26:42 +0900 [thread overview]
Message-ID: <02a301d00c2b$ef2f0eb0$cd8d2c10$@kernel.org> (raw)
In-Reply-To: <1417270508-11174-4-git-send-email-amit.daniel@samsung.com>
Amit Daniel Kachhap wrote:
>
> This patch adds an API exynos_sys_powerup_conf to be called after system sleep
> wakeup. This will useful for exynos7 SoC to perform resume related
> initialisations. This is similar to currently existing API
> exynos_sys_powerdown_conf.
>
> Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
In subject,
"driver: soc..." -> "drivers: soc..." ?
- Kukjin
> ---
> drivers/soc/samsung/exynos-pmu.c | 9 +++++++++
> include/linux/soc/samsung/exynos-pmu.h | 1 +
> 2 files changed, 10 insertions(+)
>
> diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c
> index 7eb5b0b..c3307eb 100644
> --- a/drivers/soc/samsung/exynos-pmu.c
> +++ b/drivers/soc/samsung/exynos-pmu.c
> @@ -33,6 +33,7 @@ struct exynos_pmu_data {
> void (*pmu_init)(void);
> void (*powerdown_conf)(enum sys_powerdown);
> void (*powerdown_conf_extra)(enum sys_powerdown);
> + void (*powerup_conf)(enum sys_powerdown);
> };
>
> struct exynos_pmu_context {
> @@ -768,6 +769,14 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode)
> }
> }
>
> +void exynos_sys_powerup_conf(enum sys_powerdown mode)
> +{
> + const struct exynos_pmu_data *pmu_data = pmu_context->pmu_data;
> +
> + if (pmu_data->powerup_conf)
> + pmu_data->powerup_conf(mode);
> +}
> +
> static void exynos3250_pmu_init(void)
> {
> unsigned int value;
> diff --git a/include/linux/soc/samsung/exynos-pmu.h b/include/linux/soc/samsung/exynos-pmu.h
> index a2ab0d5..b497712 100644
> --- a/include/linux/soc/samsung/exynos-pmu.h
> +++ b/include/linux/soc/samsung/exynos-pmu.h
> @@ -20,5 +20,6 @@ enum sys_powerdown {
> };
>
> extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
> +extern void exynos_sys_powerup_conf(enum sys_powerdown mode);
>
> #endif /* __EXYNOS_PMU_H */
> --
> 1.7.9.5
next prev parent reply other threads:[~2014-11-29 23:26 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-29 14:15 [PATCH v5 0/6] exynos: Move pmu driver to driver/soc folder and add exynos7 support Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 14:15 ` [PATCH v5 1/6] ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung" Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 14:15 ` [PATCH v5 2/6] drivers: soc: Add support for Exynos PMU driver Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 23:24 ` Kukjin Kim
2014-11-29 23:24 ` Kukjin Kim
2014-12-01 4:23 ` amit daniel kachhap
2014-12-01 4:23 ` amit daniel kachhap
2014-11-29 14:15 ` [PATCH v5 3/6] driver: soc: exynos-pmu: Add an API to be called after wakeup Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 23:26 ` Kukjin Kim [this message]
2014-11-29 23:26 ` Kukjin Kim
2014-12-01 4:24 ` amit daniel kachhap
2014-12-01 4:24 ` amit daniel kachhap
2014-11-29 14:15 ` [PATCH v5 4/6] driver: soc: exynos-pmu: Add a new structure to allow u32 conf data Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 14:15 ` [PATCH v5 5/6] drivers: soc: exynos-pmu: Add support for Exynos7 Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-29 23:35 ` Kukjin Kim
2014-11-29 23:35 ` Kukjin Kim
2014-12-01 4:29 ` amit daniel kachhap
2014-12-01 4:29 ` amit daniel kachhap
2014-12-01 7:13 ` Pankaj Dubey
2014-12-01 7:13 ` Pankaj Dubey
2014-11-29 14:15 ` [PATCH v5 6/6] arm: exynos: Select SOC_SAMSUNG config option Amit Daniel Kachhap
2014-11-29 14:15 ` Amit Daniel Kachhap
2014-11-30 11:49 ` [PATCH v5 0/6] exynos: Move pmu driver to driver/soc folder and add exynos7 support Arnd Bergmann
2014-11-30 11:49 ` Arnd Bergmann
2014-12-01 4:30 ` Chanwoo Choi
2014-12-01 4:30 ` Chanwoo Choi
2014-12-01 4:33 ` Chanwoo Choi
2014-12-01 4:33 ` Chanwoo Choi
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='02a301d00c2b$ef2f0eb0$cd8d2c10$@kernel.org' \
--to=kgene@kernel.org \
--cc=amit.daniel@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=pankaj.dubey@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.