i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 5 Aug 2020 19:36:15 +0000 (01:06 +0530)
committerWolfram Sang <wsa@kernel.org>
Mon, 10 Aug 2020 13:46:31 +0000 (15:46 +0200)
commit536e785f533f5a65ce5238e202d527d70fd4ab17
treef8d9d29ccd20b3aeffa5c5201f9d8ddaf6f01c6f
parentb0102a890f17e965cc43283cb04218c03f85c6ff
i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume

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>
drivers/i2c/busses/i2c-eg20t.c