Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3184923rwd; Fri, 16 Jun 2023 13:35:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77nNFc2yqDC63NiaA8+4SsdsEZBcprn2iqsyexjSsfm/dfEsHgMnB/7bORQZRArO4Vm+Do X-Received: by 2002:a1f:6002:0:b0:46e:72f4:22dd with SMTP id u2-20020a1f6002000000b0046e72f422ddmr280314vkb.14.1686947729603; Fri, 16 Jun 2023 13:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686947729; cv=none; d=google.com; s=arc-20160816; b=W2MnSh+7fDdHO97DvV2q4tyVePM6aNZbbNFrQmfOs8ajgZ6rjiK9+CIPRPmXz0QVBr cPsoMRFZgcgUcbsX8R+rxI9GFXn6TN/pW7IGzk09au7OPjyrCSidKhrpd65tnrxBfC4H HmPUQihAFgWCvp0sm2koaXxLcLzDmBB30nS590/48kFCRgDg+jSp3egr9ZA+XWWC3fd0 PXhil86lAWaIICPVQeZktCRw5S9ODrrVuJ5wnzbe1zP2vtMr5TyjVmV8s/z2AetaZT6U OqxdoWeBK31dkCzlbmSl0QtZ5lcMM8cVGQXAznRRhRg/XfVMIFSkhaN3SY59ts8H8We+ MGvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=XuEf/bzcvc/CATS4uQNi5mJsEhK9ajfH7r6B+S/cXVA=; b=YvJTO4Lu+sYLuNpa7vf1u9Q3jNWre0CNzsbmTtxI9/QOhlB8uttGsGbcrzlSAordic 5rOTUEreUI3XTGg3cQb5N9zO5axRqHWDTUxs5KRgUFbJRFMmMVgJQHLWBBacnhHEXrE5 IJXe+s4SyGjL/+tAEwqorG/++7aU+PiX4skHu5zRUZo6RJniiMHiURPoI1R/lsTWeAjB sGoHe0XQwJo6hx5V9G+3+B3IzLtMcZOVa49M+cx9oF9UybXZPZyhbXLPOSZSZV8foEPl ApVsgKDMZmdzD79kzsNuiXSANOqGH1Es7/+APTyoVQoIOryKlMqFX4Oebk1/fKqoO5Ly va/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sVoqsOr9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 101-20020a17090a09ee00b0025e23a82aa3si2321932pjo.40.2023.06.16.13.35.16; Fri, 16 Jun 2023 13:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sVoqsOr9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233340AbjFPU2A (ORCPT + 99 others); Fri, 16 Jun 2023 16:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233194AbjFPU1z (ORCPT ); Fri, 16 Jun 2023 16:27:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52F53AA8; Fri, 16 Jun 2023 13:27:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F1FCF6111F; Fri, 16 Jun 2023 20:27:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5511DC433C8; Fri, 16 Jun 2023 20:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686947266; bh=Csz7AYw+SYFqJ0XXgKmMeE5PEklNTVPGlubIPxkjLaw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sVoqsOr9cUAjopFEUQzIzHhtJf2t3y7CjDYMD7EVysk1K1iJagDr2jbzP+8aQLc4A vZXX5HqTj85mG7MkGBSzIpSXUar/Mtm7Y8q2Yca8UDGlekSXZtjvibxRo8RSgAovD8 kgLtqS6kU0/64qxaXrGoaVelj8ZeH3W6ZOYrnXDqtYybfAPcOK3RHZ7H+6GsZDSAjO jKCM8AxnTT3zAsw7rB//9VQARkYkpLqnwpBIxVpVFdLKURUr6nCEt+2xCDzPjqUyGV 7XBdtDxWDJJuk22fx8WwDvptKo9evm0wCAtsR0btB9zTF2Q94N/W01g9X8hk0juO4a jIRB4ch3rx48g== Message-ID: <70c39db97475939719720ab1902aa1c1.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <825f06c1-cf87-c0e3-a9fc-f4ec0edaa0f8@linaro.org> References: <20230526-topic-smd_icc-v6-0-263283111e66@linaro.org> <20230526-topic-smd_icc-v6-18-263283111e66@linaro.org> <825f06c1-cf87-c0e3-a9fc-f4ec0edaa0f8@linaro.org> Subject: Re: [PATCH v6 18/22] clk: qcom: smd-rpm: Separate out interconnect bus clocks From: Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org To: Andy Gross , Bjorn Andersson , Conor Dooley , Evan Green , Georgi Djakov , Konrad Dybcio , Krzysztof Kozlowski , Leo Yan , Michael Turquette , Rob Herring Date: Fri, 16 Jun 2023 13:27:42 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Konrad Dybcio (2023-06-15 00:49:59) > On 15.06.2023 02:48, Stephen Boyd wrote: > > Quoting Konrad Dybcio (2023-06-14 11:04:37) > >> @@ -1332,6 +1275,15 @@ static int rpm_smd_clk_probe(struct platform_de= vice *pdev) > >> goto err; > >> } > >> =20 > >> + for (i =3D 0; i < desc->num_icc_clks; i++) { > >> + if (!desc->icc_clks[i]) > >> + continue; > >> + > >> + ret =3D clk_smd_rpm_handoff(desc->icc_clks[i]); > >=20 > > This API can probably take a const struct clk_smd_rpm pointer as well. > It would be great, but ideally we want to set r->enabled in that func > for !bus clocks (for unused clk cleanup). I could probably introduce a > separate function for the icc clocks that takes const. >=20 Sure. Or have this take const and in the clk driver set r->enabled after calling it. That's future code though, so just make it take const?