]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a88b3a39cdc6175432f474da513ad884975bd1f
tree103c57cf9f75326d3d3d7e42b80f92351fb44adc
parentd8a6c3ea611576160f8ad3c7ef23dbc17d0dfa8e
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: 012c0518fa9a (PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend)
Fixes: a8ec057d01b2 (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 012c0518fa9a, 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