Skip to content

Commit a9c8088

Browse files
jdelvareWolfram Sang
authored andcommitted
i2c: i801: Don't restore config registers on runtime PM
Restoring configuration registers is only needed when we hand control to the firmware. This is never the case with runtime power management. The device will autosuspend whenever not used, so avoid useless register writes by defining suspend/resume only, and not runtime_suspend/runtime_resume. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent e8f39e9 commit a9c8088

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,8 +1731,7 @@ static int i801_resume(struct device *dev)
17311731
}
17321732
#endif
17331733

1734-
static UNIVERSAL_DEV_PM_OPS(i801_pm_ops, i801_suspend,
1735-
i801_resume, NULL);
1734+
static SIMPLE_DEV_PM_OPS(i801_pm_ops, i801_suspend, i801_resume);
17361735

17371736
static struct pci_driver i801_driver = {
17381737
.name = "i801_smbus",

0 commit comments

Comments
 (0)