Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1909253ioo; Mon, 23 May 2022 06:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhSdvD9Iunwg1qMmGlXUnu3wDHgYtPvK/+bofUXJMt4OU8i837mydZQnnjsUXLIpvV6MMc X-Received: by 2002:a17:903:258a:b0:161:c68b:f77 with SMTP id jb10-20020a170903258a00b00161c68b0f77mr23192129plb.48.1653311266222; Mon, 23 May 2022 06:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653311266; cv=none; d=google.com; s=arc-20160816; b=Ezl3WDUV3phLaT5DisbIWPdw95unJ1zLmENYyM2xWe1p+LAsKJZ/u31DGl3Omkl5Hj WHomdT8Ua6sQsOtMkqRxUsWmKm5lrlxvl27WNpjoA+D9iPlxiOmZKAyS2ISieUmqZRGY qnkkTMg13N8A5iLGEpKGwPiQomX/0e11XkALcPQS27+Dj/X6yLjeBwsxIP6uowJCICzF sBbKERf5g1Nsfhu3tWl0OHXTSQ+eN+wSwW/OiW/DyGFpKG8FCRwedSL2CmHc4xtxCYQG hIr/pMdWU1t2TUsaAkkBxXGi0F+eMLj6wloOSpPyCl+/B8U9rOS+dURTdJPmSO7Jt0Xh zuvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=50wuqx97QXZx2zbLRPpUZaCAf982O497zw+lzOUq1k4=; b=tJ4AOQzT6JZFxua0/EGEKGVfp5mbwElv65yeaVbWvBsDXEShnuEPQFUSH+kZltHq+/ d1v2RpVIuSItDf831bf50Pdd7HUmPOHb9CklRSWzzhSzc8U5U8ibR2hnFH1f9rWlHBkn 6gJk8bVNirFhK5YZP8PC6P4183cIypQ5iozcGr92sWzslvdCyADOqoiF0fWYJ/GTbSrh nkQ1f4bfSZVbe1eS7PoknTq0zWjDhd5o5a4ft3IHKW53Becxy5LbXhAegfe4pjuTbSsX CY0RGxYeHzO1vZ3pPsfGLpIhP9G0jspJHZisBZbKOkw0cMAuFsuLny2uKcRaRfF4ZcjX 9XJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SDuGMgEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z1-20020a170903018100b0015e7a2f9741si12605092plg.395.2022.05.23.06.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 06:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SDuGMgEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 339864F9D9; Mon, 23 May 2022 06:07:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235985AbiEWNHH (ORCPT + 99 others); Mon, 23 May 2022 09:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbiEWNHA (ORCPT ); Mon, 23 May 2022 09:07:00 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 579A849C87 for ; Mon, 23 May 2022 06:06:57 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id s5so17110743ljd.10 for ; Mon, 23 May 2022 06:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=50wuqx97QXZx2zbLRPpUZaCAf982O497zw+lzOUq1k4=; b=SDuGMgEXCGQ1TJ0fNHdXQPIRrrbTcF5QRnV15Th8wlnm6ALDsCXQkDhSc30CAXl9Kp lUcwwo8YPG+ToK1ghL+xsLwZPbKsU3Xs5fTm4yRb1VvjTdISvp+ik2qXsRARg60MQYWC GzqnvLsPLHQQ9m8qRk3NoJy44Um8tv0iazTe+dReBMGQpIWhXgY7sW+X5Q92sAdYY4Up yPMCEKh8i9Ozg5XgOdN0UxNO4J+QgBEZh3/Z8fVZf4cnzrU5tlx9D2h6JrtHwCIXtkCT BYpUW9KmlugPMvChcIWuNOw5mvQnQfIPUm4rq/I+cIqgIavTpZd0JMU/RlcgqLJUgwvk OYWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=50wuqx97QXZx2zbLRPpUZaCAf982O497zw+lzOUq1k4=; b=RcSQdzOnJri1WMWWbrikuYmAyl7U5skAmkrJ/u4IdsLd3CHlCWBhwH4TL2NiWCmBH1 IC9eq+/OF4FgSuH7fT+gHbAx3MHPh4EGG+FnYK6mGjNyo/Sl7pIjEWunaQ2Xwgwm7+pK 7l6a1l282XlDqx0LpEv0+bblPJd+5DtPm8s5nzdlgwmLPGM4CpFGEabFurI7X93+Qmgs lHQ1HGOzXrOMFC6NOwJ16JExCHpd1no5EjfCoslTFAFS4tMeBS30bhBgE8EEvpASdSLD flThrpPAislRwHMOJbclN5/Y7AGuaLrlqIzjwR0mlKBb0tk58IoGDbBUVpiU3tPAhOhW lAvg== X-Gm-Message-State: AOAM530hTa5aAVA/x3dTe5a1zaFrQR9+tHc3nnKTU2vnQ5D58WOmjja8 IjhU6xE3yCBRf08GRCwoQVKSUQ== X-Received: by 2002:a2e:a26d:0:b0:253:d7b4:1d9a with SMTP id k13-20020a2ea26d000000b00253d7b41d9amr11639775ljm.203.1653311215543; Mon, 23 May 2022 06:06:55 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id c6-20020ac24146000000b00477b0cfc990sm1968975lfi.30.2022.05.23.06.06.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 06:06:55 -0700 (PDT) Message-ID: <2ccfbfa8-be11-50ed-66ca-3476cbddb320@linaro.org> Date: Mon, 23 May 2022 15:06:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v1 04/19] tty: serial: 8250: Add NPCM845 UART support Content-Language: en-US To: Tomer Maimon , Arnd Bergmann Cc: Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Philipp Zabel , gregkh , Daniel Lezcano , Thomas Gleixner , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Olof Johansson , Jiri Slaby , Shawn Guo , Bjorn Andersson , Geert Uytterhoeven , Marcel Ziswiler , Vinod Koul , Biju Das , Nobuhiro Iwamatsu , robert.hancock@calian.com, nathan=20Neusch=C3=A4fer?= , Lubomir Rintel , SoC Team , DTML , Linux Kernel Mailing List , linux-clk , "open list:SERIAL DRIVERS" , LINUXWATCHDOG , Linux ARM References: <20220522155046.260146-1-tmaimon77@gmail.com> <20220522155046.260146-5-tmaimon77@gmail.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 23/05/2022 14:58, Tomer Maimon wrote: > Hi Arnd, > > Thanks for your comment. > > On Mon, 23 May 2022 at 14:48, Arnd Bergmann > wrote: > > On Sun, May 22, 2022 at 5:50 PM Tomer Maimon > wrote: > > +++ b/drivers/tty/serial/8250/8250_of.c > > @@ -333,6 +333,7 @@ static const struct of_device_id > of_platform_serial_table[] = { > >         { .compatible = "ti,da830-uart", .data = (void > *)PORT_DA830, }, > >         { .compatible = "nuvoton,wpcm450-uart", .data = (void > *)PORT_NPCM, }, > >         { .compatible = "nuvoton,npcm750-uart", .data = (void > *)PORT_NPCM, }, > > +       { .compatible = "nuvoton,npcm845-uart", .data = (void > *)PORT_NPCM, }, > >         { /* end of list */ }, > > If these are compatible devices, it's usually easier to claim > compatibility with both the specific chip and the older model > as a fallback, to avoid driver changes. This seems to apply to > the timer and watchdog devices as well. > > Just to make sure, Do you mean claim in the device tree? > like > > compatible = "nuvoton,npcm845-timer", "nuvoton,npcm-timer"; compatible = "nuvoton,npcm845-timer", "nuvoton,npcm750-timer""; Best regards, Krzysztof