|
@@ -1420,7 +1420,7 @@ static void dwc2_conn_id_status_change(struct work_struct *work)
|
|
dev_err(hsotg->dev,
|
|
dev_err(hsotg->dev,
|
|
"Connection id status change timed out\n");
|
|
"Connection id status change timed out\n");
|
|
hsotg->op_state = OTG_STATE_B_PERIPHERAL;
|
|
hsotg->op_state = OTG_STATE_B_PERIPHERAL;
|
|
- dwc2_core_init(hsotg, false, -1);
|
|
|
|
|
|
+ dwc2_core_init(hsotg, false);
|
|
dwc2_enable_global_interrupts(hsotg);
|
|
dwc2_enable_global_interrupts(hsotg);
|
|
spin_lock_irqsave(&hsotg->lock, flags);
|
|
spin_lock_irqsave(&hsotg->lock, flags);
|
|
dwc2_hsotg_core_init_disconnected(hsotg, false);
|
|
dwc2_hsotg_core_init_disconnected(hsotg, false);
|
|
@@ -1443,7 +1443,7 @@ static void dwc2_conn_id_status_change(struct work_struct *work)
|
|
hsotg->op_state = OTG_STATE_A_HOST;
|
|
hsotg->op_state = OTG_STATE_A_HOST;
|
|
|
|
|
|
/* Initialize the Core for Host mode */
|
|
/* Initialize the Core for Host mode */
|
|
- dwc2_core_init(hsotg, false, -1);
|
|
|
|
|
|
+ dwc2_core_init(hsotg, false);
|
|
dwc2_enable_global_interrupts(hsotg);
|
|
dwc2_enable_global_interrupts(hsotg);
|
|
dwc2_hcd_start(hsotg);
|
|
dwc2_hcd_start(hsotg);
|
|
}
|
|
}
|
|
@@ -3120,7 +3120,7 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
|
|
dwc2_disable_global_interrupts(hsotg);
|
|
dwc2_disable_global_interrupts(hsotg);
|
|
|
|
|
|
/* Initialize the DWC_otg core, and select the Phy type */
|
|
/* Initialize the DWC_otg core, and select the Phy type */
|
|
- retval = dwc2_core_init(hsotg, true, irq);
|
|
|
|
|
|
+ retval = dwc2_core_init(hsotg, true);
|
|
if (retval)
|
|
if (retval)
|
|
goto error2;
|
|
goto error2;
|
|
|
|
|