From: Keerthy <j-keerthy@ti.com> To: tony@atomide.com Cc: j-keerthy@ti.com, linus.walleij@linaro.org, t-kristo@ti.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm: mach-omap2: pdata-quirks: Add a quirk function to convey off mode state Date: Wed, 16 May 2018 11:10:29 +0530 [thread overview] Message-ID: <1526449230-27618-2-git-send-email-j-keerthy@ti.com> (raw) In-Reply-To: <1526449230-27618-1-git-send-email-j-keerthy@ti.com> Add a quirk function to convey off mode state. This can be used to perform additional save/restore during off mode. Signed-off-by: Keerthy <j-keerthy@ti.com> --- arch/arm/mach-omap2/pdata-quirks.c | 6 ++++++ include/linux/platform_data/pinctrl-single.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 7f02743..f2e16e3 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -35,6 +35,7 @@ #include "omap-secure.h" #include "soc.h" #include "hsmmc.h" +#include "pm.h" static struct omap_hsmmc_platform_data __maybe_unused mmc_pdata[2]; @@ -489,12 +490,17 @@ static int ti_sysc_shutdown_module(struct device *dev, .shutdown_module = ti_sysc_shutdown_module, }; +int context_may_be_lost(void) +{ + return enable_off_mode; +} static struct pcs_pdata pcs_pdata; void omap_pcs_legacy_init(int irq, void (*rearm)(void)) { pcs_pdata.irq = irq; pcs_pdata.rearm = rearm; + pcs_pdata.context_may_be_lost = context_may_be_lost; } /* diff --git a/include/linux/platform_data/pinctrl-single.h b/include/linux/platform_data/pinctrl-single.h index 1cf36fd..f07c1f2 100644 --- a/include/linux/platform_data/pinctrl-single.h +++ b/include/linux/platform_data/pinctrl-single.h @@ -10,4 +10,5 @@ struct pcs_pdata { int irq; void (*rearm)(void); + int (*context_may_be_lost)(void); }; -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: j-keerthy@ti.com (Keerthy) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm: mach-omap2: pdata-quirks: Add a quirk function to convey off mode state Date: Wed, 16 May 2018 11:10:29 +0530 [thread overview] Message-ID: <1526449230-27618-2-git-send-email-j-keerthy@ti.com> (raw) In-Reply-To: <1526449230-27618-1-git-send-email-j-keerthy@ti.com> Add a quirk function to convey off mode state. This can be used to perform additional save/restore during off mode. Signed-off-by: Keerthy <j-keerthy@ti.com> --- arch/arm/mach-omap2/pdata-quirks.c | 6 ++++++ include/linux/platform_data/pinctrl-single.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 7f02743..f2e16e3 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -35,6 +35,7 @@ #include "omap-secure.h" #include "soc.h" #include "hsmmc.h" +#include "pm.h" static struct omap_hsmmc_platform_data __maybe_unused mmc_pdata[2]; @@ -489,12 +490,17 @@ static int ti_sysc_shutdown_module(struct device *dev, .shutdown_module = ti_sysc_shutdown_module, }; +int context_may_be_lost(void) +{ + return enable_off_mode; +} static struct pcs_pdata pcs_pdata; void omap_pcs_legacy_init(int irq, void (*rearm)(void)) { pcs_pdata.irq = irq; pcs_pdata.rearm = rearm; + pcs_pdata.context_may_be_lost = context_may_be_lost; } /* diff --git a/include/linux/platform_data/pinctrl-single.h b/include/linux/platform_data/pinctrl-single.h index 1cf36fd..f07c1f2 100644 --- a/include/linux/platform_data/pinctrl-single.h +++ b/include/linux/platform_data/pinctrl-single.h @@ -10,4 +10,5 @@ struct pcs_pdata { int irq; void (*rearm)(void); + int (*context_may_be_lost)(void); }; -- 1.9.1
next prev parent reply other threads:[~2018-05-16 5:40 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-16 5:40 [PATCH 0/2] pinctrl: pinctrl-single: Add functions to save and restore pinctrl contex Keerthy 2018-05-16 5:40 ` Keerthy 2018-05-16 5:40 ` Keerthy [this message] 2018-05-16 5:40 ` [PATCH 1/2] arm: mach-omap2: pdata-quirks: Add a quirk function to convey off mode state Keerthy 2018-05-16 14:36 ` Tony Lindgren 2018-05-16 14:36 ` Tony Lindgren 2018-05-16 5:40 ` [PATCH 2/2] pinctrl: pinctrl-single: Add functions to save and restore pinctrl context Keerthy 2018-05-16 5:40 ` Keerthy 2018-05-16 15:22 ` Tony Lindgren 2018-05-16 15:22 ` Tony Lindgren
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=1526449230-27618-2-git-send-email-j-keerthy@ti.com \ --to=j-keerthy@ti.com \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ --cc=t-kristo@ti.com \ --cc=tony@atomide.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: linkBe 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.