From patchwork Fri Sep 22 06:36:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 143215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5366022vqi; Thu, 21 Sep 2023 23:46:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0aRx5olX3zbo2bFnYX+ODSj4Rw4qmcsJeg1mZvAp/fYYf4S0qGRy6yUtwGOc21Tx0XK5s X-Received: by 2002:a05:6a20:2594:b0:14c:c393:6af with SMTP id k20-20020a056a20259400b0014cc39306afmr7253826pzd.0.1695365208320; Thu, 21 Sep 2023 23:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695365208; cv=none; d=google.com; s=arc-20160816; b=DM2sjoMOn8fT/B29j28MKRJ6lasZFSN//gKL6Ok/HFy63397Y//JsLWHemj6odMZjL N32h0Kv7KUM7O3HhhEGTiDZnceIXrC+JT+ZUa9KFTMP1dK8zyUc2GgAr9LQEGZiVFt8u miBagCeIjxqWz+v2k2hs+hs635do5q2roVWrTnKhizw4F2IMGZOPQmLMe8TtSwjlvTkF ggX2QvnS4L/vZnWm4NyUDKQQ/ksrlApO667ZdYK3hTACMxbbtUgz1HzL+YZWMcuwW8Ks vC49esAgQM7knU8duUm9GOkY74i312gop8M+rGA6PgzFGiX0J1s0Y/KjWPLmDkL9jf0Q XWww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FklUloVeC/IRscF5Gxi0GaW0kes3xUCC/OyKePZjK7g=; fh=aG7hBLBmw1l015ofgK5wdSVNBW5CuCZaxxDB1+c/8fI=; b=N78/2vz/SrgaH9iJtFocOjo+K3MDgXkkXJMbC9hWp8Cp+0sKo3Y+/wI0DwkqaP0myZ CAi/RVRnhoPtbEHZ1Li8nM/zyOVIyb8r8xlv9TPO/w6J3Sva0A9dRl2wWtB8gJXMfik9 hC5rli9JE6gW7sXDLcuBc3viAKiNf+ntqulMLTUDPhtK86HzsfYR4Q3yY6ilzjuHd/qk TixInLNbNJQuqxkYKoCgvU10DfNT5ZJDkXTeIe5LwNedJaqD1y+/NDw0kZnprN6kTN8D 7zy8uRkm6i/nQeCN/Gq1YbuzgEpF0POvvw3UFsh5UXdFy3q7K+6S3Q7G60uOCwG+eS7o lsAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=QMDzuS5S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a15-20020a170902710f00b001bb993caaedsi2943555pll.173.2023.09.21.23.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=QMDzuS5S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9300D83037DB; Thu, 21 Sep 2023 23:37:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjIVGhJ (ORCPT + 30 others); Fri, 22 Sep 2023 02:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjIVGg7 (ORCPT ); Fri, 22 Sep 2023 02:36:59 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F290E19B for ; Thu, 21 Sep 2023 23:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=FklUloVeC/IRscF5Gxi0GaW0kes3xUCC/OyKePZjK7g=; b=QMDzuS 5SRIR3kgcPOVLsMOQOQjRV03h+7w8tVMA1L53xCEhlo/eiF8uRtU8qs+Y9YupN5w 1jCfYXB3jXVnkbCW09p1V8BrdC3FWI+xvH5d0edFEwNkHzrdLfsvmQFs1AO8uXk3 5k7nldWfgpT6k7AHB1WL4O6BXQIaI6AksP8QymfGSJiMF3SBD/TNE6bCaZs3cjCH /UeLchJO1bCk6QO8QsEki16nnSheCssxUejZesJCns0CibWjYj+i8SIpHeumw/LH DsexD1/9NGXYw+RpKt4J0XE6Gf/fweltgpzau92yUc+I11Qs7KHDrVlxMU6uSFwt 3cPxw4mQUnE9NJtA== Received: (qmail 1276431 invoked from network); 22 Sep 2023 08:36:51 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Sep 2023 08:36:51 +0200 X-UD-Smtp-Session: l3s3148p1@bHdj1ewFeroujntX From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 2/2] serial: core: add comment about definitely used port types Date: Fri, 22 Sep 2023 08:36:42 +0200 Message-Id: <20230922063642.4120-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230922063642.4120-1-wsa+renesas@sang-engineering.com> References: <20230922063642.4120-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 23:37:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777719268556904426 X-GMAIL-MSGID: 1777719268556904426 When port type 18 was removed, it was deduced that the code could go but its define has to stay because it is used in userspace. Share that knowledge by adding a comment about it. Signed-off-by: Wolfram Sang --- include/uapi/linux/serial_core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h index 92e3dd56f631..46e06c483899 100644 --- a/include/uapi/linux/serial_core.h +++ b/include/uapi/linux/serial_core.h @@ -11,6 +11,8 @@ * The type definitions. These are from Ted Ts'o's serial.h * By historical reasons the values from 0 to 13 are defined * in the include/uapi/linux/serial.h, do not define them here. + * Values 0 to 19 are used by setserial from busybox and must never + * be modified. */ #define PORT_NS16550A 14 #define PORT_XSCALE 15