[RFC PATCH v2 2/3] PM / Core: suspend_again support for I2C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
---
 drivers/i2c/i2c-core.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 70c30e6..5570f61 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -251,6 +251,7 @@ static int i2c_device_pm_restore(struct device *dev)
 	else
 		return i2c_legacy_resume(dev);
 }
+#define i2c_device_pm_suspend_again	pm_generic_suspend_again
 #else /* !CONFIG_PM_SLEEP */
 #define i2c_device_pm_suspend	NULL
 #define i2c_device_pm_resume	NULL
@@ -258,6 +259,7 @@ static int i2c_device_pm_restore(struct device *dev)
 #define i2c_device_pm_thaw	NULL
 #define i2c_device_pm_poweroff	NULL
 #define i2c_device_pm_restore	NULL
+#define i2c_device_pm_suspend_again	NULL
 #endif /* !CONFIG_PM_SLEEP */
 
 static void i2c_client_dev_release(struct device *dev)
@@ -305,6 +307,7 @@ static const struct dev_pm_ops i2c_device_pm_ops = {
 	.thaw = i2c_device_pm_thaw,
 	.poweroff = i2c_device_pm_poweroff,
 	.restore = i2c_device_pm_restore,
+	.suspend_again = i2c_device_pm_suspend_again,
 	SET_RUNTIME_PM_OPS(
 		pm_generic_runtime_suspend,
 		pm_generic_runtime_resume,
-- 
1.7.1

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux