Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp355532rdh; Thu, 26 Oct 2023 04:22:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmzhwnV1wD5lKGh0KJJiQqAAOj4g+P771W5E9xIDWcsnOqeQ3Dw8VbQbfYisF49BEkI07Z X-Received: by 2002:a25:db90:0:b0:da0:7d1e:6e0 with SMTP id g138-20020a25db90000000b00da07d1e06e0mr4220120ybf.20.1698319342473; Thu, 26 Oct 2023 04:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698319342; cv=none; d=google.com; s=arc-20160816; b=VAH5TkTyP/rKBSwHBKKjeRCEOjEVkzfFFsewSP3r2yLvVx0IVg99hEbpOSsbKI4HLD Snysd3ncpJHz4/Z68n+weQKTqKZU7+NN+JBxLklHUeUl36OQBEQLkW8GUzap4TsDU72q UAZq+jYeA8l2eoro/TmDgvu3DPHf6ZekRXpGAH9LAAWumb8JFBva4uurBBKNGxkrpR55 Guem+K62oS+Zajs2y83KeoSbLbK8uHTgBfsnQZB+DIaQYbTB9qA1UWNL4vX3q67O8G2o sOj1Wx7Nv+RspJh9AMCgrhTR3ClT8zKuUe98buMLkdpEze77zfGryTqqTN85IeuuiDJF nBMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WSKeXxSFvdhUI991XGbb0vn+r/xj55RtU6bSV+aiUUI=; fh=9Tb51X6HIsPHgodcRNn/bP6zFaGTfo5EkO3Dm1gJ5Tw=; b=Q5kJ1L+60dWO+1/egPNcotkRbH0mx8JAbbLbJ53HLPoSowxhCSPh6WTmIccfMCsVcC /o9iu+J7ezTs9B0PSuBuAgSJDjxA02bV6G3sEy2lQYJtaAGZ7eyjoJqjvC1Lt9bdJol7 Lodx5pBSKEFRgyVnlkV38jPF9EAba1NFd5Byi+rsc1D9zLODBVkI11PvYtUUG88I/p8v ym4e9CqKSCioo3baM7iMX4d3+fDprBhp7i91yNSI+k/N0qAmAkSHJMy87Gw7Y9WfWrOw jhLpmlz/zZ7tWlFbAb/9/GUz4sNeiiduG/bUMi9D44Da0pdGbu9M/KMaMyFIiQJpPcfo CJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kJRZvA49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 63-20020a250442000000b00da037caea46si7153888ybe.680.2023.10.26.04.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kJRZvA49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AA3D580AF24B; Thu, 26 Oct 2023 04:21:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjJZLVc (ORCPT + 99 others); Thu, 26 Oct 2023 07:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjJZLVa (ORCPT ); Thu, 26 Oct 2023 07:21:30 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E86A191 for ; Thu, 26 Oct 2023 04:21:27 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-507bd64814fso1023732e87.1 for ; Thu, 26 Oct 2023 04:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698319286; x=1698924086; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WSKeXxSFvdhUI991XGbb0vn+r/xj55RtU6bSV+aiUUI=; b=kJRZvA499Io+GyM5T3GfbM3+h2hB/B6Mk9Eae3A3WpZL3lRI6tPy0ObDLxUXaF8tSX Of21RetbJ/j6AwP+TzQeNu7pFGggXs+c7GAzdxka3mr7ojrRtoLrPcYHD1X0fpmfFRTN irIcgvcBL7WENLRrwexE9AJ2GXrZUDEkHcsZevJOFqewIm4EytMRMS/Lse8TvtotrWQb B91fIkJsDJAzpXi2sGvlCHUtq1mVrgMq9qj2SgAaHqf+ZwtuumH6AbAm6fMj1Fs+uc42 j/Q9x0e2tASb10eCvnBxdJz96Uo+N3J70ks82CaAOidkX8S9A0PXWPQLa282z8z7G+Z9 Gj4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698319286; x=1698924086; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WSKeXxSFvdhUI991XGbb0vn+r/xj55RtU6bSV+aiUUI=; b=UDGxxfYqFreIGGDPv59bElgNyhEuhrBx1A/Ko8a7cVf7uy1Ykx8F6RbDU1HHgwnR6P HH4Z+xDZtpSn00hA4+TYgY8ckm6V7t+mfnzdkCCohaeWsKjd6Dc8bteBvMEbQpBRd1fm l5YtT6a3ZCCeJz6TSfwfWg1WVzEQWRz58STocHoWCcaKrExfkS1+PUOirQn5WGwICrEa ycRrLBLnxfv/kCT90zTSTHB3sx+Qeu17fetUIH2QPzaq9foriflTXyHTZ88BrbqTpfAd fHlFBfdknHeIEUgAT/1u/XOFsI2xmsxpmBgn+Gx1FBnhOzGscIS1HnNzM5t3Oe4VidwT RUVA== X-Gm-Message-State: AOJu0YyBmGAhEjZRWd07cpUmVKZ+zPwM9TG9uR+1jNSHE/+v1SQrSNsW yJ4/OB7o7QLf/PI4KJ0AsjgG6Q== X-Received: by 2002:a05:6512:3094:b0:507:9f24:ad17 with SMTP id z20-20020a056512309400b005079f24ad17mr15567200lfd.43.1698319285654; Thu, 26 Oct 2023 04:21:25 -0700 (PDT) Received: from [172.30.204.123] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id q5-20020a056512210500b00507a14e18d4sm2974495lfr.222.2023.10.26.04.21.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 04:21:25 -0700 (PDT) Message-ID: <20e2801d-df4f-436e-a677-2c81d43e3273@linaro.org> Date: Thu, 26 Oct 2023 13:21:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v4 3/4] clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC Content-Language: en-US To: Bryan O'Donoghue , andersson@kernel.org, agross@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, dmitry.baryshkov@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jonathan@marek.ca, quic_tdas@quicinc.com, vladimir.zapolskiy@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231026105345.3376-1-bryan.odonoghue@linaro.org> <20231026105345.3376-4-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: <20231026105345.3376-4-bryan.odonoghue@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:21:40 -0700 (PDT) On 10/26/23 12:53, Bryan O'Donoghue wrote: > Add the sc8280xp CAMCC driver which follows the sdm845 CAMCC lineage > with additional CCI and IFE blocks and more granular clock parentage. > > Signed-off-by: Bryan O'Donoghue > --- [...] > +static struct gdsc titan_top_gdsc; > + > +static struct gdsc bps_gdsc = { > + .gdscr = 0x7004, > + .pd = { > + .name = "bps_gdsc", > + }, > + .flags = HW_CTRL | RETAIN_FF_ENABLE, This should really be HW_CTRL_TRIGGER from [1] and then downstream uses cam_bps_transfer_gdsc_control and cam_bps_get_gdsc_control to control hw (fast) or sw (normal) mode similarly in drivers/cam_icp/icp_hw/ipe_hw/ipe_soc.c for IPE [...] > + /* > + * Keep camcc_gdsc_clk always enabled: > + */ > + regmap_update_bits(regmap, 0xc1e4, BIT(0), 1); /* Keep camcc_gdsc_clk always enabled */ regmap_update_bits(regmap, 0xc1e4, BIT(0), BIT(0)); [1] https://lore.kernel.org/linux-arm-msm/20230923115008.1698384-4-abel.vesa@linaro.org/ Konrad