]> git.baikalelectronics.ru Git - kernel.git/commit
PCI / PM: handle failure to enable wakeup on PCIe PME
authorLucas Stach <l.stach@pengutronix.de>
Wed, 22 Oct 2014 12:31:55 +0000 (14:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Oct 2014 20:47:28 +0000 (22:47 +0200)
commit7b1caa4bbfc3927be0b8732c76a68aa62beb514a
tree933a7145828efe1a8b3b022fccfddb63b5d6de7c
parent794664fc5e82534aa444b079f807e339c4d8d9b5
PCI / PM: handle failure to enable wakeup on PCIe PME

If the irqchip handling the PCIe PME interrupt is not able
to enable interrupt wakeup we should properly reflect this
in the PME suspend status.

This fixes a kernel warning on resume, where it would try
to disable the irq wakeup that failed to be activated while
suspending, for example:

WARNING: CPU: 0 PID: 609 at kernel/irq/manage.c:536 irq_set_irq_wake+0xc0/0xf8()
Unbalanced IRQ 384 wake disable

Fixes: e8ba0fb05772 (PCI / PM: Make PCIe PME interrupts wake up from suspend-to-idle)
Reported-and-tested-by: Richard Zhu <richard.zhu@freescale.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pcie/pme.c