Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1042428rwd; Tue, 13 Jun 2023 04:11:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tmhqZj7GAqyceg/5IG+QvJo4ehIqSNdr/BUXdSppFq6L4O1DUjY1pvsIlB3QtKu29xUW7 X-Received: by 2002:a05:6402:1112:b0:518:79d2:208f with SMTP id u18-20020a056402111200b0051879d2208fmr712843edv.35.1686654673306; Tue, 13 Jun 2023 04:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686654673; cv=none; d=google.com; s=arc-20160816; b=cNj8hp2FuqvwjtlDeXpKzQhPTWdE0ki3m19iXr6ihqwG58cjpoANIsQOW7U+pKSW53 0Ks3W4Tm4q9iAqnhAuGyKhhHN62X4B+6tIXlx8BCJwd34QR/PuSHgkU3//1T4JgryxB1 I7NradX1qZqliZsAp6PFqTgJ23SvhoNX+fM+AdIhVE+8eVItJwgLYHt6eyPMkiD7aegK fpxq4zRULo5qp7y7rr5YTCYX1fsANre8lV6U+2gnNV56fg72CIVrvnReIKZ6Mc6dkDcH Bz5YxK0DUD5884B7EOPmmXtXtxME2enKCGF0KRbRri0IVEzSXQiv+VTBHptxu6YMHGCa TyRg== 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=g816wKmTzjGrsMqAUO96nczc9ajLi9Tce0NGl/fCFGM=; b=kPYSfsL+sL7BAvIHuxkK1tWZwlnu05KvGy6TwoYYiPFiCfK2x+EpfEtzUQd0LOfksV pal8GGioQZkeOxCmow6L03gK2ZnnpvBgVHVyvhgeS8qBOOrnrSzSp1VQWmqITQyV6EsF pSqHGdbBWb+29L2lYxzKfubrClrFAxrDYFYxBKw84ETVEmgZBV65bLtgdA04QnbSxSkv a3yCPJPNtuDwQ4J8Xu4/JgAQnR4PQ98MfCljorV+2lXa4sUw1XvF94luATszQWSYyzDv FQd7EziiLGdai+JHlx22VCDix+eMO8RH5Xk9BqpDaOCFdaXl5+RCZVS1O/k8TFX+AwT0 cPYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Nu8qTTKG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020a056402129a00b00516a1751d76si7259611edv.562.2023.06.13.04.10.48; Tue, 13 Jun 2023 04:11:13 -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=@gmail.com header.s=20221208 header.b=Nu8qTTKG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242047AbjFMK6l (ORCPT + 99 others); Tue, 13 Jun 2023 06:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239026AbjFMK6j (ORCPT ); Tue, 13 Jun 2023 06:58:39 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA17310D4; Tue, 13 Jun 2023 03:58:38 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-662f0feafb2so3927995b3a.1; Tue, 13 Jun 2023 03:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686653918; x=1689245918; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=g816wKmTzjGrsMqAUO96nczc9ajLi9Tce0NGl/fCFGM=; b=Nu8qTTKGvJQqvV1LFAeRfPJhXuBfvDyjaBCqv6/J8ihQx4ErFwpT+047weYG2+iFYa lHUm9xjeseq1+ysAJl/Y8C0Vl11j3LrsdANbT9H4oHxCpUhBNggO2orPCLMQgy9/VuKg 6+gt+nIuugGRZjCmr+fJNT+UmzsOk0YQ2ZpRWZE/ZtbM+6SnH82QRO81oaSRSKXkNzYC 7Wc0u4omCGYmr12liRAxIqVvNpV9Fm53sn1hSUpaYV/t25MPsE2SqZj1bruTYodjVou+ l/hINNGMkv6ba6ui+DaBcZXCYlXHJPzfON9UDqdSZ2nBjnS+4dAGuh+61my3+yK6QBN/ mPxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686653918; x=1689245918; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g816wKmTzjGrsMqAUO96nczc9ajLi9Tce0NGl/fCFGM=; b=fG4BiZ1m0igxTxRtyEbQoqOmIx5q6URIJXpHzqX/8afv6LG8YGWwE6EpGUeftmEbHH G05JQvl9jfGcODS7HmQbb25S75HyueOueVsVb90ifangYOjbh9TBDQaQlhWevuSWcNMn 1eG6RXlCYkd7YdxruTihd1FseujHL5oNGVn0iCu1SSPGoyW0+2emdYBspBzOslueNCdf RwxrwPadQlfdTFfk6wJfje3dvDhQY47acTd6Q4TQCP9sPxBEjGd0tsjl9o1sf4FXCFYb MCTuh68NAhRgqrV8JQf+gUe30WY1YcfqPH6tEVfXNFr8ruVND4OcKy9yBqAw5NjnfUgi ylXQ== X-Gm-Message-State: AC+VfDzyuR+V7M7fVRa4FOmdpAfVp7YCf11Q8h4Cl6qC/a8+MK1Vbsaq A/NUscQuL1a16UrkhQ3u3VPzszvSi4I= X-Received: by 2002:a05:6a20:3c8d:b0:101:1e75:78e with SMTP id b13-20020a056a203c8d00b001011e75078emr17197706pzj.14.1686653918142; Tue, 13 Jun 2023 03:58:38 -0700 (PDT) Received: from [172.19.1.47] (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id s15-20020a65644f000000b00543bfe33fedsm8349191pgv.20.2023.06.13.03.58.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 03:58:37 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2023 18:58:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v14 1/1] tty: serial: Add Nuvoton ma35d1 serial driver support Content-Language: en-US To: Greg KH Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, jirislaby@kernel.org, tmaimon77@gmail.com, catalin.marinas@arm.com, will@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, arnd@arndb.de, soc@kernel.org, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang References: <20230612025355.547871-1-ychuang570808@gmail.com> <20230612025355.547871-2-ychuang570808@gmail.com> <2023061338-lunchbox-snorkel-e6a9@gregkh> From: Jacky Huang In-Reply-To: <2023061338-lunchbox-snorkel-e6a9@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 Dear Greg, On 2023/6/13 下午 06:28, Greg KH wrote: > On Mon, Jun 12, 2023 at 02:53:55AM +0000, Jacky Huang wrote: >> From: Jacky Huang >> >> This adds UART and console driver for Nuvoton ma35d1 Soc. >> It supports full-duplex communication, FIFO control, and >> hardware flow control. > You get a full 72 columns for your changelog :) > >> --- a/include/uapi/linux/serial_core.h >> +++ b/include/uapi/linux/serial_core.h >> @@ -279,4 +279,7 @@ >> /* Sunplus UART */ >> #define PORT_SUNPLUS 123 >> >> +/* Nuvoton MA35 SoC */ >> +#define PORT_MA35 124 >> + > Why is this change needed? What userspace code is going to rely on it? > > thanks, > > greg k-h Because the serial driver requires a port->type, and almost all serial drivers defined their port type here. We follow the practice of most serial drivers here. If we don't do it this way, we would have to directly assign a value to port->type. However, such modifications were questioned in the past, which is why we changed it back to defining the port type in serial_core.h. Best regards, Jacky Huang