From patchwork Wed Jun 7 14:05:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 104529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp232110vqr; Wed, 7 Jun 2023 07:16:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CSPxGwheXbrcGMrxW7RDeXSObKDA51vjUMBL+TrGnRq4a9uE8x1f3R9g7i6Wrwp7FXSG2 X-Received: by 2002:a17:90a:d503:b0:256:6214:dcfe with SMTP id t3-20020a17090ad50300b002566214dcfemr1645696pju.42.1686147361194; Wed, 07 Jun 2023 07:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686147361; cv=none; d=google.com; s=arc-20160816; b=YpEb4k9slFh7FKHRjk2k3HPJvyFkzDJqawzWehaBtstR93F36H0ESE0Zly68/9rF6a qhs0WQKJet9Gbgd4Fvd8OvYsgFiHX/5W82BPAej+11i4/NLCe8bPuAEk+hYLaPWVAIss afG+Jl6t6nckFxxcgeo4i8WF3sPWQgisPQZQJcBOHCcquzIWbRYkMk2IKC6F5UPHlLHQ L2lejzaufd/VBHUOMzPjFO2j060zi/PAarDHIx/ddPzFgsjOXEtgEPyqE4t7o885dWSq XrlSh90C3NlKbyrFnP7HZrvlZvu5hdNmYgVpIvTtSvnM7jH4JE+L5k0yLtDh4Q5ZlpJd BfdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=C4s13bc5F5oqYqvLGak07p0slhBoOLAKH4c4bmBI5jA=; b=UYmjliQw8tZfCmUs45E/zTZpoFrGGrel97WScADjD85awM/aSSY5jIrV0JV6I633rl TFzRLza4+JuP1NCPLE4UmtHLnhdgZeMEakqVJ8+bohhd5WEz1JzSoPLJFupmd+wWsfBE ZZ6qcuTFStSunjsiC9jSdIEI1t6Y7lSIqxRqiFbv5O7xYJditLzWRB7kTp40Ou1JK1P5 vdUmR44LdXaPuoT/TsqGaRZFjRQTT09D0wbyT64JvF2If8ecQEU1555YXeadpHwv6va6 fukan6RZDJ4YYhBNxHlCQFCHuYaiRFYQHqE103GSh3Pjmxv0n3i5iHIWlGFxl9ocvpCi /yAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=RZZuOATh; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a17090a1bc600b002586e10402dsi1119585pjr.175.2023.06.07.07.15.48; Wed, 07 Jun 2023 07:16:01 -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=fail header.i=@hugovil.com header.s=x header.b=RZZuOATh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240976AbjFGOGU (ORCPT + 99 others); Wed, 7 Jun 2023 10:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240912AbjFGOGB (ORCPT ); Wed, 7 Jun 2023 10:06:01 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883001BD6; Wed, 7 Jun 2023 07:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C4s13bc5F5oqYqvLGak07p0slhBoOLAKH4c4bmBI5jA=; b=RZZuOAThcZme93BhfB00Z3U7qC QTnwHu+cIlIYsSeeUFcoMOl5iLkPUKNDnm0c2P+HJRFO7fcjR32XYz/V+I/8Vlv31tVyamjX9bd06 4iJjF4erxKF16LZ0v2ckdbrN2L1/R4RoaHvHPiipEq4OfIuLpTEXMfrGlA7heZbTaqX8=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:57832 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1q6tnG-0005dF-Tw; Wed, 07 Jun 2023 10:05:47 -0400 From: Hugo Villeneuve To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, jesse.sung@canonical.com, isaac.true@canonical.com, l.perczak@camlintechnologies.com, tomasz.mon@camlingroup.com Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com, linux-gpio@vger.kernel.org, Hugo Villeneuve , Lech Perczak Date: Wed, 7 Jun 2023 10:05:24 -0400 Message-Id: <20230607140525.833982-11-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230607140525.833982-1-hugo@hugovil.com> References: <20230607140525.833982-1-hugo@hugovil.com> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH v8 10/10] serial: sc16is7xx: improve comments about variants X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768053655389506144?= X-GMAIL-MSGID: =?utf-8?q?1768053655389506144?= From: Hugo Villeneuve Replace 740/750/760 with generic terms like 74x/75x/76x to account for variants like 741, 752 and 762. Signed-off-by: Hugo Villeneuve Reviewed-by: Lech Perczak --- drivers/tty/serial/sc16is7xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 7616703f7438..c9edc51870ca 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -223,7 +223,7 @@ * trigger levels. Trigger levels from 4 characters to 60 characters are * available with a granularity of four. * - * When the trigger level setting in TLR is zero, the SC16IS740/750/760 uses the + * When the trigger level setting in TLR is zero, the SC16IS74x/75x/76x uses the * trigger level setting defined in FCR. If TLR has non-zero trigger level value * the trigger level defined in FCR is discarded. This applies to both transmit * FIFO and receive FIFO trigger level setting. @@ -234,7 +234,7 @@ #define SC16IS7XX_TLR_TX_TRIGGER(words) ((((words) / 4) & 0x0f) << 0) #define SC16IS7XX_TLR_RX_TRIGGER(words) ((((words) / 4) & 0x0f) << 4) -/* IOControl register bits (Only 750/760) */ +/* IOControl register bits (Only 75x/76x) */ #define SC16IS7XX_IOCONTROL_LATCH_BIT (1 << 0) /* Enable input latching */ #define SC16IS7XX_IOCONTROL_MODEM_A_BIT (1 << 1) /* Enable GPIO[7:4] as modem A pins */ #define SC16IS7XX_IOCONTROL_MODEM_B_BIT (1 << 2) /* Enable GPIO[3:0] as modem B pins */ @@ -249,9 +249,9 @@ #define SC16IS7XX_EFCR_RTS_INVERT_BIT (1 << 5) /* RTS output inversion */ #define SC16IS7XX_EFCR_IRDA_MODE_BIT (1 << 7) /* IrDA mode * 0 = rate upto 115.2 kbit/s - * - Only 750/760 + * - Only 75x/76x * 1 = rate upto 1.152 Mbit/s - * - Only 760 + * - Only 76x */ /* EFR register bits */