USB: msm: 8x60: Configure PMIC ID interrupt as wakeup interrupt
Change-Id: I2f0d80b85ca97b2453ef8ef7ba93daa644cbe158
CRs-fixed: 309451
Signed-off-by: Anji jonnala <anjir@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index dee14e7..544f2af 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -974,6 +974,7 @@
#endif
#if defined(CONFIG_USB_GADGET_MSM_72K) || defined(CONFIG_USB_EHCI_MSM_72K)
+static struct msm_otg_platform_data msm_otg_pdata;
static struct regulator *ldo6_3p3;
static struct regulator *ldo7_1p8;
static struct regulator *vdd_cx;
@@ -1062,8 +1063,10 @@
}
/* Notify the initial Id status */
pmic_id_detect(&pmic_id_det.work);
+ msm_otg_pdata.pmic_id_irq = PMICID_INT;
} else {
free_irq(PMICID_INT, 0);
+ msm_otg_pdata.pmic_id_irq = 0;
cancel_delayed_work_sync(&pmic_id_det);
notify_vbus_state_func_ptr = NULL;
ret = pm8901_mpp_config_digital_out(1,