pinctrl: rockchip: Set wake_enabled
authorDoug Anderson <dianders@chromium.org>
Tue, 21 Oct 2014 17:47:32 +0000 (10:47 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 29 Oct 2014 20:06:15 +0000 (21:06 +0100)
commit876d716ba9af205f46b7e911d39482e627aea0e8
treef60e54b2ae4b65e6f7ce69a5c369ffbedb53aa6e
parentf114040e3ea6e07372334ade75d1ee0775c355e1
pinctrl: rockchip: Set wake_enabled

The rockchip pinctrl driver uses irq_gc_set_wake() but doesn't setup
the .wake_enabled member.  That means that we can never actually use a
pin for wakeup.  When "irq_set_irq_wake()" tries to call through it
will always get a failure from set_irq_wake_real() and will then set
wake_depth to 0.  Assuming you can resume you'll later get an error
message about "Unbalanced IRQ x wake disable".

Signed-off-by: Doug Anderson <dianders@chromium.org>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/pinctrl/pinctrl-rockchip.c