Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1828297rwd; Thu, 15 Jun 2023 16:47:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EEdqlo260A8tNnaYN7lHczw5spynEuUycykWbAOb2sAzqFSVAH9rKERxLHnY34akB6uST X-Received: by 2002:a05:6808:bc8:b0:39c:46db:1f83 with SMTP id o8-20020a0568080bc800b0039c46db1f83mr825462oik.14.1686872854554; Thu, 15 Jun 2023 16:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686872854; cv=none; d=google.com; s=arc-20160816; b=jebg8OA6d7RAiDKnD7jRGoFp7ecWOahUJ7S0paVxVrOBSx10XfN7H8A52cKgImU3bH cnpu+cEjVGKtjZW2B4IQd5ir/WLU7obWcgtZiLTXJEit2N75rmu8tM9rTiRyHXD/ncpr wQHGweztLR1wk4aXCygYrOF26UXumrpkElfKAFZt+QtjdNt35P+s9YsGvtSjzlvtg15j VkB6m6dmlkUPBykwaQVNwyjkCs+lzIEF7RZ6V3DQ/95+yUKVk1Nk7TgxzdTntsCfZi09 Ylj29JdbIyOULnqIYlKlCjdqnD4z8dCfAn6HjaOK0+G+irQJ3feir2IFvs8eorj0Sn9f QPug== 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; bh=nRKMsde+ZSSbFyvBPeKJAKIgdLDeDHW5HkR8BKZm4+w=; b=D4ICsH1zmQiMjBg7WCTJs/jQnf6Gnzs2GnYf52RflXZuHtk3Sx04ogXWcLbL8oS2xL JdoVbHoIVL/cXDjNJZbh+uBlvLzM0BfKZ2JYEn3o9isGFHHHDjo/xEW4vw64YO28kaBD Q7zZ4aYyc0THx2d1PfxyD78u9nj2abGWw7G9EznSA2pmGdZJB3meJ+AkTxj8PcpAn30U mDj4TnVdbikCiy+QXv2VlEXhRU22YefZn//LcEB2aAxcKKo03rJDQyi6oxjClSZtHWiy SHGuzZC2Gsb+o6wa4FIDzAoBs7MQCpZ9HGr+15nZLDFpuDdhwL+67rPj73vvfGqHI+tt NlgQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t184-20020a6381c1000000b0054ff67d6664si2615176pgd.52.2023.06.15.16.47.22; Thu, 15 Jun 2023 16:47:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236206AbjFOXbL (ORCPT + 99 others); Thu, 15 Jun 2023 19:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236672AbjFOXbI (ORCPT ); Thu, 15 Jun 2023 19:31:08 -0400 Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B088B296A; Thu, 15 Jun 2023 16:31:03 -0700 (PDT) Date: Fri, 16 Jun 2023 07:30:51 +0800 From: Yixun Lan To: Lucas Tanure Cc: 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: References: <20230615182938.18487-1-tanure@linux.com> <20230615182938.18487-6-tanure@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230615182938.18487-6-tanure@linux.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 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/meson_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_match[] = { > .compatible = "amlogic,meson-s4-uart", > .data = (void *)&meson_g12a_uart_data, > }, > + { > + .compatible = "amlogic,meson-t7-uart", > + .data = (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 compatible introduced. if people agree, we could also drop 'amlogic,meson-s4-uart' since it use same compatible data as gl12a, anyway it should be separated into another patch.. > + }, > { /* sentinel */ }, > }; > MODULE_DEVICE_TABLE(of, meson_uart_dt_match); > -- > 2.41.0 > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic -- Yixun Lan (dlan) Gentoo Linux Developer GPG Key ID AABEFD55