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>
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)
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 =