Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66CB8C61DA4 for ; Wed, 22 Feb 2023 17:48:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4EFE185AE9; Wed, 22 Feb 2023 18:48:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="ZvfNd0sZ"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="vYDuoQO1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A8C185AEF; Wed, 22 Feb 2023 18:47:54 +0100 (CET) Received: from mout-y-209.mailbox.org (mout-y-209.mailbox.org [IPv6:2001:67c:2050:103:465::209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9C4D80BAA for ; Wed, 22 Feb 2023 18:47:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4PMNsc356Tz9sQT; Wed, 22 Feb 2023 18:47:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1677088068; 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=QVUQtpwAjJNYjfxQclo7tl5pFmc68VMd2fh7P6MoQsg=; b=ZvfNd0sZhQLmW6XxIp2fKDrKftJmPb3TMSQklYMr42tIMegF5EOLd9VDAAG4CJwTL9JB/U b1jGOWnCqCms6Mz/MqaCGxp86+8AONIAnuJNw4HlQzdV4DbSTdKPf+95QBBbEZ0YNNAuID JFHVO23LRaA4TdnSNKouh/29iPJJ4phBMLgTmpNytuvhxxuOvXKWZj0tQgJEOKsIEiT9mv A4pNprkk9O9CJPr5E8SpIgiFxAnPMOPFpPL/JzSMsDtbHXONOd0TPZD5gt1UojlxsPYeht WRqlv8nvPK7dGmgh03KtQBqOs4/QmE3l3EM32ZP75HmjkpVdjbSm9Yrw0A0CHw== Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1677088066; 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=QVUQtpwAjJNYjfxQclo7tl5pFmc68VMd2fh7P6MoQsg=; b=vYDuoQO1J3A2R8GRsWMRIikfXhY9T7ut+7zR9WYn9IXxhxhSNPITv7SUWzpfp5lPkefQxt iathIahjhuX/bZwNcyiPUT+DOC1vcBOTNTW9IE8aMMCSj3MOoUertzr9TBc3GII11zMW44 oGYClqCJVLgIPs3B4tSP42ZHGloSBjBWlsMFXtcRejUOd2TzluuNnQ7CP047OkaCX2CH+Q XFpiZCdrIh4UQOp+bu3zivbVxo5iF4b/eepmRGATFZ0KL9hw6p2jONRvawLjFyYdNqoWQ+ SkG7mGIafUaWG3mr6nUPZdb+1tR6yWgJhfVI6JElxbSihGoJlIRUMOguE38dIg== Date: Wed, 22 Feb 2023 18:47:44 +0100 MIME-Version: 1.0 Subject: Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver To: Ralph Siemsen Cc: u-boot@lists.denx.de, Hai Pham , Lukasz Majewski , Marek Vasut , Sean Anderson References: <20230222154414.49219-1-ralph.siemsen@linaro.org> <20230222154414.49219-4-ralph.siemsen@linaro.org> <49f64e41-adfe-b426-2a57-9c4721894885@mailbox.org> <20230222165749.GA50215@maple.netwinder.org> <20230222172145.GB50215@maple.netwinder.org> Content-Language: en-US From: Marek Vasut In-Reply-To: <20230222172145.GB50215@maple.netwinder.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: w8pkqr1cw9y9icwrspunypfpwrxrrgj1 X-MBO-RS-ID: aa663bb3baeb227daec X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 2/22/23 18:21, Ralph Siemsen wrote: > On Wed, Feb 22, 2023 at 06:07:45PM +0100, Marek Vasut wrote: >> On 2/22/23 17:57, Ralph Siemsen wrote: >>> On Wed, Feb 22, 2023 at 05:06:14PM +0100, Marek Vasut wrote: >>>> On 2/22/23 16:44, Ralph Siemsen wrote: >>>>> Clock driver for the Renesas RZ/N1 SoC family. This is based >>>>> on the Linux kernel drivers/clk/renesas/r9a06g032-clocks.c. >>>> >>>> For starters, can you please include the exact kernel version , >>>> ideally commit ID, from which this way pulled, so that future >>>> updates can pull in the diffs from that commit easily ? >>> >>> Very reasonable request, but a bit difficult to give a concise >>> answer. Originally I took the driver as found in the 5.15 kernel. The >>> driver actually had not changed since 5.13 commit 6bd913f54f2f ("clk: >>> renesas: r9a06g032: Switch to .determine_rate()"). So that's the >>> starting point. >>> >>> I incorporated subsequent changes to the clock tables and related >>> cleanups. Those were only merged into Linux much later: >>> >>> 2dee50ab9e72 clk: renesas: r9a06g032: Fix UART clkgrp bitsel >>> f46efcc4746f clk: renesas: r9a06g032: Drop some unused fields >>> 2a6da4a11f47 clk: renesas: r9a06g032: Fix the RTC hclock description >>> >>> Linux driver also had a few other commits, but these are not >>> applicable to the u-boot version due to structural changes: >>> >>> 6bd913f54f2f clk: renesas: r9a06g032: Switch to .determine_rate() >>> f2fb4fe62390 clk: renesas: Zero init clk_init_data >>> 2182066d95c3 clk: renesas: r9a06g032: Probe possible children >>> 885525c1e7e2 clk: renesas: r9a06g032: Export function to set dmamux >>> 02693e11611e clk: renesas: r9a06g032: Repair grave increment error >>> >>> So I would say it is "up to date" with the lastest Linux commit, even >>> though it is based on an earlier version. Is there a good way to >>> include the above in the commit message, succinctly? >> >> Is this still in sync with Linux 6.1.y ? That's the latest LTS . > > Yes. Although the commits have different hashes than what I reported > above, the 6.1.y LTS branch has the same changes. Then please include the Linux 6.1.y commit ID , or Torvalds' tree if that contains new fixes . Let's not use some old/downstream stuff . > Note that the u-boot version of the driver has changed considerably from > the Linux version. In terms of pulling future diffs over, I would be > concerned mostly about keeping the clock tables in sync. There have been > a few mistakes found and fixed in those already. Are those fixes in mainline Linux ?