Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp120775lqo; Tue, 7 May 2024 14:18:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXxpZHL1xgwRXlV6Z1FZwGmVh00Tz9eEup0zK2yXMKFUhIQPzxAOejJNem3Vfw9GCvTrylQmyVsZUf51eryWhcHfJ23vcri268idDi4g== X-Google-Smtp-Source: AGHT+IGMOo+KT7pFxueiD1rWyZ/wubjEa7XfRCpaollaWaJsfvL64bubLhwrwKOSnSBqszQQF3Aq X-Received: by 2002:a05:6358:280e:b0:192:b048:293f with SMTP id e5c5f4694b2df-192d2a17a64mr100658955d.5.1715116719963; Tue, 07 May 2024 14:18:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715116719; cv=pass; d=google.com; s=arc-20160816; b=RAS9gSKVO+X1AjEqCHWBKHKxFFcsbEmCJPRVNhsB8vzzxyRBMdlxcWpMHR83ePUFzw T879b53M96yLhvyEfsGGrby+brX1ugSUw2ZKDMOPOSgL/8gqY0aOKRtfrburlhNkU+e8 L/CVuYcUd8MzMviqGYSopb5Eh/ZFY+/fu40ewHPQkjFsPalcku/MQwghhUhfMy73gz7S 85AOX/lhf8YOuDmKlIeZLGAMZVScVR+RMyAR/cEfzLO2Yl+dNVGHgwvDVzLMST1mub7x i/pU8PmXllDXZ1U5VMxcFIJsY34pd4Y6XYgA9ZoA8cAbh8PWqBPE6ouOEWwckI6lUF3c J+Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JmKM6X6SN+uqrqOzykz1rBJY+bzWqLEMd29Ir34tYUg=; fh=TY1833N0x4v9BoabNDXdsBg5Wi0vrCOYly63da67EDI=; b=vFE6UlWyd0ndTOATt0uzO7vOBEvUqW8fzJ+FpkNCML2wsTT0fWqJ+v5Nj5Btdvpgy/ NPbPDHuMp6Hl2ZHaDvU65TU7an3Mo08mDMN39jGLRMtbGNf3rjXhbTzYNb7RQmd3wmuu BHbpLirSplyOPaXCCWGMB6mPsu86DOLtPT+feYc+mP/fPJASJMfqvbjxIIe1xHxL0rl5 IQ3YtkawT1tkJF23gjTe8DvDpir2ZZ+Iaj0IWgH50CB+BYS8yXgiV3LPMK03FBI8UVZB 43xAuo2brkPl6xC0ealg5HXmfhqRM9iHsNIjwck8t2TogI+VNNYp+iYCB5ahDeCZhthh 2bMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FX0U+vNB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-172212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f24-20020a635118000000b005dc491389a5si8972909pgb.812.2024.05.07.14.18.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:18:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FX0U+vNB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-172212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172212-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9000EB21806 for ; Tue, 7 May 2024 21:17:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EDA973539; Tue, 7 May 2024 21:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FX0U+vNB" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 C899973163 for ; Tue, 7 May 2024 21:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715116626; cv=none; b=WC9ukEKLITgk5JUGt46xDC8vJksOUek45PC+7v/F6eJHGDcfTy2s/De06q9ToaPYTCv69Npko1NelF48HsIxsbROuaQojWpawdX81Ipa+p6+i0EcUnqfXvCdML5ytGcZfhKs9RF2Ep6GCkERNxXglaB+vGPnPYZK0ESg9jHg+rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715116626; c=relaxed/simple; bh=Ecwjg3T8TYwyg2JlRh7RQ8tIIO5urNWWdj17N5ZVd2Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CUGLvKNZV/93RyyQOUpbPSLxFDHE8P9fCeiZrCuglOiRBadtmwLbra/KuxgcNJv7kT12TWssVbAJ7mc7QOv2a+GN7b9YS/e2wEc2NJZDqCUy+DSE+aN0syWU8iet+GJ8R32zfPMmOouP6IESo4lOHmYxNUqUPNS4jiAnI3A+52A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FX0U+vNB; arc=none smtp.client-ip=209.85.167.53 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-lf1-f53.google.com with SMTP id 2adb3069b0e04-51ff65b1e14so4338725e87.2 for ; Tue, 07 May 2024 14:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715116623; x=1715721423; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JmKM6X6SN+uqrqOzykz1rBJY+bzWqLEMd29Ir34tYUg=; b=FX0U+vNBG4DXc5qqtxWmyZH/y9WJbfnHuZpzqcXWDhOO0hiR1AUAUXtJIMuw5kMi4k OXBP0bIQROnv3dfe4f0pEiT2Jhix1ez6U0G7g7e7CG4lnqR10jW7MAwXPAWG3Qriohso tONwAOnvFKVGeA58EjQIGP3AyX7fIGVvkdZ0q+XQpNXSHjuH7Wa7m4ymNNbg66H1/JVe 71oH3EFxBazoXaxXP1dATFqlIER5dobOC5JEGZfhOJH2p/dm4Gq7vkpTSJ0/EsNmE4U4 Enbsv8FfsypIZ/EsWQ912qevbcFMk0+V5rPiuabDXyiwm5KJfEblWRjnm1y3H6fjX/0U SWOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715116623; x=1715721423; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JmKM6X6SN+uqrqOzykz1rBJY+bzWqLEMd29Ir34tYUg=; b=vWMRMzVGCqFAhONbOYj2l7YI91iSRUg+3XbAAd+UdMINGMTfF9rI8/89xpO6abG/Ip AYhnhcEFLK8eRNl0emgbHS6e+XsC+FuKFIHmS5Rvy5NkAGyZmSvEGVnGL8GYR+K5ZV0Q uDMznfdE9WR0pHbKLhrSbijsdc2eGmRX/hju0UMxpiJRlmRWfwz3w4qpJwpI4onYHZtX ORI4wBK7WU97SyLghOkOvl19nrGvLOtoL974jDBKepOkgXi+F1jQt9NC+9UAFeUoIr/b 0w1YWai0fkQauXM6ZjchIrlMQph/WpnVE7jtvPmnj1nIqJmNcAYjQ6oXmJoqPyRLi1bP L8dg== X-Forwarded-Encrypted: i=1; AJvYcCXnuURM96T2voCGmePIJXd7KkD7SSbyfpAUEOwWo96GGx4nSCXh9omPgTNrydM5CU+L5xmvd3CptC59HrPxrhXUJqTASGoE3QYpd/7S X-Gm-Message-State: AOJu0YyutisrfUzg0frkhX1ktva/VNWioaJ6VGvLvO7Q9fiBuCk6l8g2 N/NrCNbIUP6CnJtq8J/0YmNqsAjEebYJ5wMWGur3xTc82OKJdtgONGCWXnf7idIlgDYT2s2y2PR vYdc= X-Received: by 2002:a05:6512:4845:b0:51d:162e:bf9e with SMTP id 2adb3069b0e04-5217c46c382mr454259e87.15.1715116622848; Tue, 07 May 2024 14:17:02 -0700 (PDT) Received: from [172.30.204.63] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id c3-20020ac244a3000000b00515bad4cd0asm2237431lfm.155.2024.05.07.14.17.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 14:17:02 -0700 (PDT) Message-ID: Date: Tue, 7 May 2024 23:17:01 +0200 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] clk: qcom: gcc-sm8450: set OPS_PARENT_ENABLE on gcc_sdcc2_apps_clk_src To: Stephen Boyd , Bjorn Andersson , Michael Turquette , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov References: <20240427-topic-8450sdc2-v1-1-631cbb59e0e5@linaro.org> <2337ba58adb3fb127710bead9b8665a9.sboyd@kernel.org> <11bd7146-30cd-4b71-b2ca-d76875763731@linaro.org> <6ba2967c6c9d24e3f1c9b76496176010.sboyd@kernel.org> <3a3c4279-a254-48d0-91ad-70b7f1e3eb77@linaro.org> <7baef7a173dc4d1ecf8b0dafde565b1a.sboyd@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <7baef7a173dc4d1ecf8b0dafde565b1a.sboyd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/7/24 22:28, Stephen Boyd wrote: > Quoting Konrad Dybcio (2024-05-07 06:51:04) >> >> without PARENT_OPS_ENABLE: >> >> [ 3.326891] sdhci_msm 8804000.mmc: Got CD GPIO >> [ 3.336839] scsi host0: ufshcd >> [ 3.337105] gcc_sdcc2_apps_clk_src is DISABLED @ set_rate >> [ 3.346339] ------------[ cut here ]------------ >> [ 3.351093] gcc_sdcc2_apps_clk_src: rcg didn't update its configuration. >> [ 3.351114] WARNING: CPU: 1 PID: 11 at drivers/clk/qcom/clk-rcg2.c:133 update_config+0xc8/0xd8 >> >> [...] >> >> [ 3.610523] gcc_sdcc2_apps_clk_src is ENABLED @ set_rate >> >> >> with PARENT_OPS_ENABLE: >> >> [ 3.331419] sdhci_msm 8804000.mmc: Got CD GPIO >> [ 3.336569] gcc_sdcc2_apps_clk_src is DISABLED @ set_rate >> [ 3.344795] scsi host0: ufshcd >> [ 3.355122] qcrypto 1dfa000.crypto: Adding to iommu group 5 >> [ 3.363567] remoteproc remoteproc0: 2400000.remoteproc is available >> [ 3.364729] gcc_sdcc2_apps_clk_src is ENABLED @ set_rate >> >> after testing it both ways, I realized it wasn't supposed to make a >> difference in this regard, but I suppose I can paste both results anyway.. >> > > Can you share your patch that prints the message? What bit are you > checking in the hardware to determine if the RCG is enabled? Do you also > print the enable count in software? I already reset-ed the tree state, but I added something like if (rcg->cmd_rcgr == the one in the declaration) pr_err("gcc_sdcc2_apps_clk_src is %s\n", clk_is_enabled(hw) ? "ENABLED" : "DISABLED"); to drivers/clk/qcom/clk-rcg2.c : __clk_rcg2_set_rate() Konrad