mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 23:23:31 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
26 lines
685 B
Diff
26 lines
685 B
Diff
From 68587d886984bbae2e7ea6f419d5feabcd24a53e Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 6 May 2022 12:24:31 +0200
|
|
Subject: [PATCH] clk: Add locking to clk_get_rate_range
|
|
|
|
clk_get_rate_range() is missing the proper locks, making lockdep
|
|
complain.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/clk/clk.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/clk/clk.c
|
|
+++ b/drivers/clk/clk.c
|
|
@@ -2589,7 +2589,9 @@ void clk_get_rate_range(struct clk *clk,
|
|
if (!clk || !min || !max)
|
|
return;
|
|
|
|
+ clk_prepare_lock();
|
|
clk_core_get_boundaries(clk->core, min, max);
|
|
+ clk_prepare_unlock();
|
|
}
|
|
EXPORT_SYMBOL_GPL(clk_get_rate_range);
|
|
|