Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp118147lqr; Wed, 5 Jun 2024 00:12:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8VWvhrP3XqWr+XDLqr+TC9u4tfKaoIIRyZXHGTZ2EW1TySN8gTNk4rGwwg5Bp6Eq2CwUXuearsPk7NvZSVCdnaW7RKC5tXpuQ7ynczQ== X-Google-Smtp-Source: AGHT+IHVkuuZNfbESWwrE8Q2HSXSmryEw2Uja597ejOojf+d6auM3qgKxCQBTKjuQOJ13napoZel X-Received: by 2002:a05:6358:4320:b0:19c:6472:42d5 with SMTP id e5c5f4694b2df-19c6c68982cmr206956555d.12.1717571551803; Wed, 05 Jun 2024 00:12:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717571551; cv=pass; d=google.com; s=arc-20160816; b=fX5M3xQIZG9Ig9jd+bKmV9RyMKhIDyxu8tvDwFRiDhelD2+QAVDVX0Tsd4C+X+ZfAk ECv5xlbifAf03QXwwbL0QiSetHNEzbKjfAOOwyKGhjCgQasDZ1IaycP/DuovWcd3vFjS X7ZZaOnz5zLyrXmkdK/fAO2OOlJlch1gL0OtaOqZXPrYuI/fgZ84QvVF7+uEWuMI4PYZ IFfI2NSwEcgfid4SRcZXN9N4Ne+to1WwRhIjdLTJ0GX2xazRHFPAfY+whWSvEy5YlCA+ hc/DEXQr5FvsQoL32MCOFje+hHVh/fCgUuRLlKJgHC6mTX5winwiueX/FNOQAJ8vLQ/v 6OFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=+dVbe12Y5x6YayWqHWzVXsec7wdwRPrKL/OhcN1TqKU=; fh=xDA627t8lDfTz+5DIK4jCSPNOqRRXAmR+8HlFBlKeC0=; b=B1CPf7b87uS+62U0N4TnxHsFYRuFWYXIgE1jC73+Z+xjonKtTIACs5SJ4PUJ0881at 79CnSGXGKTdn4wZNzvCYAfsQTuzM7K4kBrQKwwjh9s76uWnutkfGeYDf1RZjrYATpcCN 3b3i3xdGmuCLmG9GmTyjRCguTPGmEeBSbxFj4ztIrrnFT2wLhCE0L5Er3MJo/MFzjLks XSPSL7HUIQ6A8YidxpmRyeNIurdhCCWNDQ8ojex6nIHwhbP9Dw5V00+M1IG2pt066CnZ 5+OQ3mA5OTp5X0XzlyriVRJorOOjawxJsZl3L4ceiM8RecuXNQOt7WKbtaXHETz4shee 2XAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201836-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c4c889f2e0si9127659a12.706.2024.06.05.00.12.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201836-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 191082877F9 for ; Wed, 5 Jun 2024 07:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A26618C32E; Wed, 5 Jun 2024 07:06:06 +0000 (UTC) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (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 A9275190490; Wed, 5 Jun 2024 07:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571165; cv=none; b=YL0BaVK/Q8nMTXrN6HCOKPVvhUOiup+Ty1NxQ2PaqNNgl3YxyfrB9IiRzznVAotyw4j+7X3JnqTJw865rX1xLQpwARDNcWTcZ5OontRzlppqCM8+At+rJl9c5g5stdAvrahl9pibiYcOhXWFaSZnPja0Xm9DdsPKBhGf0SslohA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571165; c=relaxed/simple; bh=3P3Z51rM5sKotlnemHyjU9DNykQ+aGDBrA2dU1YKqDE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qRVJHf1k1seJPogzmdtZSTVxMAhrBTrVfMd+dl9qBftFEHlKwAlAGJYOCS7YNQYamgqpO/QzH9KtES/cVKyLdaK7wYiCN+/aBcOIHgxmPUCeucH4dSR3PMKLywC8rEHl1Ei3nmq53tLnCtHTlFHf62I4O1h5E9NbyUjoha2g5aw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.219.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dfa7797e897so5234079276.2; Wed, 05 Jun 2024 00:06:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717571162; x=1718175962; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+dVbe12Y5x6YayWqHWzVXsec7wdwRPrKL/OhcN1TqKU=; b=bz+vlxkH3AF+TzleYIRbaGLSQLhFmAm1YJxTYPRJx6t/MlwqPLwf0kzsMtJINjORyq 19wxa6eGcnZGiR97R5lsxhD2j8RYRhklWCEIlmh5adIKl0kbXhjZbgpYkgMGB5rtYbcV JXO5EalkIorE+FUvsCdgaRHR77DzDSnHaO35iEkjbCIY+N/SJmwFokW+StULLOgt+SKQ Z/R7lfDRo3s0+1dnq9NQCY3Mwf7mAlwX9MaoViCgVVFq9QkwkHpWiNDvc6NeYunDk9fg 46qsmzwzCEpmDQCfrcTECESgRNIwmBiOuxfBHrRRq18Cvuh1CHK7nXxa6gjs2rDx6/AJ gZzA== X-Forwarded-Encrypted: i=1; AJvYcCX0Q6mdBHSzrRYTwuM9UksnTNGRBr5CEDKMbOp025z17g21YYDIy9KlLGPWW5S/+gsxyn93W+GOqAzg0RibbsO7ntK7NX46jxwJmBFRzKXbNV0oJHkyS648yc1/frl4qUoRdP376JfkYpbXPv2ZBNeNu3rBDb2z+MX19Menkf2C5Fa8pnROWeMME8SojSab0VfEh1J2vndOhcrmSYOqewb7WmqA5OKW X-Gm-Message-State: AOJu0Yy6txdqmq09UN/deqeyBy52ZzG4rlUS7k6B8e70mYUKnNh0urmU PVaWu5haXWn/FGT+9PVtGKw3rYQnUHhXyrfCjkj7gn2D5gFH3KtCmzh/SiUO X-Received: by 2002:a25:abae:0:b0:dfa:b351:bea5 with SMTP id 3f1490d57ef6-dfaca9b937fmr1687957276.21.1717571162201; Wed, 05 Jun 2024 00:06:02 -0700 (PDT) Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-dfa6f11f7cdsm2459988276.46.2024.06.05.00.06.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 00:06:01 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-dfa7faffa3aso4937853276.0; Wed, 05 Jun 2024 00:06:01 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWUkDMrfIMU/Q2R/g9xHfrRAc0s6e/EPOTrow6/z5RnvA33C1FnA2bNV5AW/1ElnfPq3FtVQ/u9RaOAsk9nko69tliXp+55+GJmcezdKxnHlwVIeY9GbB/rJ9olCZqr8CjMv/O36ZqUGQL+6bfYyLGBX9IG7HHHpHvRr4Ufo0uEbWoVrHdSVOIyjlOUXnE8QeHKh77kL0nx5KwcKbnHrFfg6fzU5X3k X-Received: by 2002:a25:b8a:0:b0:dfa:49bc:6415 with SMTP id 3f1490d57ef6-dfacac439b1mr1592412276.52.1717571161019; Wed, 05 Jun 2024 00:06:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240524082800.333991-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240524082800.333991-5-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20240524082800.333991-5-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 5 Jun 2024 09:05:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] clk: renesas: Add RZ/V2H(P) CPG helper driver To: Prabhakar Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hii Prabhakar, Thanks for your patch! On Fri, May 24, 2024 at 10:29=E2=80=AFAM Prabhakar wrote: > From: Lad Prabhakar > > Add RZ/V2H(P) CPG helper driver. Drop "helper"? > Signed-off-by: Lad Prabhakar > --- /dev/null > +++ b/drivers/clk/renesas/r9a09g057-cpg.c > @@ -0,0 +1,112 @@ > +static int pll_clk1_offset[] =3D { -EINVAL, -EINVAL, -EINVAL, 0x64, -EIN= VAL, > + -EINVAL, 0xC4, -EINVAL, -EINVAL, 0x124, 0x= 144 }; > +static int pll_clk2_offset[] =3D { -EINVAL, -EINVAL, -EINVAL, 0x68, -EIN= VAL, > + -EINVAL, 0xC8, -EINVAL, -EINVAL, 0x128, 0x= 148 }; const (both) Both arrays are very similar: all valid values differ by an offset of 4. If that is universal, perhaps the second one can be dropped, and the offset can be handled by the user? > +static struct rzv2h_mod_clk r9a09g057_mod_clks[] =3D { const > + DEF_MOD("scif_0_clk_pck", R9A09G057_SCIF_0_CLK_PCK,= CLK_PLLCM33_DIV16, > + 0x620, 15, 0x810, 15), > +}; > + > +static struct rzv2h_reset r9a09g057_resets[] =3D { const > + DEF_RST(R9A09G057_SCIF_0_RST_SYSTEM_N, 0x924, 5, 0xA10,= 6), > +}; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds