Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp99649lqo; Tue, 7 May 2024 13:29:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoyj/huiPucH3YcXx3r/6CnyDjuzZ9y+PMRtnkfBNPdH40UFqeNrjLLZPsEw1hamNg0F6Eo1zW+7IB6bHEs4dXwgWHPclsNVg2ScbV+Q== X-Google-Smtp-Source: AGHT+IFHPbn1cs+18m7mCKVAQQZhQf3ptrczeYrk226BaOF1GSnoKebjBqXOjqiB9dqQk6SLmexl X-Received: by 2002:a05:622a:352:b0:43a:f2be:6ce with SMTP id d75a77b69052e-43dbf754298mr9420031cf.60.1715113753274; Tue, 07 May 2024 13:29:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715113753; cv=pass; d=google.com; s=arc-20160816; b=MZ0haPiUcOoeSNoQerh2c6wJz7H0YMSE+gq3aX1bk4RPqVqpudqXi5IowNhLI1BGtn 9cZnMmplQ/bzcadTTcjc9qiQaPYJwaOZ5vuG+g8oSaEhhgTT93FtHHbZrEZohXbc6Tk/ 4dZkzG1KlGQiS1fO4LmHZeoP5U1zWrb/CmwMqzIMZFcNIIF7L7XZKYhTgsMEIbsmmFoQ 7oZtJ4eFQw8qYMzRIVEoCXqPg2R5ZtD0Pw+7B8xNHl6g9LLU7r6T3KGdDNHP4kYoc7yh lBTV8xzAectsCzGrfw7GCAcYddlSimb6gtwStE7lGg1X1G7tHLXG9vY3PRqAFVWC32Lc khWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=LNC/8KKmf1Q68E8dC413zSxxoIHYFaTKEQ8XcxF/xuM=; fh=81r5zU75yX0J+43QIXJZTD57FRWNx/n+gGLUNxxIaqw=; b=rLYGGhwoYhV3JSXtj1T88fKHJavdFvN66CbDp9Ni3HvpD2/MYhx+oQ1A/+me+8ISdN QSs0XEcfOTJsgPy3GbcTRFAd33qtl7547nMkXieOhuvla4LqD81SDxHGbg6Y/RW2vZMF VRrliF6RimqJ9ttuk0QzRtBOj+Nzlr3V/J+ZH4Hc7SmKmAxVUEdyL7kg5nvyIx+Zn0+D pTw3Xr36N/8l7XLBSDufH0llEbXY7tgig1OFmhHIiEQzyqisrfYk5fz6EatP0/YhZwkT Pcmk+acRpafEcJjiWG7beT9WYpPZXsheurBdRxTI6pBt9l6bgrnWO6c7ji7LrRrNHdkR 7cLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XRL1jzm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 dh15-20020a05622a4e0f00b0043ab735d052si11217718qtb.797.2024.05.07.13.29.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 13:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172150-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=@kernel.org header.s=k20201202 header.b=XRL1jzm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172150-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DC9C81C210AB for ; Tue, 7 May 2024 20:29:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9945C14B971; Tue, 7 May 2024 20:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XRL1jzm6" 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 BBE52187331; Tue, 7 May 2024 20:28:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715113722; cv=none; b=c5ozP3JB0y8UQ4fTf2XjJPo+fiuPMV6nWrYYyO440lZ/MVmsna9Y2a/tP8p+CP95gZRnjGeI3KcFED2QyYi7QGfl+SR+qPDI9LCWJli02c/HC35zKg75atnJjYTy8iP7QesFRgBADzZeIVA60U/5Ff8JBxnunCbR02bEDmXTttE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715113722; c=relaxed/simple; bh=O+b6rMU8nBnrcErDZTJYAs1xK22Mbc0hwJnw71xIx2w=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=P+mOCkR8weJAgOhuBfYSiJnbdZiYPy5fJuHjer1W+8bMj9SXhu4JlbDm45+DSbVzdY5BCOXiT0OIPZbYrYnom9IsA3ZcewwmuQJaI2gvpgO5oEzr2kUQwfswA1DNSaBVscRsFReAIgvl2lIiDX7V/2yJf+6G90jNcGPdL1P4cQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XRL1jzm6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45B24C2BBFC; Tue, 7 May 2024 20:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715113722; bh=O+b6rMU8nBnrcErDZTJYAs1xK22Mbc0hwJnw71xIx2w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=XRL1jzm6UDXsbnhoXOg5hrJWNhQFT08J2n9CRAaOo/wcSZYfByN4zJ8Sc0/ibjGSB oe2/Z+30Mj/qIoZi4xcK+99iCqOrCNpnRah1lM4Y5K/iaA7J53Ypm7vmUO0UiGUMqH kzSdBSnxh+6NpZGHnKNjLfmyQOEM1GhEqj0EhyVqfce59lsnq+Xx/ijZfpNUOqONH0 AaHmHVTJehNRW/P8v/24p+v/i9ViSeGjYkYOEDBgF0/AgU3b37AYLsZlR2QozXBeZo LTZikVVzANBIgoMAEzRPkq4JFzihEe0DOHrDiRKNj0Pm+75VC+YJtemYd/rQ1dFlcj K1kdEWSAxAj7Q== Message-ID: <7baef7a173dc4d1ecf8b0dafde565b1a.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <3a3c4279-a254-48d0-91ad-70b7f1e3eb77@linaro.org> 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> Subject: Re: [PATCH] clk: qcom: gcc-sm8450: set OPS_PARENT_ENABLE on gcc_sdcc2_apps_clk_src From: Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Vinod Koul Date: Tue, 07 May 2024 13:28:40 -0700 User-Agent: alot/0.10 Quoting Konrad Dybcio (2024-05-07 06:51:04) >=20 > without PARENT_OPS_ENABLE: >=20 > [ 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 configuratio= n. > [ 3.351114] WARNING: CPU: 1 PID: 11 at drivers/clk/qcom/clk-rcg2.c:133= update_config+0xc8/0xd8 >=20 > [...] >=20 > [ 3.610523] gcc_sdcc2_apps_clk_src is ENABLED @ set_rate >=20 >=20 > with PARENT_OPS_ENABLE: >=20 > [ 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 >=20 > 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.. >=20 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?