Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp967829lqm; Thu, 2 May 2024 00:48:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWqYkHSZhTrmqp7VAuFY8SYFMHzmWit3afYllMskVYnSFJF2DLJgKcXhpql7wHo9SHNJM1VWvYA/n+hFDJqXvJTNfoTaaoyWjsAYBR/w== X-Google-Smtp-Source: AGHT+IE2eAS0N9uxqDAh4S7w/3FmOyp80gQBEX1bO/+RKrcnrCTwXU4MreWVQOkm8ZS7C+3oK2rz X-Received: by 2002:a17:906:f8c9:b0:a55:b3e2:718f with SMTP id lh9-20020a170906f8c900b00a55b3e2718fmr3190084ejb.23.1714636122871; Thu, 02 May 2024 00:48:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714636122; cv=pass; d=google.com; s=arc-20160816; b=1E2B+zJ5Ak13e9GEKksXQ2C6GsSXwLuIyzHQlDIN6x3yl3lcfbjdynKLzhlJpjG8yV 46hwIsmJK0fKu87qbv3CcGTa3v4uugdFR3K98IPYSosFEOoZzabFmLHo7I/ULqwdXmNZ TzHlqqgPDPupSnoZI5aQzejjlVTo7dn5+q9fE5B6gkkfTtmpvZhE6Ump/t1EPuYZ+L5i 5bI1SusxauMmT2GvEnoBFWHHhqt//3+6gKr1/YsxdRM6LtgWzNpXr8m7vGGaAkaEBX4Y TYbo8epMR61LxhO/JyseXbDBoYJE4NARWGaCOMQbHVLtfBNqqKVEZjH8E4b/B3/Rqfp8 Vtqg== 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=x8SwW+ELJF0Fre9JQp39dmXVDBVpvYrr5lnpvWL62nM=; fh=+MkEdmGnlLdUEqFLxnhDPcibvGy/phFXcS6xaZZA5jM=; b=Xw7WXwxT03elWLQ/ELet/0p7KYvwdULQbjPVBlJlaVVhkYSl9doYz38FlgH6xpQbMQ U8Qtu3DMl0Sp0n/kLeX0tbwRxmNLiRCWkfpL++0PGn78pd8iB1GhlLrunOs0JcSjLOpS HyDiGNtgVDbCvBinTJC9uRojGykRTH9t6gAaRqprK1fQ8hoN1654rQc4XEdcBKQYUfej /kXJwJGujiNtQwvYwEe8T5BEZ3wqX2KmV78fHJPIyrnrJL7Tf/QUPrjSrqCGGlSkoQ+L fnShBAaVW7cIultOeE/bykbikolCUWNHVIG8zigAltkM0zSs7cpmUz+9tlDCXe1TXPms Xa3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="aJW/qp8H"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-166072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f13-20020a170906ef0d00b00a4a347e0896si253927ejs.1024.2024.05.02.00.48.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="aJW/qp8H"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-166072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 98C4E1F21444 for ; Thu, 2 May 2024 07:48:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA892D045; Thu, 2 May 2024 07:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="aJW/qp8H" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 639063FB94; Thu, 2 May 2024 07:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714636070; cv=none; b=TxLVt46p50UCMDxNBk/mge9NkZq0iwCfzjBlqYvZ6yM1HG4U7eMAWaLykibpoNMZiryuSxsni+56QzxJ7DqD+HiE0iBzTRX2rmZtjleVmM3vNDEiKEdQ3dHUDXUfB8OuQhVCp3Gcg743p5i8vZ5oCKf3/etEfQIEkxANFadLdQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714636070; c=relaxed/simple; bh=4fidK45K76RPQVzq6DR8JC/iRRxUfnDxLhJ5XYetRIs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RORajjV3OLs1mRbCERRFkiof7Iyn2V0c12L9zJrrN7p8Df/+T+XipGwmko+z0LQNXItWW1EJkhkUtVOWapuCDvgMyexBlIoxU/3NcYr/5t/aJNM3Me8IgG0m+sC7S1BjZ+lUzh/vFH21S/A0aB6NT0sX5rIwEIExf1tgRRfPD+Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=aJW/qp8H; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 842B1FF808; Thu, 2 May 2024 07:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714636066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x8SwW+ELJF0Fre9JQp39dmXVDBVpvYrr5lnpvWL62nM=; b=aJW/qp8HM5GIcA9zma+Wm/wS7z8pqOauqHzMTapIbt69hXq7W9aTboL+TUAXfFLk6jS1yS iRYmFvhicQFh6JLO7Q8himwCobUqRtb8f4XcX13AH9qKj89VT8kx96QLSe27cX/VHEGHdo RCS6P2NdXJV088Ay2x0sbC2BYTwsofbZ5G4erAVAQTQ+2nQjfg27fn1WF+cj0MrdRB9ooS KB43b7EFfrqGmUAZr1L055xgMJELD9QgTWEm8Ecw3TWZOfCCHrtS/JTQ1Wpng/EWFGdjZJ +YQFO+mbqEo2CZ+N7KvTzD/QEQwQaMvW60PjA2pUgrVTCfp8lNjDj7/0R2Efcw== Message-ID: <9ad3ab76-812f-413e-826d-97545c403138@bootlin.com> Date: Thu, 2 May 2024 09:47:46 +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 RFC v2 2/4] clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks To: Drew Fustini , Jisheng Zhang , Guo Ren , Fu Wei , Yangtao Li , Emil Renner Berthing , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Miquel Raynal , Thomas Petazzoni References: <20240426-th1520-clk-v2-v2-0-96b829e6fcee@tenstorrent.com> <20240426-th1520-clk-v2-v2-2-96b829e6fcee@tenstorrent.com> Content-Language: en-US From: Thomas Bonnefille In-Reply-To: <20240426-th1520-clk-v2-v2-2-96b829e6fcee@tenstorrent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: thomas.bonnefille@bootlin.com On 4/27/24 2:10 AM, Drew Fustini wrote: > Add support for the AP sub-system clock controller in the T-Head TH1520. > This include CPU, DPU, GMAC and TEE PLLs. > > Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf > Co-developed-by: Yangtao Li > Signed-off-by: Yangtao Li > Co-developed-by: Jisheng Zhang > Signed-off-by: Jisheng Zhang > Signed-off-by: Drew Fustini > ... > +void ccu_disable_helper(struct ccu_common *common, u32 gate) > +{ > + if (!gate) > + return; > + > + regmap_update_bits(common->map, common->reg, > + gate, ~gate); > +} > + > +int ccu_enable_helper(struct ccu_common *common, u32 gate) > +{ > + if (!gate) > + return 0; > + > + return regmap_update_bits(common->map, common->reg, > + gate, gate); > +} > + Both of those functions are only used in this file, you should probably make them static because otherwise, the compilation process will prompt a "missing prototype" warning. Thomas