[PATCH] pcie: Disable bandwidth notification during suspend/resume
Imre Deak
imre.deak at intel.com
Mon Apr 8 09:48:17 UTC 2019
From: Mika Westerberg <mika.westerberg at linux.intel.com>
Disable bandwidth notification during suspend/resume to fix
suspend/resume failure on WHL due to spurious interrupts waking up the
system prematurely.
Signed-off-by: Mika Westerberg <mika.westerberg at linux.intel.com>
---
drivers/pci/pcie/bw_notification.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/pci/pcie/bw_notification.c b/drivers/pci/pcie/bw_notification.c
index 4fa9e3523ee1..77e685771487 100644
--- a/drivers/pci/pcie/bw_notification.c
+++ b/drivers/pci/pcie/bw_notification.c
@@ -107,11 +107,25 @@ static void pcie_bandwidth_notification_remove(struct pcie_device *srv)
free_irq(srv->irq, srv);
}
+static int pcie_bandwidth_notification_suspend(struct pcie_device *srv)
+{
+ pcie_disable_link_bandwidth_notification(srv->port);
+ return 0;
+}
+
+static int pcie_bandwidth_notification_resume(struct pcie_device *srv)
+{
+ pcie_enable_link_bandwidth_notification(srv->port);
+ return 0;
+}
+
static struct pcie_port_service_driver pcie_bandwidth_notification_driver = {
.name = "pcie_bw_notification",
.port_type = PCIE_ANY_PORT,
.service = PCIE_PORT_SERVICE_BWNOTIF,
.probe = pcie_bandwidth_notification_probe,
+ .suspend = pcie_bandwidth_notification_suspend,
+ .resume = pcie_bandwidth_notification_resume,
.remove = pcie_bandwidth_notification_remove,
};
--
2.13.2
More information about the Intel-gfx-trybot
mailing list