Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1132950pxb; Fri, 22 Jan 2021 07:57:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg+BRQVwKXuYrDzz3VXG4W8nhI8KGirr/PgxRS+7/l/ZJqsMy6VxDFMEWImuPmCs51nLBD X-Received: by 2002:a17:906:a951:: with SMTP id hh17mr3602739ejb.388.1611331049879; Fri, 22 Jan 2021 07:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611331049; cv=none; d=google.com; s=arc-20160816; b=vsYWwMpUqkG/4k2ihxlKF8cPVYsYihpBGDdE2z6rvrBER/RcTJ0Xm0IsJdC9Pqo21/ jx9FBGZ/2+Gf4i4q7IkmYhaWXQ6A0olCSFZPNTKXAu2/rih6c2EXr+sQAIf+3Yz4a4dp Iy5pfJzeVSdjVLwDV3JbuamBqGcpPbkfZmLs1jIx6uCOjJcwd6r50FQcXtW7D/GJh+s7 /euWYrH6oRLpAPlaw9v8tm3VMAs2ye8EQQ0/3MRTMyA74QTGjW3/3ov2eVQqH0pmTrGi MxEMzx04nkJbZlo/Y5Bp8+zVMTm55NwoLk3IKGv/uu/81HKLHhSL0QROxMgR/789UTZC vkQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=yonCX89QVJu6vVZyxD1SJDJg1S524biXf+BKZoPov8g=; b=SO52ywD1wQeMu/XNzN2a9JFRyWhwdOnr8C4eBrlevY8eGyAJmiMPQATY8FBzW9oCfm HWVRyGUDbkq9t7wgszSuBWXWh4oDuzV2mua9kYDcP4xR4gAgwL1iRUZaLgBQotwQPfWK 7hHT4tB/VDplwT+3Pj6ZEtsA/SUsRQN1JLnpaFs+u/nUU7f6V0q7RdW68Z76bX3xemgz 6VugU2ES80rTFtnsSb/4Da4E+kuDE2V/weSPYnOZajm1MMnbQBRjso3TXF8mxDyRSjZ1 43Ugvkq3jwETryg71Se5JLwtiXwYSWWYbSfeJZyW1H6rtdckSosFDHIC3PUuhd+F/X3z 0xsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=mK6dLIX6; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=KTGN9aV7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc19si3047061ejc.634.2021.01.22.07.57.06; Fri, 22 Jan 2021 07:57:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=mK6dLIX6; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=KTGN9aV7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729240AbhAVPyA (ORCPT + 99 others); Fri, 22 Jan 2021 10:54:00 -0500 Received: from pb-smtp20.pobox.com ([173.228.157.52]:56517 "EHLO pb-smtp20.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729320AbhAVPxK (ORCPT ); Fri, 22 Jan 2021 10:53:10 -0500 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id A38F010D513; Fri, 22 Jan 2021 10:52:23 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=MfFlB8YVNmsXMB87ZaCNvKMewDs=; b=mK6dLI X6Q0l3QtcOkMNRVQ9uG+ofrigzP3If1SBjzKFz00SZ1AHGIYLz/FHv1ZFeJRJd1e m5GClbAw0sUkFqgyxnpxdikv8igacgUP8DNCQ/sAi1EBSKpc207P55Kq+dKLdXWx APS2gDbkz92WEopkH7G3mI6hvfKW198B1Eokg= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 9ABE810D511; Fri, 22 Jan 2021 10:52:23 -0500 (EST) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=9+ePAXFz3kh960y4E+FfoxuOJpYSg1dyLt9kq3gKshY=; b=KTGN9aV7tM9NaBqBbuP1oITDG3WCnFcg5KVe+Lqs/kaxR/WklGrwm2gjM5BQfaVhLF+V0p9tzeieOnriZXX1mrS4gpnyUbkMHpciqE8Zj7kE6w9m6km5psD0XTQLvXvGJ/81BkBw4j9og3Sskn6iNioXLsLZyTbyQabGtNlieGM= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 9753410D50F; Fri, 22 Jan 2021 10:52:20 -0500 (EST) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id D1E3E2DA0140; Fri, 22 Jan 2021 10:52:18 -0500 (EST) Date: Fri, 22 Jan 2021 10:52:18 -0500 (EST) From: Nicolas Pitre To: "Rafael J. Wysocki" cc: Naresh Kamboju , Geert Uytterhoeven , "Rafael J. Wysocki" , Greg Kroah-Hartman , Michael Turquette , Stephen Boyd , Russell King , Linux PM , linux-clk , open list , Mark Brown , Arnd Bergmann Subject: Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep In-Reply-To: Message-ID: <66o22n46-n7p6-3p8r-3ssp-rs8oo28n87nq@syhkavp.arg> References: <17nqrn25-rp5s-4652-o5o1-72p2oprqpq90@onlyvoer.pbz> <84r6s34s-opq7-9358-o45n-27s17084012@onlyvoer.pbz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: CF9E62EE-5CC9-11EB-AF42-E43E2BB96649-78420484!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Jan 2021, Rafael J. Wysocki wrote: > > > +/** > > > + * pm_clk_list_unlock - counterpart to pm_clk_list_lock(). > > > + * @psd: the same pm_subsys_data instance previously passed to > > > + * pm_clk_list_lock(). > > > + */ > > > +static void pm_clk_list_unlock(struct pm_subsys_data *psd) > > Locking annotations for sparse were missing here and above, so I've > added them by hand. Thanks. > Please double check the result in my linux-next branch (just pushed). There are still the following warnings: drivers/base/power/clock_ops.c:52:13: warning: context imbalance in 'pm_clk_list_lock' - wrong count at exit drivers/base/power/clock_ops.c:64:13: warning: context imbalance in 'pm_clk_list_unlock' - wrong count at exit I guess this can be silenced (still need to investigate how those annotations work). But I'm more worried about these: drivers/base/power/clock_ops.c:86:12: warning: context imbalance in 'pm_clk_op_lock' - different lock contexts for basic block drivers/base/power/clock_ops.c:131:39: warning: context imbalance in 'pm_clk_op_unlock' - unexpected unlock Those are special locking helpers indeed and I don't know if that can be dealt with. Nicolas