Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5481890rwd; Sun, 18 Jun 2023 12:24:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iQqgIECzzch9VmJuoDuVD7pXNMcBEWxWM0gIFH90VED3omnmzFhsai0BCYIoeQx7wwNTz X-Received: by 2002:a05:6a20:6a25:b0:10b:fe06:97dd with SMTP id p37-20020a056a206a2500b0010bfe0697ddmr11529548pzk.54.1687116264456; Sun, 18 Jun 2023 12:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687116264; cv=none; d=google.com; s=arc-20160816; b=FTDNK72NXEjnPPvX58UDaY9ONuRuyIz46Re4v9IvFz6Jd0aiZZVetDk/BC7vN7g5Lg +Nm/iYtUu7bRfTCtduEuolJdgiH2pT7ZLAzJXzcd1IiRhgmGe1Z9Vkaw/6o3z/Mof7dL 9bdCOBIWwpmzCzEj2/+FXIKe+5Me+cJqReJ4YblTj2thdq2A7zGx4Y2PlYJWBoiO0W6X X09HBChoGSSYY0jwW1myZABEPM7p7r4UmJOtTV078CRjg1TjXmv6Sk6od2qLEPrdAcUY Tei/OBYpZO4piTGl/ttPnhCPbMxqHx/L5lZslhEgrGPjxxt9z2vFaG8nyJdoqlQPQuUm dS4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ctzzxEZahFyal0/N0lC9sp8fuYsa8SxqEu8M+e58Qys=; b=nXzrDLDX3oOfrAmjD9YyUEQSGN3CRwX4ZtWwJvbSw9IwBLH0zjra12vtMy28gM//HP hop4ImOOOVczaxxQZJoAt1idmxeHGzl0Z8sPzRHxTo9usDEtmyxSZzffNq44Xyn1zACD HgAxhzLBSQCL7oB/sC9zUiGO2vJrXYjHcSI/SlobaLBRlW94r20I4csR281uoegdaHoS 6u7NMuRHcgjkTnzUDQceVvyVHmJqJhXsmAVEF6dC0OKKv+rufyQtChQm2cLhKG8/Aneb FdbB313j4FvksczUu5N3ZnscXgLaHsSCaGOZUW3bVZ7gAupceDleCawgk4wpH62Ggurs pcGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NcqmPzxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c25-20020a637259000000b0054fcef3f7b9si10570517pgn.504.2023.06.18.12.24.10; Sun, 18 Jun 2023 12:24:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NcqmPzxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbjFRTPw (ORCPT + 99 others); Sun, 18 Jun 2023 15:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjFRTPu (ORCPT ); Sun, 18 Jun 2023 15:15:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4391B6; Sun, 18 Jun 2023 12:15:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BDA2960DCF; Sun, 18 Jun 2023 19:15:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80BE7C433C8; Sun, 18 Jun 2023 19:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687115748; bh=1O2hpd2p0ZnWkUw7q8Y9HtFfDVuFZLuKIBpyIFN1XIc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NcqmPzxU6IqT/PhcVtgmGU+sz/k4DnglYnNpsFIOhs0DXQazEgcB48h8C4azKmREa hdDLUjKL/zWuvDxxDx8ktEvgGGji4KEE83M67HCUT1ofj32lVzLjLUdBkWWUBomz/o JAKfMnM60aoyFj0sGYhkwvqRyeorNLK56KKcbXj5yxxjGI7gGMyiP1QeaUL0fryzkl pyej3ndHeOGRYMpyfd8hGirgQWp4IdKvYq83Nze8K9pKAd4osCHxmUKF4bjEVCeX2J VxA48zjWo6cl9JZcI2G4W4/Ob3c7wEBiUpcBkz4Y6ix76DqFhEweDA+zwo8zXcJksA bspkFOg4HRKGg== Date: Sun, 18 Jun 2023 20:15:42 +0100 From: Conor Dooley To: Lucas Tanure Cc: Yixun Lan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Greg Kroah-Hartman , Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 5/6] tty: serial: meson: Added T7 SOC compatibility Message-ID: <20230618-pavestone-atrophy-017a464a1dbb@spud> References: <20230615182938.18487-1-tanure@linux.com> <20230615182938.18487-6-tanure@linux.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CrX7CiUT711LxfDS" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --CrX7CiUT711LxfDS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 18, 2023 at 06:40:12PM +0100, Lucas Tanure wrote: > On Fri, Jun 16, 2023 at 12:31=E2=80=AFAM Yixun Lan wrot= e: > > > > Hi Lucas: > > > > On 19:29 Thu 15 Jun , Lucas Tanure wrote: > > > Make UART driver compatible with T7 SOC UART. > > > > > > Signed-off-by: Lucas Tanure > > > --- > > > drivers/tty/serial/meson_uart.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/mes= on_uart.c > > > index 2501db5a7aaf..0208f9a6ba7e 100644 > > > --- a/drivers/tty/serial/meson_uart.c > > > +++ b/drivers/tty/serial/meson_uart.c > > > @@ -796,6 +796,10 @@ static const struct of_device_id meson_uart_dt_m= atch[] =3D { > > > .compatible =3D "amlogic,meson-s4-uart", > > > .data =3D (void *)&meson_g12a_uart_data, > > > }, > > > + { > > > + .compatible =3D "amlogic,meson-t7-uart", > > > + .data =3D (void *)&meson_g12a_uart_data, > > I think you are trying to follow previous s4 scheme - to introduce a new > > compatible string, while I think it's not necessary or even wrong, this= will just > > make the dt_match_list longer but without obvious benefits.. > > > > as Conor already raised this question in previous dt-binding patch[4/6], > > how about just using 'amlogic,meson-g12a-uart' which is the first compa= tible > > introduced. > > > > if people agree, we could also drop 'amlogic,meson-s4-uart' since it us= e same > > compatible data as gl12a, anyway it should be separated into another pa= tch.. > Yes, I am dropping this patch and using s4 and g12a compatible lines. If you drop the "amlogic,meson-s4-uart" from here it will break backwards compatibility, because the binding permits "amlogic,meson-s4-uart" in isolation. Please do not make that change. When you introduce the new compatible for the t7, it can fall back to the s4 (or g12a), doesn't really matter, but the existing one for the s4 should not be touched. Cheers, Conor. --CrX7CiUT711LxfDS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZI9X3gAKCRB4tDGHoIJi 0qfqAQClhHK7sWjkb2YXNJ8lYDgSgt3RJ0S64L/6Faq3siZA9gD+LFwCuKva6h98 86uGxsdPFwp5DjlE3ksYwSFHxWRUOQk= =YyUX -----END PGP SIGNATURE----- --CrX7CiUT711LxfDS--