dwc->maximum_speed = USB_SPEED_HIGH;
}
-<<<<<<< HEAD
- ret = dwc3_core_get_phy(dwc);
- if (ret) {
- dev_err(dwc->dev, "Can't get PHY structure!!!\n");
-=======
- ret = dwc3_phy_setup(dwc);
- if (ret)
->>>>>>> android-4.14-p
- goto err0;
- }
-
/* Adjust SOF accuracy only for revisions >= 2.50a */
if (dwc->revision < DWC3_REVISION_250A)
dwc->adj_sof_accuracy = 0;
-<<<<<<< HEAD
- ret = dwc3_core_soft_reset(dwc);
- if (ret) {
- dev_err(dwc->dev, "Can't core_soft_reset!!!(%d)\n", ret);
- goto err0;
-=======
if (!dwc->ulpi_ready) {
ret = dwc3_core_ulpi_init(dwc);
if (ret)
goto err0;
dwc->ulpi_ready = true;
->>>>>>> android-4.14-p
}
if (!dwc->phys_ready) {
phy_exit(dwc->usb2_generic_phy);
phy_exit(dwc->usb3_generic_phy);
-<<<<<<< HEAD
phy_power_off(dwc->usb2_generic_phy);
phy_power_off(dwc->usb3_generic_phy);
dwc->link_state = DWC3_LINK_STATE_SS_DIS;
-=======
err0a:
dwc3_ulpi_exit(dwc);
->>>>>>> android-4.14-p
err0:
return ret;
}
else
dep->flags |= DWC3_EP_STALL;
} else {
-<<<<<<< HEAD
-=======
-
->>>>>>> android-4.14-p
ret = dwc3_send_clear_stall_ep_cmd(dep);
if (ret)
dev_err(dwc->dev, "failed to clear STALL on %s\n",
goto err4;
}
-<<<<<<< HEAD
if (dwc->dotg) {
ret = otg_set_peripheral(&dwc->dotg->otg, &dwc->gadget);
if (ret) {
goto err4;
}
}
-=======
- dwc3_gadget_set_speed(&dwc->gadget, dwc->maximum_speed);
->>>>>>> android-4.14-p
+
+ /* Kernel minor update
+ * dwc3_gadget_set_speed(&dwc->gadget, dwc->maximum_speed);
+ */
return 0;
__le32 __iomem **port_array;
struct xhci_bus_state *bus_state;
unsigned long flags;
-<<<<<<< HEAD
int is_port_connect = 0;
- int ret;
-=======
u32 portsc_buf[USB_MAXCHILDREN];
bool wake_enabled;
->>>>>>> android-4.14-p
max_ports = xhci_get_ports(hcd, &port_array);
bus_state = &xhci->bus_state[hcd_index(hcd)];
t2 = xhci_port_state_to_neutral(t1);
portsc_buf[port_index] = 0;
-<<<<<<< HEAD
- if ((t1 & PORT_PE) && !(t1 & PORT_PLS_MASK)) {
- slot_id = xhci_find_slot_id_by_port(hcd, xhci,
- port_index + 1);
- if (slot_id) {
-=======
/* Bail out if a USB3 port has a new device in link training */
if ((hcd->speed >= HCD_USB3) &&
(t1 & PORT_PLS_MASK) == XDEV_POLLING) {
if ((t1 & PORT_PE) && (t1 & PORT_PLS_MASK) == XDEV_U0) {
if ((t1 & PORT_CSC) && wake_enabled) {
bus_state->bus_suspended = 0;
->>>>>>> android-4.14-p
spin_unlock_irqrestore(&xhci->lock, flags);
xhci_dbg(xhci, "Bus suspend bailout, port connect change\n");
return -EBUSY;
}
t1 = xhci_port_state_to_neutral(t1);
-<<<<<<< HEAD
- if (t1 != t2) {
- writel(t2, port_array[port_index]);
- }
- }
-
- if (is_port_connect && usb_hcd_is_primary_hcd(hcd)) {
- xhci_info(xhci, "port is connected, phy vendor set\n");
- ret = phy_vendor_set(xhci->main_hcd->phy, 1, 0);
- if (ret) {
- xhci_info(xhci, "phy vendor set fail\n");
- spin_unlock_irqrestore(&xhci->lock, flags);
- return ret;
- }
-=======
if (t1 != t2)
portsc_buf[port_index] = t2;
}
}
}
writel(portsc_buf[port_index], port_array[port_index]);
->>>>>>> android-4.14-p
}
xhci_info(xhci, "%s 'HC_STATE_SUSPENDED' portcon: %d primary_hcd: %d\n",
struct usb_hcd *hcd = platform_get_drvdata(dev);
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
struct clk *clk = xhci->clk;
-<<<<<<< HEAD
+ struct usb_hcd *shared_hcd = xhci->shared_hcd;
int timeout = 0;
dev_info(&dev->dev, "XHCI PLAT REMOVE\n");
}
}
xhci_dbg(xhci, "%s: waited %dmsec", __func__, timeout);
-=======
- struct usb_hcd *shared_hcd = xhci->shared_hcd;
->>>>>>> android-4.14-p
xhci->xhc_state |= XHCI_STATE_REMOVING;
xhci->xhci_alloc->offset = 0;
#define XHCI_NO_64BIT_SUPPORT BIT_ULL(23)
#define XHCI_MISSING_CAS BIT_ULL(24)
/* For controller with a broken Port Disable implementation */
-<<<<<<< HEAD
-#define XHCI_BROKEN_PORT_PED (1 << 25)
-#define XHCI_LIMIT_ENDPOINT_INTERVAL_7 (1 << 26)
-#define XHCI_U2_DISABLE_WAKE (1 << 27)
-#define XHCI_ASMEDIA_MODIFY_FLOWCONTROL (1 << 28)
-#define XHCI_L2_SUPPORT (1 << 29)
-#define XHCI_SUSPEND_DELAY (1 << 30)
-=======
#define XHCI_BROKEN_PORT_PED BIT_ULL(25)
#define XHCI_LIMIT_ENDPOINT_INTERVAL_7 BIT_ULL(26)
#define XHCI_U2_DISABLE_WAKE BIT_ULL(27)
#define XHCI_INTEL_USB_ROLE_SW BIT_ULL(31)
#define XHCI_RESET_PLL_ON_DISCONNECT BIT_ULL(34)
#define XHCI_SNPS_BROKEN_SUSPEND BIT_ULL(35)
->>>>>>> android-4.14-p
+#define XHCI_L2_SUPPORT BIT_ULL(63)
unsigned int num_active_eps;
unsigned int limit_active_eps;