* [PATCH] Revert "i2c-omap: fix static suspend vs. runtime suspend"
@ 2011-08-03 17:59 Kevin Hilman
[not found] ` <1312394379-21516-1-git-send-email-khilman-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2011-08-03 17:59 UTC (permalink / raw)
To: Ben Dooks, linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Shubhrajyoti D
This reverts commit adf6e07922255937c8bfeea777d19502b4c9a2be.
Remove system PM methods which can race with runtime PM methods.
Also, as of v3.1, the PM domain level code for OMAP handles device
power state transistions automatically for devices, so calling them
from
Signed-off-by: Kevin Hilman <khilman-l0cyMroinI0@public.gmane.org>
---
Ben, with your ack, I'll queue this up with a couple other fixes to
this driver for v3.1-rc. Thanks.
drivers/i2c/busses/i2c-omap.c | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 84df53f..e854be0 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1148,41 +1148,12 @@ omap_i2c_remove(struct platform_device *pdev)
return 0;
}
-#ifdef CONFIG_SUSPEND
-static int omap_i2c_suspend(struct device *dev)
-{
- if (!pm_runtime_suspended(dev))
- if (dev->bus && dev->bus->pm && dev->bus->pm->runtime_suspend)
- dev->bus->pm->runtime_suspend(dev);
-
- return 0;
-}
-
-static int omap_i2c_resume(struct device *dev)
-{
- if (!pm_runtime_suspended(dev))
- if (dev->bus && dev->bus->pm && dev->bus->pm->runtime_resume)
- dev->bus->pm->runtime_resume(dev);
-
- return 0;
-}
-
-static struct dev_pm_ops omap_i2c_pm_ops = {
- .suspend = omap_i2c_suspend,
- .resume = omap_i2c_resume,
-};
-#define OMAP_I2C_PM_OPS (&omap_i2c_pm_ops)
-#else
-#define OMAP_I2C_PM_OPS NULL
-#endif
-
static struct platform_driver omap_i2c_driver = {
.probe = omap_i2c_probe,
.remove = omap_i2c_remove,
.driver = {
.name = "omap_i2c",
.owner = THIS_MODULE,
- .pm = OMAP_I2C_PM_OPS,
},
};
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "i2c-omap: fix static suspend vs. runtime suspend"
[not found] ` <1312394379-21516-1-git-send-email-khilman-l0cyMroinI0@public.gmane.org>
@ 2011-08-03 22:38 ` Felipe Balbi
2011-08-04 14:39 ` Kevin Hilman
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2011-08-03 22:38 UTC (permalink / raw)
To: Kevin Hilman
Cc: Ben Dooks, linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-i2c-u79uwXL29TY76Z2rM5mHXA, Shubhrajyoti D
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
On Wed, Aug 03, 2011 at 10:59:39AM -0700, Kevin Hilman wrote:
> This reverts commit adf6e07922255937c8bfeea777d19502b4c9a2be.
>
> Remove system PM methods which can race with runtime PM methods.
>
> Also, as of v3.1, the PM domain level code for OMAP handles device
> power state transistions automatically for devices, so calling them
> from
from where ? I didn't quite get this ;-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "i2c-omap: fix static suspend vs. runtime suspend"
2011-08-03 22:38 ` Felipe Balbi
@ 2011-08-04 14:39 ` Kevin Hilman
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2011-08-04 14:39 UTC (permalink / raw)
To: balbi; +Cc: Ben Dooks, linux-omap, linux-i2c, Shubhrajyoti D
Felipe Balbi <balbi@ti.com> writes:
> On Wed, Aug 03, 2011 at 10:59:39AM -0700, Kevin Hilman wrote:
>> This reverts commit adf6e07922255937c8bfeea777d19502b4c9a2be.
>>
>> Remove system PM methods which can race with runtime PM methods.
>>
>> Also, as of v3.1, the PM domain level code for OMAP handles device
>> power state transistions automatically for devices, so calling them
>> from
>
> from where ? I didn't quite get this ;-)
heh, looks like i got distracted before finishing the changelog. Will
respin.
Thanks,
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-04 14:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-03 17:59 [PATCH] Revert "i2c-omap: fix static suspend vs. runtime suspend" Kevin Hilman
[not found] ` <1312394379-21516-1-git-send-email-khilman-l0cyMroinI0@public.gmane.org>
2011-08-03 22:38 ` Felipe Balbi
2011-08-04 14:39 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox