PCI/LINK: Disable bandwidth notification interrupt during suspend
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 15 Apr 2019 08:41:42 +0000 (11:41 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Apr 2019 23:23:28 +0000 (18:23 -0500)
commit6056bed93b4f93707b0564aa418b9c06b613ff04
tree37ef1bfa95abf386cba7d65ce7cc57b90592486f
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
PCI/LINK: Disable bandwidth notification interrupt during suspend

If the bandwidth notification interrupt is left unmasked when entering
suspend to idle, it triggers immediately bringing the system back to
working state.

To keep that from happening, disable the interrupt when entering system
sleep and enable it again during resume.

Reported-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/bw_notification.c