mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 5a709a46e4270a6130877c052260d9a6d14ac685 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Wed, 13 Apr 2022 22:22:54 -0500
|
|
Subject: [PATCH] phy: rockchip-inno-usb2: Do not lock in bvalid IRQ handler
|
|
|
|
Clearing the IRQ is atomic, so there is no need to hold the mutex.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
|
|
Link: https://lore.kernel.org/r/20220414032258.40984-4-samuel@sholland.org
|
|
Signed-off-by: Vinod Koul <vkoul@kernel.org>
|
|
---
|
|
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
@@ -913,13 +913,9 @@ static irqreturn_t rockchip_usb2phy_bval
|
|
if (!property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st))
|
|
return IRQ_NONE;
|
|
|
|
- mutex_lock(&rport->mutex);
|
|
-
|
|
/* clear bvalid detect irq pending status */
|
|
property_enable(rphy->grf, &rport->port_cfg->bvalid_det_clr, true);
|
|
|
|
- mutex_unlock(&rport->mutex);
|
|
-
|
|
rockchip_usb2phy_otg_sm_work(&rport->otg_sm_work.work);
|
|
|
|
return IRQ_HANDLED;
|