From patchwork Sun Oct 27 21:01:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 177872 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2544903ill; Sun, 27 Oct 2019 14:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAks/qpZ9822RfcjSCWtKigIeaZGhhW+e0NJSmr+8xVWlwHa2xlHC2oXFPLpEs2gbsmAuw X-Received: by 2002:a50:eb4d:: with SMTP id z13mr15869713edp.175.1572211560176; Sun, 27 Oct 2019 14:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572211560; cv=none; d=google.com; s=arc-20160816; b=Nk7E5lujqZVBgA/KHTgERd5yM74hsIt4WizQd7ZoEllYIw4KRzybD0fxraQszOBEcJ 49ZmWGjBEwHYdJlCFvJthrCGkX4qMyalJTnJgwyFwZV55eRQQ0Wxhq8iPMqtyp0DGXj9 XuDUo2ojnhatzvjYOLGUL3lh9/q1MKSH9CT5btc8pz7PjaSeXm2erGZIuHJah1ONIkGj Spz2mvi1FWuOI3Kg2NEJil6Q9+Q3ZIjs3FEUQjY7ydj9l0Lg1o4bTuiwkUfx5zwxyGnC rVQrM1eub1cXMnbtJ3cVPkqqJWg0iGgU46ToJeezajYa/LI9rugdEvHyakxkPXPdB4pR O97g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rVMnNF7gZBLOgPYDVmBvMyBNhNr5tttq8vTYlmEAFXI=; b=sma1M1wRnO5LQbTZakNyTmZi++UJ/AXCoTCtB9ndcWH7F5/RnbwoN3fdWkst8duV2l Qw9ztA9p1kwzRiX6CVu0B1PM+vn6zLlGIvykSoxUv9Fs2JvIF2VzmMG/jXvEPfq2qB5y s9yD4T6IsVrm9fddjw7U5NaK49lGaDSDPuYEDMxrveOERMpcD9/02VhEEcSzL0VqYjlE xq7g0IUAZyABCJjFPDMeK+yd92S0deukkwXnfP9bys1DQ3YfFdzLAl/CRh+1w7DhuM0x Gq3PBwvdOZW5KGbEWtzQmTYPleYsOrEh9jx+F67TB8G1PVVw3AvEPmHELuSeGGiLXJV8 Ao4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GV3CVZIo; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si6700795edc.195.2019.10.27.14.25.59; Sun, 27 Oct 2019 14:26:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GV3CVZIo; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732833AbfJ0VZ6 (ORCPT + 14 others); Sun, 27 Oct 2019 17:25:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:47872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732829AbfJ0VZ5 (ORCPT ); Sun, 27 Oct 2019 17:25:57 -0400 Received: from localhost (100.50.158.77.rev.sfr.net [77.158.50.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFBC821D80; Sun, 27 Oct 2019 21:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572211557; bh=Eof4RQ75s/RksPlJ6cpa2YwMVmYN29cmy7xpvAAcZqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GV3CVZIo+2xgAEO5tTaHslDmsxhIeHK/ViAQWOclEpg0XaC9XgZmgAKVrzIRojJAx qu2UsR8XNZQlh7UrzbCLhso2R2jzWSAaD3CyT/lTXr+v6hKDBNY55tg+eOyYYqHuTZ tj12Vwf8Hq0OdJuVS0Wxdn+iuR1lCLKOmJSbH3ok= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Niklas Cassel , Viresh Kumar Subject: [PATCH 5.3 194/197] opp: of: drop incorrect lockdep_assert_held() Date: Sun, 27 Oct 2019 22:01:52 +0100 Message-Id: <20191027203406.961951101@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191027203351.684916567@linuxfoundation.org> References: <20191027203351.684916567@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Viresh Kumar commit f2edbb6699b0bc6e4f789846b99007200546c6c2 upstream. _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 required. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/opp/of.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -77,8 +77,6 @@ static struct dev_pm_opp *_find_opp_of_n { struct dev_pm_opp *opp; - lockdep_assert_held(&opp_table_lock); - mutex_lock(&opp_table->lock); list_for_each_entry(opp, &opp_table->opp_list, node) {