bcm53xx: backport DTS changes queued for the 4.21
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 180-usb-xhci-add-support-for-performing-fake-doorbell.patch
index ac622010fffb73a95f598515b847fa0a1baad94a..010842746459f8130f87592e7940a7a12e7a350e 100644 (file)
@@ -40,7 +40,7 @@ it on BCM4708 family.
  /* called during probe() after chip reset completes */
 --- a/drivers/usb/host/xhci.c
 +++ b/drivers/usb/host/xhci.c
-@@ -153,6 +153,49 @@ int xhci_start(struct xhci_hcd *xhci)
+@@ -168,6 +168,49 @@ int xhci_start(struct xhci_hcd *xhci)
        return ret;
  }
  
@@ -90,7 +90,7 @@ it on BCM4708 family.
  /*
   * Reset a halted HC.
   *
-@@ -536,10 +579,20 @@ static int xhci_init(struct usb_hcd *hcd
+@@ -551,10 +594,20 @@ static int xhci_init(struct usb_hcd *hcd
  
  static int xhci_run_finished(struct xhci_hcd *xhci)
  {
@@ -114,7 +114,7 @@ it on BCM4708 family.
        xhci->shared_hcd->state = HC_STATE_RUNNING;
        xhci->cmd_ring_state = CMD_RING_STATE_RUNNING;
  
-@@ -549,6 +602,10 @@ static int xhci_run_finished(struct xhci
+@@ -564,6 +617,10 @@ static int xhci_run_finished(struct xhci
        xhci_dbg_trace(xhci, trace_xhci_dbg_init,
                        "Finished xhci_run for USB3 roothub");
        return 0;
@@ -127,11 +127,11 @@ it on BCM4708 family.
  /*
 --- a/drivers/usb/host/xhci.h
 +++ b/drivers/usb/host/xhci.h
-@@ -1835,6 +1835,7 @@ struct xhci_hcd {
- #define XHCI_LIMIT_ENDPOINT_INTERVAL_7        (1 << 26)
- #define XHCI_U2_DISABLE_WAKE  (1 << 27)
- #define XHCI_ASMEDIA_MODIFY_FLOWCONTROL       (1 << 28)
-+#define XHCI_FAKE_DOORBELL    (1 << 29)
- #define XHCI_SUSPEND_DELAY    (1 << 30)
+@@ -1840,6 +1840,7 @@ struct xhci_hcd {
+ #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)
++#define XHCI_FAKE_DOORBELL    BIT_ULL(36)
  
        unsigned int            num_active_eps;
+       unsigned int            limit_active_eps;