[openwrt/openwrt] bcm53xx: add missed spin unlock to USB host patch

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 26 07:07:13 PDT 2023


rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/81e7d1776df7b8481ad9c176fcee13041ae28d1d

commit 81e7d1776df7b8481ad9c176fcee13041ae28d1d
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Thu Oct 26 14:18:38 2023 +0200

    bcm53xx: add missed spin unlock to USB host patch
    
    Fixes: 265071af7c45 ("bcm53xx: add testing support for kernel 6.1")
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 .../180-usb-xhci-add-support-for-performing-fake-doorbell.patch        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/bcm53xx/patches-6.1/180-usb-xhci-add-support-for-performing-fake-doorbell.patch b/target/linux/bcm53xx/patches-6.1/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
index 37bf49c98c..049b8c98d1 100644
--- a/target/linux/bcm53xx/patches-6.1/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
+++ b/target/linux/bcm53xx/patches-6.1/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
@@ -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;
 +		}
 +	}




More information about the lede-commits mailing list