public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early
@ 2017-09-20 22:31 Rajat Jain
  2017-09-20 22:31 ` [PATCH 2/2] mfd: intel-lpss: switch to suspend_late()/resume_early() Rajat Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Rajat Jain @ 2017-09-20 22:31 UTC (permalink / raw)
  To: Jarkko Nikula, Andy Shevchenko, Mika Westerberg, Wolfram Sang,
	linux-i2c, linux-kernel, Lee Jones, Wysocki, Rafael J,
	Rafael J. Wysocki, linux-pm, Len Brown, furquan, rajatxjain
  Cc: Rajat Jain

Ref: https://lkml.org/lkml/2017/9/19/649

The bus controllers should suspend the bus operations only after
all of the devices on the bus have suspended their device
completely. Since the i2c_client drivers could be talking to
their devices in their suspend_late() calls, lets ensure that the
bus is alive by that time. Thus moving the controller suspend logic to
suspend_late().

Signed-off-by: Rajat Jain <rajatja@google.com>
---
 drivers/i2c/busses/i2c-designware-platdrv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 0e65b97842b4..66dd7f844c40 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -468,7 +468,7 @@ static int dw_i2c_plat_suspend(struct device *dev)
 static const struct dev_pm_ops dw_i2c_dev_pm_ops = {
 	.prepare = dw_i2c_plat_prepare,
 	.complete = dw_i2c_plat_complete,
-	SET_SYSTEM_SLEEP_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume)
+	SET_LATE_SYSTEM_SLEEP_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume)
 	SET_RUNTIME_PM_OPS(dw_i2c_plat_runtime_suspend,
 			   dw_i2c_plat_resume,
 			   NULL)
-- 
2.14.1.821.g8fa685d3b7-goog

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-09-23 16:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20 22:31 [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early Rajat Jain
2017-09-20 22:31 ` [PATCH 2/2] mfd: intel-lpss: switch to suspend_late()/resume_early() Rajat Jain
2017-09-21  0:27   ` Rafael J. Wysocki
2017-09-21  1:14     ` Rajat Jain
2017-09-21  8:41     ` Lee Jones
2017-09-21 14:10       ` Rafael J. Wysocki
2017-09-21 15:17         ` Lee Jones
2017-09-21 15:18           ` Rafael J. Wysocki
2017-09-20 22:42 ` [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early Rajat Jain
2017-09-21  0:24 ` Rafael J. Wysocki
2017-09-21  1:13   ` Rajat Jain
2017-09-21 14:11     ` Rafael J. Wysocki
2017-09-23 12:55       ` Rafael J. Wysocki
2017-09-23 15:49         ` Rajat Jain
2017-09-23 16:17           ` Rajat Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox