Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp167962lqp; Tue, 11 Jun 2024 00:04:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU56p2sJPbIueQPr2vt7YFfVGBHlXWiVzCIYdVN3el6DaBqtN4recfXXFUMnHs8zDK2QpAmFzcrg5+B39MNLQbz3Y/v/a7E6aj4dtfQqw== X-Google-Smtp-Source: AGHT+IHW4UqohGDQStBuF2GcM9XdMDgc1gmo4s5HgLCSRQIuQiQBxBgMYd+ZspmnFVt9tPEVg5ko X-Received: by 2002:a05:6358:60c8:b0:19f:40ab:e82b with SMTP id e5c5f4694b2df-19f40abeb48mr1055251155d.10.1718089478111; Tue, 11 Jun 2024 00:04:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718089477; cv=pass; d=google.com; s=arc-20160816; b=rLgZrqcRfF58FSzb/5Yrd6NuiL1MC9uJf+NIe2e/W24mo0gsKOJXKyaDrJO5zTYEMk vYnhL6AnmWtdFtcyObH9SnmIbsdOx836sapDMMWxD5VSkBqvHStIz6Egk14DrLfW+Lwd NeJLfS5zieEGN1gdyZ6D2/H55YzaiGvN7SI3crkOXOQ2LeNRcEFKwH0sftE2HxbOX7CH 4owLbJUONocxQHpTuVdJYCG3QurLfkJj9/xEHzi/NVQxMxganpqpHLbssfhgKs2+0yJD 7s1Mqahz3Ce0yCQhNz9JPpZWTk5Y04z5qEkotz2cKLA3kwAxGdM3LjQbOQLQUBPeJZXY fzrw== 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=nW56XVygKDEJ/sK4L22c/J11/mN3vlpwHRil5rep5WE=; fh=m7SarhaaVKd/7Gq/QOGyg104VZNKuTFK/dJtigJsjEc=; b=ob9JxgXaFaMRcckCKF2ko7ROO+x7iQIRfhboK8WLMD1lPZPXAjQTO5ima0Z2JYtTAL UoUyE8y3aA35DbGmNs2Wgtev47qA58X21VRw0XbwbvBd0pZAkFUbBD2AMxpylQLdMQ0R k/LuI5gYO01uj/uH3tSf1dJAWVjelQqc45N3iIUnC3fRNr8+QSxjtrymPqBCdkIQlLB4 ESc/FS4YOMX5Fm+NQIRvUnM82P8Dxj59d3fACem6HP/G/SMBbgEEJPf6qPN/b7vdNqjY hlcRFT5VEeilFGKPNmgNPji0qyqBjTj7juUDVIRBbEgFS/uBRO8NMG5Rr1c4Ym4glhhv yWUA==; 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-209357-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209357-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-6e772175a17si5186218a12.840.2024.06.11.00.04.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 00:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209357-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-209357-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209357-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 C54F9289F71 for ; Tue, 11 Jun 2024 07:03:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53C2F172764; Tue, 11 Jun 2024 07:03:53 +0000 (UTC) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 86A1AB657; Tue, 11 Jun 2024 07:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718089432; cv=none; b=aVXKTcGDDtUzgaHp8V2Qnm/kyWee/bvHAre3XNa8/SKu7JTSvH4ccnM2XApTiGvcWJj1o67bOhp4lH523jADlPQ5usGgpw6ipWqluLU/7Sr2ufBGyf7uWv+Tn5nsE5Wx2JqUGedS9jP0OMQnbj9O1o1kVqlEU9o9P6XrPO7mjTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718089432; c=relaxed/simple; bh=534zje78Vmh7/8/3gk/F5m97kl9O7VC9jDh6In6iEIY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Yv38+bayDLeCR5ES0fMM71inQadSP4TbC7rrR4zGFavWhPKmu+IKmRBPbqXzWiO999wcXTLjNICe/zN6Rd39+3f/WdrZkYYfwxGvxtZFHufs4BZklWR1kTYlc+5vWd00bkXGe6hZg7LrliVkBN/li21/saE9CoRwLrpz0kUD+tg= 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.128.171 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-yw1-f171.google.com with SMTP id 00721157ae682-62a080a171dso54666627b3.0; Tue, 11 Jun 2024 00:03:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718089429; x=1718694229; 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=nW56XVygKDEJ/sK4L22c/J11/mN3vlpwHRil5rep5WE=; b=m7bi3vptQyyCjYS5nWBljLnUO7Bf+oy1tyb2+MH2pCIjmcSlGfMIaItENvOa+5aEQ6 QnMB/1Vo0riEnNZOwy8HiovaHxVmFaN1GQ+BJk0ySUqQGkHQuLrVq/EaTU5QzzK3X9V9 zexTC9SvVmLIEdDEWuq21tvPuLZiNzzsIWtzYf/8rCW3J1q0k4KICgcmsY+EJ/0hK1Il 4ZJwm0ZXaphS2CNeH3if2HCKKJabWH+yFUPbIFRxo5oyUo/eiPDGfCMj5ln2S3+d2FMk iU6h0c47yKONBuhFfU5Wl8/2oll6H5M7k9HGQbcJkKJrI/BBi1fHgv6kHmLga4ksAV7h LAOg== X-Forwarded-Encrypted: i=1; AJvYcCUZ3kSEMe/qcU1vOZmJLvkBP6HEVWghj1lXTrw4ab3plknXqCJP9bXJojusvjRFzpWPgkk7nYxrlYVPuFL82X4ZZgZNhh1xjTDeOFx7Akgpf1FICPjFezIceXKbmMSP8rIjLGrM10//CIEyQvuUY8vUUEvRa0JtM1i6lf6OoCFYYp3bOto98I/4tbMGhSjn55TraKllQirq7JMWnP21x/U3lvSOeOLo X-Gm-Message-State: AOJu0Yzv8+PHoaYe512tUYilU2Gz5YctJWMJNthnA7WAbjbS+Aiit0Bt jJywne7xsAefDjNJJWYWtKni0LdeYCp/sP2MVrdK+ZSPsL9iqZBRfzjlFhRb X-Received: by 2002:a81:83c5:0:b0:61b:eb65:4a87 with SMTP id 00721157ae682-62cd56a9ff1mr106826837b3.48.1718089429020; Tue, 11 Jun 2024 00:03:49 -0700 (PDT) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62ccace6713sm19150267b3.38.2024.06.11.00.03.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 00:03:48 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dfa6e0add60so5195533276.3; Tue, 11 Jun 2024 00:03:48 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXWqG66kV/qOW5xF2vDPCdixhDamdmqJpvEekDhA5xqjQwz0G97bOv8Vof/uhFaYnjrq9iclvXRv8qhjHRWoeP630Lj/RpsCGj7MQfWGh3vncoO4pY0k7chk2w32Y1tuy7vGVbU8SYJmmpI7t2eUmemgefm49sDZn3otJqEl4DXUNGhn6w1hmbU41WG7na2yiowe7To56xmSLFYB4xhiPxPK0hluV8X X-Received: by 2002:a25:aa6d:0:b0:dc6:aebb:168e with SMTP id 3f1490d57ef6-dfaf64bf568mr11147486276.26.1718089428640; Tue, 11 Jun 2024 00:03:48 -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-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 11 Jun 2024 09:03:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/4] clk: renesas: Add RZ/V2H CPG core wrapper driver To: "Lad, 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 Hi Prabhakar, On Tue, Jun 11, 2024 at 12:03=E2=80=AFAM Lad, Prabhakar wrote: > On Tue, Jun 4, 2024 at 5:01=E2=80=AFPM Geert Uytterhoeven wrote: > > On Fri, May 24, 2024 at 10:29=E2=80=AFAM Prabhakar wrote: > > > From: Lad Prabhakar > > > > > > Add CPG core helper wrapper driver for RZ/V2H SoC. > > > > What is a "core helper wrapper"? ;-) > > > As this file basically uses core API for clock and reset, I worded the > commit as such. > > > Looking at the structure, this looks like a family-specific clock drive= r? > Yes, as the CPG on RZ/V2H varies quite a bit compared to RZ/G2L I have > introduced a family-specific clock driver > > > Will there be more RZ/V2H-alike SoCs? > > > I'm not sure about it tbh! OK, I see we did the same when introducing RZ/G2L support. > > > --- /dev/null > > > +++ b/drivers/clk/renesas/rzv2h-cpg.h > > > +/** > > > + * struct rzv2h_cpg_info - SoC-specific CPG Description > > > + * > > > + * @core_clks: Array of Core Clock definitions > > > + * @num_core_clks: Number of entries in core_clks[] > > > + * @num_total_core_clks: Total number of Core Clocks (exported + int= ernal) > > > + * > > > + * @mod_clks: Array of Module Clock definitions > > > + * @num_mod_clks: Number of entries in mod_clks[] > > > + * @num_hw_mod_clks: Number of Module Clocks supported by the hardwa= re > > > + * > > > + * @resets: Array of Module Reset definitions > > > + * @num_resets: Number of entries in resets[] > > > + * > > > + * @crit_mod_clks: Array with Module Clock IDs of critical clocks th= at > > > + * should not be disabled without a knowledgeable dr= iver > > > + * @num_crit_mod_clks: Number of entries in crit_mod_clks[] > > > + * @pll_get_clk1_offset: Function pointer to get PLL CLK1 offset > > > + * @pll_get_clk2_offset: Function pointer to get PLL CLK2 offset > > > + */ > > > +struct rzv2h_cpg_info { > > > > > + /* function pointers for PLL information */ > > > + int (*pll_get_clk1_offset)(int clk); > > > + int (*pll_get_clk2_offset)(int clk); > > > > Why are these function pointers? I meant "... and not pointer/len pairs?". > To get the offsets for PLL CLK1/2. But I plan to drop these and get > the offset from conf instead. OK Gr{oetje,eeting}s, Geert --=20 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