From 1d652056f86127f0620710db8f9f78eef9740454 Mon Sep 17 00:00:00 2001 From: Hal Feng Date: Tue, 25 Oct 2022 20:18:39 +0800 Subject: [PATCH] i2c: designware: Uncomment and recover the pm functions Uncomment the system pm and runtime pm ops functions. Restore the Synopsys DesignWare i2c driver to the original version. Signed-off-by: Hal Feng --- drivers/i2c/busses/i2c-designware-platdrv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 50de0bd..2111366 100755 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -366,7 +366,6 @@ static void dw_i2c_plat_complete(struct device *dev) #endif #ifdef CONFIG_PM -/* static int dw_i2c_plat_suspend(struct device *dev) { struct dw_i2c_dev *i_dev = dev_get_drvdata(dev); @@ -401,10 +400,8 @@ static const struct dev_pm_ops dw_i2c_dev_pm_ops = { SET_LATE_SYSTEM_SLEEP_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume) SET_RUNTIME_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume, NULL) }; -*/ -//#define DW_I2C_DEV_PMOPS (&dw_i2c_dev_pm_ops) -#define DW_I2C_DEV_PMOPS NULL +#define DW_I2C_DEV_PMOPS (&dw_i2c_dev_pm_ops) #else #define DW_I2C_DEV_PMOPS NULL #endif -- 2.7.4