Skip to content

Commit

Permalink
i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume
Browse files Browse the repository at this point in the history
The driver calls pci_enable_wake(...., false) in pch_i2c_suspend() as well
as pch_i2c_resume(). Either it should enable-wake the device in .suspend()
or should not invoke pci_enable_wake() at all.

Concluding that this driver doesn't support enable-wake and PCI core calls
pci_enable_wake(pci_dev, PCI_D0, false) during resume, drop it from
.suspend() and .resume().

Reported-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
Vaibhav Gupta authored and Wolfram Sang committed Aug 10, 2020
1 parent b0102a8 commit 536e785
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/i2c/busses/i2c-eg20t.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,6 @@ static int pch_i2c_suspend(struct pci_dev *pdev, pm_message_t state)
return ret;
}

pci_enable_wake(pdev, PCI_D3hot, 0);
pci_disable_device(pdev);
pci_set_power_state(pdev, pci_choose_state(pdev, state));

Expand All @@ -899,8 +898,6 @@ static int pch_i2c_resume(struct pci_dev *pdev)
return -EIO;
}

pci_enable_wake(pdev, PCI_D3hot, 0);

for (i = 0; i < adap_info->ch_num; i++)
pch_i2c_init(&adap_info->pch_data[i]);

Expand Down

0 comments on commit 536e785

Please sign in to comment.