PM / wakeirq: Enable dedicated wakeirq for suspend
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 10 Feb 2017 22:25:00 +0000 (14:25 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Feb 2017 21:29:29 +0000 (22:29 +0100)
commitc84345597558349474f55be2b7d4093256e42884
tree103c57cf9f75326d3d3d7e42b80f92351fb44adc
parent7089db84e356562f8ba737c29e472cc42d530dbc
PM / wakeirq: Enable dedicated wakeirq for suspend

We currently rely on runtime PM to enable dedicated wakeirq for suspend.
This assumption fails in the following two cases:

1. If the consumer driver does not have runtime PM implemented, the
   dedicated wakeirq never gets enabled for suspend

2. If the consumer driver has runtime PM implemented, but does not idle
   in suspend

Let's fix the issue by always enabling the dedicated wakeirq during
suspend.

Depends-on: bed570307ed7 (PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend)
Fixes: 4990d4fe327b (PM / Wakeirq: Add automated device wake IRQ handling)
Reported-by: Keerthy <j-keerthy@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
[ tony@atomide.com: updated based on bed570307ed7, added description ]
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeirq.c