Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp200393rdb; Sat, 16 Dec 2023 05:36:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFymwq/We1R0t//Md0eKpK6i4nK/S3Zdvhi22EvtfRTv4jfdhrnG5/b0wJSiltpTPig5dzu X-Received: by 2002:a05:620a:63c4:b0:77d:a121:fc61 with SMTP id pw4-20020a05620a63c400b0077da121fc61mr12231984qkn.72.1702733762368; Sat, 16 Dec 2023 05:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702733762; cv=none; d=google.com; s=arc-20160816; b=eSeae6T523h3sRSogZ/PiuZAB+mo9VfKwSy3zuXpzvStjtkYJZ8coKabdGCdW4rFqO xoKiTIWay7RfdWZC1Miae4iH18+U+WHfwWokZ2q+bIrhWVFa9rv3yVlNj7VBvz/HR3dZ hmmG29rw1YH5QZ/QQaDEcPKg4FWuCLXSk/mqh9sPbMf4c2C9YaC0knD3qM1EhoVnS6fv YHw8exA1BOpQTnrUtnXvNxofC64ETNvu4DoPLokw0nTELSHAi3O3+Cfl/s8OrjlvvZoP bl4bbamnOV7eHqBge/s9N1aVy0sHW5f/lPD+TDlXF0YChz8G/jPblKwIS2JU0PRPxNIh 4wTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=aHlMVtszkXmKl92EYpx3ExVCb9pl0oYVuWZJzucbYgs=; fh=34MXgEuQdImw8QSLxv7pHC7mTHBwW4XeOfIi7KUSHC0=; b=pfsCr0/9pdckA8uHzXPlfbqlCVQ9PbyPZHpFsR+7MxozCTeCrMRFwB2AU7cCG0hF61 XH5MGs8CJCmcq2qo2MBO4iKloIiKW2ufsPLZZ0ymfuJnG+uedeL2oxZFlZe9KMAfsqRJ TUdP2d83QcR1MoW5o59y4ZkBmJVdihCl5+KAP/tIXb2TbVGr05ZzavHcPWBi8skkwxzo 12fsOT3THbTmS8jZUSY/xj6Xex955/PKBWyncj8881KrY9uzV2Iw5EoI0f6tXsdtVu+Y 82X9yLTTwulHAgZN1NNwQ6pM1ad1Ndf+OnUqxgiZGPBWzvhf4qxN0v3zmcX/mQ3EChug 5BnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c2bg+Fsn; spf=pass (google.com: domain of linux-kernel+bounces-2207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 10-20020a05620a040a00b0077d7da0e988si19115989qkp.337.2023.12.16.05.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 05:36:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c2bg+Fsn; spf=pass (google.com: domain of linux-kernel+bounces-2207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 15D1D1C217EA for ; Sat, 16 Dec 2023 13:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DC822C681; Sat, 16 Dec 2023 13:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c2bg+Fsn" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9D502C6B5 for ; Sat, 16 Dec 2023 13:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a1f5cb80a91so194187566b.3 for ; Sat, 16 Dec 2023 05:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702733749; x=1703338549; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aHlMVtszkXmKl92EYpx3ExVCb9pl0oYVuWZJzucbYgs=; b=c2bg+FsnrsIXIfxH6254GaUpItsd5ezMCKKRkxoIm87CUIsZzLZay6bVcpLcFBP4GS ejpnaeX4e9SnbtTVUZY9Fiiy+8iLLzQo5X6D3FrUjtHmxUjMJFexyNXds24gogUtXdmB OgJjcckNcykPn/8rZbu55CynyVJeMvA6atNUVK8qS9klzQU1rdKi7FXPOgavN8/M7OuK 6omYpNIakvHrcfQR0urKqSCfql9MCG+sAAdhyqZtuWFNRYg1wdZJtTa3dcsgBwriaSuS EbFq8lQU3zpsUrtxkUWqu2nk3xaO4WVniCPTBQReAqP0DKPaXX89DlWQSsitBU4u+nc1 Q/Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702733749; x=1703338549; h=content-transfer-encoding:in-reply-to:autocrypt: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=aHlMVtszkXmKl92EYpx3ExVCb9pl0oYVuWZJzucbYgs=; b=Y8OtqIUlcqmvp1IpRztJqzpYPbUvibnmYyVZFARyR9qH2ybmA6LXAWmK1Vx8ssLhVF TgQ7fZZiDrL1FLortNapT75OBx18U0HSEhwDHVHAQwqenTboIqGTC8cNi030/QfNEl/O 185KtM+vCFUS9DrlgYpfM108hARDU8DIspvfhDVODCYLetTOJnxVs1wSiISQZ1hwaWR9 fO6InAl2B1wVgmZWAVe3IRwsEgFgLevRb1Zvvl0xsLaHs8VfC41bsJMlOFBtbtdaOfHZ oox42JNeIhdF0AH85RJZwFnSV6A211Nt/jFVhprJCcDLBqkB0YV+/Gdf2wg9GWPLM2DZ Mp8g== X-Gm-Message-State: AOJu0Yw9BH+ViRoSy5ItmzTgXnhzLs1fzc5Is7+ucavpiFOH6qWkUtdc mnrQ2RkJeKmjT2sspH8LcI4G7A== X-Received: by 2002:a17:906:1cc2:b0:a1f:69b1:a493 with SMTP id i2-20020a1709061cc200b00a1f69b1a493mr4417183ejh.187.1702733749155; Sat, 16 Dec 2023 05:35:49 -0800 (PST) Received: from [192.168.199.59] (178235179137.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.137]) by smtp.gmail.com with ESMTPSA id tq24-20020a170907c51800b00a1f9543a540sm9191936ejc.160.2023.12.16.05.35.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Dec 2023 05:35:48 -0800 (PST) Message-ID: <993d76c7-ceab-4381-b63e-794c77f7d0df@linaro.org> Date: Sat, 16 Dec 2023 14:35:45 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 08/10] clk: qcom: Add GPU clock driver for x1e80100 Content-Language: en-US To: Abel Vesa , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Neil Armstrong , Vladimir Zapolskiy , Dmitry Baryshkov Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Rajendra Nayak References: <20231214-x1e80100-clock-controllers-v2-0-2b0739bebd27@linaro.org> <20231214-x1e80100-clock-controllers-v2-8-2b0739bebd27@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI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FgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231214-x1e80100-clock-controllers-v2-8-2b0739bebd27@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14.12.2023 17:49, Abel Vesa wrote: > From: Rajendra Nayak > > Add Graphics Clock Controller (GPUCC) support for X1E80100 platform. > > Signed-off-by: Rajendra Nayak > Signed-off-by: Abel Vesa > --- [...] I see no usage of clk_branch2_aon_ops, is that intended? [...] > +static struct gdsc gpu_cc_cx_gdsc = { > + .gdscr = 0x9108, > + .gds_hw_ctrl = 0x953c, > + .en_rest_wait_val = 0x2, > + .en_few_wait_val = 0x2, > + .clk_dis_wait_val = 0xf, > + .pd = { > + .name = "gpu_cc_cx_gdsc", > + }, > + .pwrsts = PWRSTS_OFF_ON, > + .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE, That's.. unusual.. Can you doublecheck these flags? > + > + /* > + * Keep clocks always enabled: > + * gpu_cc_cb_clk > + */ > + regmap_update_bits(regmap, 0x93a4, BIT(0), BIT(0)); Please make the comment inline, so: regmap_update_bits(regmap, 0x93a4, BIT(0), BIT(0)); /* GPU_CC_CB_CLK */ I have submitted another series cleaning this up and adding a helper Konrad