]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
phy: tegra: xusb: remove a stray unlock
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 23 Apr 2025 13:08:23 +0000 (16:08 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 11:21:18 +0000 (12:21 +0100)
We used to take a lock in tegra186_utmi_bias_pad_power_on() but now we
have moved the lock into the caller.  Unfortunately, when we moved the
lock this unlock was left behind and it results in a double unlock.
Delete it now.

Fixes: b47158fb4295 ("phy: tegra: xusb: Use a bitmask for UTMI pad power state tracking")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/aAjmR6To4EnvRl4G@stanley.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb-tegra186.c

index cc7b8a6a999f7483182625e99bffa92bf2949e0d..23a23f2d64e5866fdbd81cabed9ea27e78ea1d6f 100644 (file)
@@ -656,8 +656,6 @@ static void tegra186_utmi_bias_pad_power_on(struct tegra_xusb_padctl *padctl)
        } else {
                clk_disable_unprepare(priv->usb2_trk_clk);
        }
-
-       mutex_unlock(&padctl->lock);
 }
 
 static void tegra186_utmi_bias_pad_power_off(struct tegra_xusb_padctl *padctl)