gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Wed, 29 Feb 2012 16:19:21 +0000 (21:49 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Tue, 20 Mar 2012 09:58:58 +0000 (15:28 +0530)
commit381a752f291763bd6971521fa44c76ad9e937f7b
treeb8d934798fbc29b0bac9c81642eb24feec31f5af
parent81b279d80a63628e580c71a31d30a8c3b3047ad4
gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()

There are two ways through which wakeup_en register can be programmed
using gpiolib APIs as shown below. It is seen that in the second case
in _set_gpio_wakeup(), even though bank->suspend_wakeup is updated
correctly, its value is not programmed in wakeup_en register. Fix this.

irq_set_type()->gpio_irq_type()->_set_gpio_triggering()->set_gpio_trigger()
irq_set_wake()->gpio_wake_enable()->_set_gpio_wakeup()

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c