From patchwork Wed May 17 14:13:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 95285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1185671vqo; Wed, 17 May 2023 07:37:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EIfBiotd6zqoZGPy70lxleIht41ycTNuCU9KwzrwggN74AzhyO5Y800hCacJlOZe3hAvz X-Received: by 2002:a05:6a00:22cc:b0:646:e940:c2c4 with SMTP id f12-20020a056a0022cc00b00646e940c2c4mr1397365pfj.14.1684334269951; Wed, 17 May 2023 07:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684334269; cv=none; d=google.com; s=arc-20160816; b=D+g4Ah1vzVFuoe4Kc+tyqje7+1WEnuPvin19AesydI7S6xgCpt4A5fqghmCukpacuX S7fBPaHfBlK5g9CGTcvwtJOXAumWItptropD0pEPGXWcf/ebhvCsvC5k3Zb5B6nKVp0S nwGLRtmylGjY6jzyNe8DiFz2exj7Y11BUfzngE9OTG8nSUDy7RA7DaEpEKNc8yXu580r AAZhNu5pD4c7ClRimWr1JK3PpetBkzvFwrcDeKOpwLan78goxjpkr196eUJCqwqtZ0uv +1MmnRNDP6d0TpBqSBFJ4XEKuszgzQaAEIqGpD8SX+hX07yeThZbeVL/lMkqYMr7UtWv kJ8A== 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 :message-id:date:cc:to:from:dkim-signature; bh=oMgj+tKoLcLXXYaEiSRJStVpk7eDMdwwfoe9DPEgx18=; b=NwoJ/H1u1okJn/8X/rd7B9RIc/w5upKmFg6TfQQH0wIdT7Zos4UpE75uF5kPK3qXY2 ICFxEOkScfNRZank4ow8qhkR/1mnzwbnasilI0YXtQPzZij87BMgHH4JBz24Tt/ip/S5 pQYV6edIwYHcQGgB/j89TEF2yCzDsNVDVkWa1SM6UTVxbydlUtvShhGmYKa5rPuz7sf+ PlmL34WNS5eOfLOfp9Cii23EPCvQbPySwLXFwHW98h1PIHNO7kitVFqQ03W9TnzmaBuM fNDuD9cUsOPU25c3nCYNYoGOe3dhPHzomuP60hWhBYnYjG7I9lMi5TJTWoc/zbrsLdgK Nhww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=Ypr3Tk5U; 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 z23-20020a63b917000000b0052c5d8db0ddsi21840029pge.790.2023.05.17.07.37.37; Wed, 17 May 2023 07:37:49 -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=Ypr3Tk5U; 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 S231861AbjEQOOh (ORCPT + 99 others); Wed, 17 May 2023 10:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjEQOOb (ORCPT ); Wed, 17 May 2023 10:14:31 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F1597DB2; Wed, 17 May 2023 07:14:25 -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: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:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=oMgj+tKoLcLXXYaEiSRJStVpk7eDMdwwfoe9DPEgx18=; b=Y pr3Tk5UxxBEHfeWG4zsdrv4VyWj/e310JeG+XlAmHUUx2ZwsC2/QviXEGyBUF2NBTxkRZLhfjzobW BoR4+5Izy61ehBz4Rjtj2me8COeS8SQOPZCvguXBd55PCjxaExulW6jbm6SRjX2T/uxJPfYWr4RR8 cyIEWLqpFRDAhUkg=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:54876 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1pzHv4-0006ow-H1; Wed, 17 May 2023 10:14:23 -0400 From: Hugo Villeneuve To: Greg Kroah-Hartman , Jiri Slaby Cc: hugo@hugovil.com, Hugo Villeneuve , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 17 May 2023 10:13:49 -0400 Message-Id: <20230517141348.3792842-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 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] 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?1766152491419804481?= X-GMAIL-MSGID: =?utf-8?q?1766152491419804481?= 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 --- 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 5bd98e4316f5..00054bb49780 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_BIT (1 << 1) /* Enable GPIO[7:4] as modem pins */ #define SC16IS7XX_IOCONTROL_SRESET_BIT (1 << 3) /* Software Reset */ @@ -248,9 +248,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 */