From: Laxman Dewangan <ldewangan@nvidia.com> To: w.sang@pengutronix.de, khali@linux-fr.org, ben-linux@fluff.org Cc: swarren@nvidia.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Laxman Dewangan <ldewangan@nvidia.com> Subject: [PATCH 5/5] i2c: tegra: convert normal suspend/resume to *_noirq Date: Tue, 10 Jul 2012 16:50:44 +0530 [thread overview] Message-ID: <1341919244-23327-6-git-send-email-ldewangan@nvidia.com> (raw) In-Reply-To: <1341919244-23327-1-git-send-email-ldewangan@nvidia.com> To provide the late suspend and early resume for i2c driver, convert the suspend/resume as suspend-> suspend_noirq resume -> resume_noirq Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- drivers/i2c/busses/i2c-tegra.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 5f0572d..99e6ae5 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -713,7 +713,7 @@ static int __devexit tegra_i2c_remove(struct platform_device *pdev) } #ifdef CONFIG_PM -static int tegra_i2c_suspend(struct device *dev) +static int tegra_i2c_suspend_noirq(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); @@ -725,7 +725,7 @@ static int tegra_i2c_suspend(struct device *dev) return 0; } -static int tegra_i2c_resume(struct device *dev) +static int tegra_i2c_resume_noirq(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); @@ -748,8 +748,8 @@ static int tegra_i2c_resume(struct device *dev) } static const struct dev_pm_ops tegra_i2c_dev_pm_ops = { - .suspend = tegra_i2c_suspend, - .resume = tegra_i2c_resume, + .suspend_noirq = tegra_i2c_suspend_noirq, + .resume_noirq = tegra_i2c_resume_noirq, }; #define TEGRA_I2C_DEV_PM_OPS (&tegra_i2c_dev_pm_ops) #else -- 1.7.1.1
WARNING: multiple messages have this Message-ID (diff)
From: Laxman Dewangan <ldewangan@nvidia.com> To: <w.sang@pengutronix.de>, <khali@linux-fr.org>, <ben-linux@fluff.org> Cc: <swarren@nvidia.com>, <linux-i2c@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-tegra@vger.kernel.org>, Laxman Dewangan <ldewangan@nvidia.com> Subject: [PATCH 5/5] i2c: tegra: convert normal suspend/resume to *_noirq Date: Tue, 10 Jul 2012 16:50:44 +0530 [thread overview] Message-ID: <1341919244-23327-6-git-send-email-ldewangan@nvidia.com> (raw) In-Reply-To: <1341919244-23327-1-git-send-email-ldewangan@nvidia.com> To provide the late suspend and early resume for i2c driver, convert the suspend/resume as suspend-> suspend_noirq resume -> resume_noirq Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- drivers/i2c/busses/i2c-tegra.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 5f0572d..99e6ae5 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -713,7 +713,7 @@ static int __devexit tegra_i2c_remove(struct platform_device *pdev) } #ifdef CONFIG_PM -static int tegra_i2c_suspend(struct device *dev) +static int tegra_i2c_suspend_noirq(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); @@ -725,7 +725,7 @@ static int tegra_i2c_suspend(struct device *dev) return 0; } -static int tegra_i2c_resume(struct device *dev) +static int tegra_i2c_resume_noirq(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); @@ -748,8 +748,8 @@ static int tegra_i2c_resume(struct device *dev) } static const struct dev_pm_ops tegra_i2c_dev_pm_ops = { - .suspend = tegra_i2c_suspend, - .resume = tegra_i2c_resume, + .suspend_noirq = tegra_i2c_suspend_noirq, + .resume_noirq = tegra_i2c_resume_noirq, }; #define TEGRA_I2C_DEV_PM_OPS (&tegra_i2c_dev_pm_ops) #else -- 1.7.1.1
next prev parent reply other threads:[~2012-07-10 11:20 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-10 11:20 [PATCH 0/5] i2c: tegra: Code cleanups and suspend/resume related changes Laxman Dewangan 2012-07-10 11:20 ` Laxman Dewangan 2012-07-10 11:20 ` [PATCH 1/5] i2c: tegra: remove unused member variable Laxman Dewangan 2012-07-10 11:20 ` Laxman Dewangan [not found] ` <1341919244-23327-2-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-10 11:33 ` Shubhrajyoti Datta 2012-07-10 11:33 ` Shubhrajyoti Datta 2012-07-10 11:20 ` [PATCH 2/5] i2c: tegra: use clk_disable_unprepare in place of clk_disable Laxman Dewangan 2012-07-10 11:20 ` Laxman Dewangan [not found] ` <1341919244-23327-3-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-12 9:52 ` Wolfram Sang 2012-07-12 9:52 ` Wolfram Sang 2012-07-10 11:20 ` [PATCH 3/5] i2c: tegra: use of_match_ptr() for match_table initialization Laxman Dewangan 2012-07-10 11:20 ` Laxman Dewangan [not found] ` <1341919244-23327-4-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-12 9:52 ` Wolfram Sang 2012-07-12 9:52 ` Wolfram Sang 2012-07-10 11:20 ` [PATCH 4/5] i2c: tegra: Use struct dev_pm_ops for power management Laxman Dewangan 2012-07-10 11:20 ` Laxman Dewangan [not found] ` <1341919244-23327-5-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-12 9:53 ` Wolfram Sang 2012-07-12 9:53 ` Wolfram Sang 2012-07-10 11:20 ` Laxman Dewangan [this message] 2012-07-10 11:20 ` [PATCH 5/5] i2c: tegra: convert normal suspend/resume to *_noirq Laxman Dewangan [not found] ` <1341919244-23327-6-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-12 10:35 ` Wolfram Sang 2012-07-12 10:35 ` Wolfram Sang [not found] ` <20120712103509.GF27520-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2012-07-12 10:30 ` Laxman Dewangan 2012-07-12 10:30 ` Laxman Dewangan [not found] ` <4FFEA748.9080109-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-07-12 11:58 ` Wolfram Sang 2012-07-12 11:58 ` Wolfram Sang [not found] ` <20120712115725.GA3772-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2012-07-12 11:53 ` Laxman Dewangan 2012-07-12 11:53 ` Laxman Dewangan 2012-07-23 18:24 ` Stephen Warren [not found] ` <500D96E6.4060507-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 2012-07-24 9:13 ` Peter De Schrijver 2012-07-24 9:13 ` Peter De Schrijver [not found] ` <20120724091358.GK12034-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> 2012-07-24 12:52 ` Mark Brown 2012-07-24 12:52 ` Mark Brown 2012-07-24 15:29 ` Wolfram Sang 2012-07-24 15:29 ` Wolfram Sang
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=1341919244-23327-6-git-send-email-ldewangan@nvidia.com \ --to=ldewangan@nvidia.com \ --cc=ben-linux@fluff.org \ --cc=khali@linux-fr.org \ --cc=linux-i2c@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-tegra@vger.kernel.org \ --cc=swarren@nvidia.com \ --cc=w.sang@pengutronix.de \ /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.