bcm53xx: add missed spin unlock to USB host patch
authorRafał Miłecki <rafal@milecki.pl>
Thu, 26 Oct 2023 12:18:38 +0000 (14:18 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 26 Oct 2023 14:06:49 +0000 (16:06 +0200)
Fixes: 265071af7c45 ("bcm53xx: add testing support for kernel 6.1")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
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;
 +              }
 +      }