Skip to content

Commit 845b891

Browse files
jdelvarewsakernel
authored andcommitted
i2c: i801: Exclude device from suspend direct complete optimization
By default, PCI drivers with runtime PM enabled will skip the calls to suspend and resume on system PM. For this driver, we don't want that, as we need to perform additional steps for system PM to work properly on all systems. So instruct the PM core to not skip these calls. Fixes: a9c8088 ("i2c: i801: Don't restore config registers on runtime PM") Reported-by: Volker Rümelin <[email protected]> Signed-off-by: Jean Delvare <[email protected]> Cc: [email protected] Signed-off-by: Wolfram Sang <[email protected]>
1 parent ba4f184 commit 845b891

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
19171917

19181918
pci_set_drvdata(dev, priv);
19191919

1920+
dev_pm_set_driver_flags(&dev->dev, DPM_FLAG_NO_DIRECT_COMPLETE);
19201921
pm_runtime_set_autosuspend_delay(&dev->dev, 1000);
19211922
pm_runtime_use_autosuspend(&dev->dev);
19221923
pm_runtime_put_autosuspend(&dev->dev);

0 commit comments

Comments
 (0)