]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
usb: phy: tegra:set suspend flag true while bootup
authorRakesh Bodla <rbodla@nvidia.com>
Fri, 21 Mar 2014 09:28:47 +0000 (14:58 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Tue, 1 Apr 2014 12:53:26 +0000 (05:53 -0700)
Set the suspended flag to true during bootup. With
this vbus/id notifications will be ignored until
gadget driver is ready.

Bug 1473703

Change-Id: I5e1d0a762737d1ca0232437f1049f8c05df47530
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/384903
(cherry picked from commit 22cfe92821bdfbcf08b681b25c31d308aec8033a)
Reviewed-on: http://git-master/r/387465
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/phy/tegra-otg.c

index 1b3b95d5513421d785069c2b37e0303e792b52b7..0709fe6a282f8ba8d7afabc04200ab52d50c9bdc 100644 (file)
@@ -494,6 +494,7 @@ static int tegra_otg_set_peripheral(struct usb_otg *otg,
        otg->gadget = gadget;
 
        val = enable_interrupt(tegra, true);
+       tegra->suspended = false;
 
        if (((val & USB_ID_STATUS) || tegra->support_pmu_id) &&
                 (val & USB_VBUS_STATUS) && !tegra->support_pmu_vbus)
@@ -701,7 +702,7 @@ static int tegra_otg_conf(struct platform_device *pdev)
        tegra_clone = tegra;
 
        tegra->interrupt_mode = true;
-       tegra->suspended = false;
+       tegra->suspended = true;
        tegra->turn_off_vbus_on_lp0 =
                        pdata->ehci_pdata->u_data.host.turn_off_vbus_on_lp0;
        tegra->support_y_cable =