|
@@ -29,7 +29,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
* @phyif: PHY interface width
|
|
|
* @lock: Spinlock that protects all the driver data structures
|
|
|
* @priv: Stores a pointer to the struct usb_hcd
|
|
|
-@@ -913,6 +914,7 @@ struct dwc2_hsotg {
|
|
|
+@@ -914,6 +915,7 @@ struct dwc2_hsotg {
|
|
|
struct usb_phy *uphy;
|
|
|
struct dwc2_hsotg_plat *plat;
|
|
|
struct regulator_bulk_data supplies[DWC2_NUM_SUPPLIES];
|
|
@@ -63,7 +63,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
/**
|
|
|
* dwc2_enable_host_interrupts() - Enables the Host mode interrupts
|
|
|
*
|
|
|
-@@ -3278,6 +3295,7 @@ static void dwc2_conn_id_status_change(s
|
|
|
+@@ -3342,6 +3359,7 @@ static void dwc2_conn_id_status_change(s
|
|
|
|
|
|
/* B-Device connector (Device Mode) */
|
|
|
if (gotgctl & GOTGCTL_CONID_B) {
|
|
@@ -71,7 +71,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
/* Wait for switch to device mode */
|
|
|
dev_dbg(hsotg->dev, "connId B\n");
|
|
|
if (hsotg->bus_suspended) {
|
|
|
-@@ -4384,6 +4402,9 @@ static int _dwc2_hcd_start(struct usb_hc
|
|
|
+@@ -4448,6 +4466,9 @@ static int _dwc2_hcd_start(struct usb_hc
|
|
|
}
|
|
|
|
|
|
spin_unlock_irqrestore(&hsotg->lock, flags);
|
|
@@ -81,7 +81,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-@@ -4411,6 +4432,8 @@ static void _dwc2_hcd_stop(struct usb_hc
|
|
|
+@@ -4475,6 +4496,8 @@ static void _dwc2_hcd_stop(struct usb_hc
|
|
|
clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
|
|
|
spin_unlock_irqrestore(&hsotg->lock, flags);
|
|
|
|
|
@@ -90,7 +90,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
usleep_range(1000, 3000);
|
|
|
}
|
|
|
|
|
|
-@@ -4447,6 +4470,7 @@ static int _dwc2_hcd_suspend(struct usb_
|
|
|
+@@ -4511,6 +4534,7 @@ static int _dwc2_hcd_suspend(struct usb_
|
|
|
hprt0 |= HPRT0_SUSP;
|
|
|
hprt0 &= ~HPRT0_PWR;
|
|
|
dwc2_writel(hprt0, hsotg->regs + HPRT0);
|
|
@@ -98,7 +98,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
|
}
|
|
|
|
|
|
/* Enter hibernation */
|
|
|
-@@ -4527,6 +4551,8 @@ static int _dwc2_hcd_resume(struct usb_h
|
|
|
+@@ -4591,6 +4615,8 @@ static int _dwc2_hcd_resume(struct usb_h
|
|
|
spin_unlock_irqrestore(&hsotg->lock, flags);
|
|
|
dwc2_port_resume(hsotg);
|
|
|
} else {
|