Stable Archive on
 help / color / Atom feed
* [PATCH] opp: of: drop incorrect lockdep_assert_held()
@ 2019-10-10 10:30 Viresh Kumar
  0 siblings, 0 replies; only message in thread
From: Viresh Kumar @ 2019-10-10 10:30 UTC (permalink / raw)
  To: Viresh Kumar, Nishanth Menon, Stephen Boyd
  Cc: Viresh Kumar, linux-pm, Vincent Guittot, Rafael Wysocki, v5 . 0+,
	Niklas Cassel, linux-kernel

_find_opp_of_np() doesn't traverse the list of OPP tables but instead
just the entries within an OPP table and so only requires to lock the
OPP table itself.

The lockdep_assert_held() was added there by mistake and isn't really

Fixes: 5d6d106fa455 ("OPP: Populate required opp tables from "required-opps" property")
Cc: v5.0+ <> # v5.0+
Reported-by: Niklas Cassel <>
Signed-off-by: Viresh Kumar <>
 drivers/opp/of.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index 1813f5ad5fa2..6dc41faf74b5 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -77,8 +77,6 @@ static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table,
 	struct dev_pm_opp *opp;
-	lockdep_assert_held(&opp_table_lock);
 	list_for_each_entry(opp, &opp_table->opp_list, node) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 10:30 [PATCH] opp: of: drop incorrect lockdep_assert_held() Viresh Kumar

Stable Archive on

Archives are clonable:
	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox