arm: tegra: xmm: add enable_irq_wake in probe
Seongho Joo [Sat, 25 Feb 2012 09:50:43 +0000 (18:50 +0900)]
Add enable_irq_wake in probe to enable gpio irq wake.

Bug 928950

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/85972
(cherry picked from commit e81069047c14a0ab9a3e1eb5588060959d550c49)

Change-Id: Ic513179670661ddc8a75d73a0afaa6264847cb1a
Reviewed-on: http://git-master/r/87644
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/baseband-xmm-power.c

index 534ba49..074a3c3 100644 (file)
@@ -828,6 +828,9 @@ static int baseband_xmm_power_driver_probe(struct platform_device *device)
                                __func__);
                        return err;
                }
+               err = enable_irq_wake(gpio_to_irq(data->modem.xmm.ipc_ap_wake));
+               if (err < 0)
+                        pr_err("%s: enable_irq_wake error\n", __func__);
                ipc_ap_wake_state = IPC_AP_WAKE_IRQ_READY;
                if (modem_ver >= XMM_MODEM_VER_1130) {
                        pr_debug("%s: ver > 1130: AP_WAKE_INIT1\n", __func__);