msm: board-msm7627a: Disable GDFS power mode when the USB is connected

Vote against GDFS power mode, when the USB is connected on 8x25.
Currently GDFS power mode is allowed when the USB is connected and
the mode latency set to "500usec's". While data transfer is
happening, GDFS shouldn't be allowed as there is chance of missing
some usb interrupts, which might lead to system instability.

Change-Id: I51ff494ef75c524339e3f9d36bcd54531cc443fb
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm7x27a.c b/arch/arm/mach-msm/board-msm7x27a.c
index 8941b6d..7b00440 100644
--- a/arch/arm/mach-msm/board-msm7x27a.c
+++ b/arch/arm/mach-msm/board-msm7x27a.c
@@ -1059,14 +1059,16 @@
 
 static void __init msm7x27a_otg_gadget(void)
 {
-	msm_otg_pdata.swfi_latency =
-		msm7x27a_pm_data[
-		MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency;
 	if (cpu_is_msm8625()) {
+		msm_otg_pdata.swfi_latency =
+		msm8625_pm_data[MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT].latency;
 		msm8625_device_otg.dev.platform_data = &msm_otg_pdata;
 		msm8625_device_gadget_peripheral.dev.platform_data =
 			&msm_gadget_pdata;
 	} else {
+		msm_otg_pdata.swfi_latency =
+		msm7x27a_pm_data[
+		MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency;
 		msm_device_otg.dev.platform_data = &msm_otg_pdata;
 		msm_device_gadget_peripheral.dev.platform_data =
 			&msm_gadget_pdata;
diff --git a/arch/arm/mach-msm/board-qrd7627a.c b/arch/arm/mach-msm/board-qrd7627a.c
index 86bf205..782bb9e 100644
--- a/arch/arm/mach-msm/board-qrd7627a.c
+++ b/arch/arm/mach-msm/board-qrd7627a.c
@@ -839,15 +839,16 @@
 
 static void __init qrd7627a_otg_gadget(void)
 {
-	msm_otg_pdata.swfi_latency = msm7627a_pm_data
-		[MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency;
-
 	if (cpu_is_msm8625()) {
+		msm_otg_pdata.swfi_latency = msm8625_pm_data
+		[MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT].latency;
 		msm8625_device_otg.dev.platform_data = &msm_otg_pdata;
 		msm8625_device_gadget_peripheral.dev.platform_data =
 					&msm_gadget_pdata;
 
 	} else {
+	msm_otg_pdata.swfi_latency = msm7627a_pm_data
+		[MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency;
 		msm_device_otg.dev.platform_data = &msm_otg_pdata;
 		msm_device_gadget_peripheral.dev.platform_data =
 					&msm_gadget_pdata;