From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 04BB9231A23 for ; Wed, 10 Jun 2026 14:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781100573; cv=none; b=DebsD9OYmMN13lxoTydDUPQaFIAE27adUJYt/+BGj9TlvOFkswCnp5dIHsjHHlOzq6JWbCP3ebFZM2pgCkau24Yhap+z9V3bg6p1cREqc4tnU8hBUw6cSsGfVkUS/hoMSljDzfcEJJ58hxGunXGJeBtlmdI8Bdm848ZMCdksRck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781100573; c=relaxed/simple; bh=xOBnAKbfMwDSEwiOfNlKTQ/sIOMtTg3T6ON0DZHh4gk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E4Djj/ZYEgI7SDbkqNTDnI/tHbW6JuSZd9muhIut4cyOX9Kq/mCJWTNNkEbyAdPSqUHQBP4wyq+m5AHDpbwmjboarS7GxkXyb/ri4dU5PaFEHksIkZCJjxecUXbDkMJGpq3sSijY28zNUUSNP5JYA+HzBgNRStaX3Aa1CDsqv34= 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=N0LL6f+u; arc=none smtp.client-ip=209.85.128.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N0LL6f+u" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-490cdae130cso23225525e9.0 for ; Wed, 10 Jun 2026 07:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781100570; x=1781705370; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8Yp7dQIH3qFqTFCTwClldJqvJ4eJdBAvpo4TLN8Qmpc=; b=N0LL6f+uTVBdblveTqDHTS79wedP5+/lItTb5xiZmk11jHcWHRP0qYD7PTINm6tfrP sWcUsVITDTYAG2HLwO0cM16/KVaXPtGa6IcDvQq7FKmQczuWXbwGKo1UnJ4+VbYOZci9 8IHDBDqrLzLUxh1UXLsvXtwM7GMxwj30OnAOUNFDy5nqS/0SA65VjbCgkCS3RxR1mxnd P6WpfwyME7QQo+niO5/H2jBNkwIeIm3W4Q40dV9/zdTBUnT/JJPlhPs8hDFE9hIclAEd WpNvFp1lrmvrYOOsEJpiZQpy/+9DFz2iXJ2kgaanNCk4Rc/zaH8mmXfGGPBFO92VXSi0 9I2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781100570; x=1781705370; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Yp7dQIH3qFqTFCTwClldJqvJ4eJdBAvpo4TLN8Qmpc=; b=TDV6SMmzBuyBG9Ui4dlofvwhZaYBTsSfGRBBma9Pzf2jq1es7Z6PpHX3iM4Efu+Stv 0h2Q2F/y5WxcoRkCI2xGaS39t5Pc4ZcK+6kFUayR1PjXbwrAGqXiK+lL17iKlOzIlqSS esdGL5fPcnt9VFFsYUK5rIgfioa0YTYGg6RSx8JcNc/sa40U+aSwJSBbU4SduMpgSVPl dm0nNBKKeWCgSwFHjf/5+cUIcBueWF0zar94Z3+aWzvSIEdwnHBxJLdCtNNbuteNQiZV lFrrHs7fQIQnRghGVxgOzcaOe8Lj9FM3bxPN0pAaNLyWAN/L27WGFTRKTUMOx/zUtv6S 8Cuw== X-Forwarded-Encrypted: i=1; AFNElJ9tz9tDvdd2zGuyoYUlNn/gRzIOaGohCx4V7ywMtgc+MGne4/SNxC5dYP9Yt6PP44WXu2Z6PcIwZdQ8DDY=@vger.kernel.org X-Gm-Message-State: AOJu0YyYBGFeCqzA5bvqBeXrBxtH90MVXGuZxcNsb3rLcwV8BOxkNwZG CIgZAt20VnN+7iqHRJERN/TqjWF9898Xg1rcb3kaE3oeqvjqU0OVMSSed3HajxnhZrM= X-Gm-Gg: Acq92OGPZl6HtSEqEOItxUF8noSHg1tMRm4vW3V76XyI2b1laKrVC+qHcyNr2NQJHPd amtRF117D4troGv9ATHAIK0/+hpyb9LmmfAocI8Xvf1vsXGQotyR5obWUWWV0YLgcT7I26/EMuc 7vUs/jsLZnrhG+iNF3xkyP4EV+B4yo3pNMPKLBRf+8LR88rgYvro33AcoAsfUwsAxGikU7zAOE/ cm4RaiY6Ggl4ND2Pb9gF19PYgVTMDSNpkcDudl0G0BohDPShuEoNb9jaQYk01uU797JtFg43zEu 4/kl8Q1Q8l+mzOnHm9zEN2r3VOrOdT7HSnwVMKT5gV2fFXKf9JHfcWOhhEK2g3OKlr+Ry1p0muH MwBTJJfHcNtqTNKK0lIoSXBnX/0yB/dbI2TkYePOZ6GBGMYbj7cf5a9biQtSG8l4YuFuf4Brx29 xPgI7qUvMTDXWimZaSGUOEmXaou1Bhr/t40m9uVRFAjybzGD4= X-Received: by 2002:a05:600c:4e14:b0:490:4e3e:b483 with SMTP id 5b1f17b1804b1-490c2600ebdmr362021485e9.22.1781100570315; Wed, 10 Jun 2026 07:09:30 -0700 (PDT) Received: from linaro.org ([2a02:2454:ff23:4441:7c57:ff85:2733:9342]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490bc3cc0f8sm559839415e9.8.2026.06.10.07.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 07:09:29 -0700 (PDT) Date: Wed, 10 Jun 2026 16:09:24 +0200 From: Stephan Gerhold To: Konrad Dybcio Cc: Bjorn Andersson , Michael Turquette , Stephen Boyd , Georgi Djakov , Shawn Guo , Bryan O'Donoghue , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 07/12] clk: qcom: gcc-mdm9607: Drop incorrect apss_tcu_clk_src Message-ID: References: <20260609-qcom-clk-mdm9607-fixes-v1-0-5e9717faf842@linaro.org> <20260609-qcom-clk-mdm9607-fixes-v1-7-5e9717faf842@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jun 10, 2026 at 03:50:11PM +0200, Konrad Dybcio wrote: > On 6/9/26 4:14 PM, Stephan Gerhold wrote: > > From: Stephan Gerhold > > > > This clock does not seem to exist on MDM9607. Reading/writing the registers > > always results in 0 or crashes. The math in the frequency table is also > > broken. GPLL2 on MDM9607 runs at 480 MHz, so: > > > > - F(155000000, P_GPLL2, 6, 0, 0), // 480 MHz/6 = 80 MHz, not 155 MHz > > - F(310000000, P_GPLL2, 3, 0, 0), // 480 MHz/3 = 160 MHz, not 310 MHz > > > > Presumably, this definition was mistakenly copied as-is from gcc-msm8916 > > (which uses 930 MHz for GPLL2). There are no branch consumers of this root > > clock inside gcc-mdm9607 (notably, gcc_apss_tcu_clk has bimc_ddr_clk_src as > > parent instead of this clock), so we can just drop it. > > > > Cc: stable@vger.kernel.org > > Fixes: 48b7253264ea ("clk: qcom: Add MDM9607 GCC driver") > > Signed-off-by: Stephan Gerhold > > --- > > It does, CMD_RCGR @ 0x37000 > > Interestingly, there's also an SMMU instance.. although downstream doesn't > seem bothered with it > Thanks for checking, but that still doesn't give us enough to work with it. In particular: - What are the frequency tables? Which parents exist with which IDs? - What is the hid_width? - Where do we hook it up to some children? The way it is right now it's definitely wrong. I don't think we'll need it so removing it like this patch is probably the easiest thing to do... Thanks, Stephan PS: This platform has the weird TZ-managed SMMU (like MSM8916), so there isn't much you can do with it from Linux. Unless you are running TF-A, then you can describe it as "arm,mmu-500" and use it for everything pretty much exactly like you would normally expect. But you still don't need to do anything with this clock.