bcm53xx: add missed spin unlock to USB host patch
[openwrt/staging/wigyori.git] / target / linux / bcm53xx / patches-6.1 / 180-usb-xhci-add-support-for-performing-fake-doorbell.patch
index 37bf49c98ca4fb30e7a8e713d532c8ef796eb9ff..049b8c98d12f6f0f6322d0c95ca110c5a92e659a 100644 (file)
@@ -90,7 +90,7 @@ it on BCM4708 family.
  /*
   * Reset a halted HC.
   *
-@@ -641,6 +684,14 @@ static int xhci_run_finished(struct xhci
+@@ -641,6 +684,15 @@ static int xhci_run_finished(struct xhci
                return -ENODEV;
        }
  
@@ -98,6 +98,7 @@ it on BCM4708 family.
 +              int err = xhci_fake_doorbell(xhci, 1);
 +              if (err) {
 +                      xhci_halt(xhci);
++                      spin_unlock_irqrestore(&xhci->lock, flags);
 +                      return err;
 +              }
 +      }