Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6458528rdb; Tue, 2 Jan 2024 02:36:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXyK6jMT8QySgPyADVG5kQcYYkFWpnnukB1/WkXvrAsgoG9Q/lj9Jh3h8K0RMJfaKAdt3p X-Received: by 2002:a9d:7e82:0:b0:6d9:dfa5:1c8d with SMTP id m2-20020a9d7e82000000b006d9dfa51c8dmr8167818otp.47.1704191765351; Tue, 02 Jan 2024 02:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191765; cv=none; d=google.com; s=arc-20160816; b=Aj3Ywx75CKYKYBMlRKj68l4WhHowITOvIpgnV5A6n53A2IAKEXrDeilPJqscaI/qqq LFVLuXNnmwYbXSd9V8clVtLQEhCRWg0kbaVJQahGWP6O52vN3BUzJkXTkec46Z950rxp BCrhqtQc/QKarA0f18Z0QCaBUc7q46vSVkAr/A80BtqKhwrQvNMRiErLfrgubZf1UAgC GEPmyKeRk8VrNgVsT4JRz+IxuItPNoXDOof2vnZrAYnH5x3FreLgVURh9/sNTdHC6arD odtKTkP1e5xE2iWGFFzjeL5Le58GXEhdteWWQ76AFyzz6NuaIv46aCRfUv9ceEF16FWU 80uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2A4e1k3Pe3RTZJaXhkGXq1+B5A275QFFUGbOfFPlGxs=; fh=BQHA3urvnAgv0Z6dRmyyx76nk6kgY4Ga8f+MnfYj1NI=; b=eXhQd8sN5r6nYNoHvteQfg1xw4p5ZXxmPZPkq8OJxIXYsrZgaTAfBNUDb7VHMdcAVq Kzt5BIJulXlAxdFWhraQmhZyw1ezboNa7dLByn2zNnr14rSeWMA1Ot6groSF/yZwzMIY Rh47awW/64jIoA4Tedl01PM5Q3OIBPcnFMzAsh2TZKHJLorAFWHODRYzcR/Azm1s5buZ fmp3QBb6R9yKcn70529yYMllqnkBlK4t79fZFYUXvozEFxylFLFvPAuF/DYVvCYVC8qX yRpEFOUpTY0psz4njZCLkyYAOJkw1NyqGFxFSIqAp47BQLuFAR2pmaW7u+hyivBrxi3T bxuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahrD8bll; spf=pass (google.com: domain of linux-kernel+bounces-14252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j19-20020a635953000000b005893a7c438esi20138769pgm.689.2024.01.02.02.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahrD8bll; spf=pass (google.com: domain of linux-kernel+bounces-14252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 00BA4282F81 for ; Tue, 2 Jan 2024 10:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0281D535; Tue, 2 Jan 2024 10:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ahrD8bll" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DECC8D2E5; Tue, 2 Jan 2024 10:35:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3277BC433C9; Tue, 2 Jan 2024 10:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704191755; bh=+qEKOHUuvaeqbMv2dZKawxfqy3gZZ8r/eu72eL7McOQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ahrD8bll+9T4w+l6KytnHTr1qvj782jwU07/e5AujwKXmZSyG5Kbz2K5No5U6AwVx F5/c4lVQW3yPYiklQPsMMX3mirNZDPPZt68zEmkCzlqgWFYGYcTLVGLDVVQqBs+hKo ZYRnkJG7OntiLNGotlSGToorNfbtzScB4R0P8Cfd+A3a+xlzzohiEEp3b2G1GcS2Bo bvDmeJehj97YPD57LRSIoq/1MVqA10hUO7elWepSOYQhLcC1/mpnEsReJele3BFHcG czxOtPSs/dcuSWjSESee5/bZzfYaecy0bqZU902SWXiVUu52ZelIVjCoXi9kczhh3w 98BWUb6tgzQ9w== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rKc7e-0002Im-1g; Tue, 02 Jan 2024 11:35:46 +0100 Date: Tue, 2 Jan 2024 11:35:46 +0100 From: Johan Hovold To: Konrad Dybcio Cc: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue Subject: Re: [PATCH v4 02/12] clk: qcom: Use qcom_branch_set_clk_en() Message-ID: References: <20230717-topic-branch_aon_cleanup-v4-0-32c293ded915@linaro.org> <20230717-topic-branch_aon_cleanup-v4-2-32c293ded915@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717-topic-branch_aon_cleanup-v4-2-32c293ded915@linaro.org> On Sat, Dec 30, 2023 at 02:04:04PM +0100, Konrad Dybcio wrote: > Instead of magically poking at the bit0 of branch clocks' CBCR, use > the newly introduced helper. > > Reviewed-by: Bryan O'Donoghue > Signed-off-by: Konrad Dybcio > --- > diff --git a/drivers/clk/qcom/camcc-sc8280xp.c b/drivers/clk/qcom/camcc-sc8280xp.c > index 3dcd79b01515..94db130b85e2 100644 > --- a/drivers/clk/qcom/camcc-sc8280xp.c > +++ b/drivers/clk/qcom/camcc-sc8280xp.c > @@ -3010,10 +3010,8 @@ static int camcc_sc8280xp_probe(struct platform_device *pdev) > clk_lucid_pll_configure(&camcc_pll6, regmap, &camcc_pll6_config); > clk_lucid_pll_configure(&camcc_pll7, regmap, &camcc_pll7_config); > > - /* > - * Keep camcc_gdsc_clk always enabled: > - */ > - regmap_update_bits(regmap, 0xc1e4, BIT(0), 1); > + /* Keep the critical clocks always-on */ > + qcom_branch_set_clk_en(regmap, 0xc1e4); /* CAMCC_GDSC_CLK */ I still think something along the lines of /* Keep some clocks always on */ is preferred as it is far from obvious why a camera clock would be considered "critical". Or perhaps you can come up with a better description of why we've decided not to model these clocks and just leave them ungated. > > ret = qcom_cc_really_probe(pdev, &camcc_sc8280xp_desc, regmap); > if (ret) Johan