From patchwork Thu May 25 04:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 98770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp101603vqr; Wed, 24 May 2023 21:18:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lfUxh1LON9bJTe2DtfOjIFLmIxX9DAf0tPZ1fe3zXNEPBdjkroFwxsE/Q+3HsgB7LV3gO X-Received: by 2002:a17:903:2281:b0:1ae:62a6:fe61 with SMTP id b1-20020a170903228100b001ae62a6fe61mr303651plh.54.1684988295319; Wed, 24 May 2023 21:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684988295; cv=none; d=google.com; s=arc-20160816; b=Xv5Z97z4oA3AC8c197mQR02cGg+okvTI9cNwXKoGl6Hn4YNpwTENErF6DujLVjcc1D A4yC7aqnAMj7BEJUjD6Mkdzz3J/xHYf+3JrAieGBat6CVH35/rCgLJFa/cRWXQCfD729 a0mkH0JFbYS67w1V8RRulD1QiPEtRkaf5U85RcCySvdJttthqhCpp0b/5cAnVgQgmY5H PoDgVIGe0jucA3RsyCL5JqKVdp2+ZzaidYMHK6edvj3zZw0D4awwI0Fr5xo2hVpy90iJ xi6o1qXRZrPtalU8rN8Kw/qG5A51zQv4It0EXwfIttysbyVwU18IO7gYmkKhzvQTSfFM cbPA== 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=oMgj+tKoLcLXXYaEiSRJStVpk7eDMdwwfoe9DPEgx18=; b=N3KT1NBG/1OsthqOi5fTAmzWN4j6EdgMa2V6rIfPcb0YWLt9hM1VkgeQvitOxX0FC5 T87OZtA8klfe0Ed5msAZrYEp9wc9QvM+/JrO7DMDk7sJ2IjMJjlThpC+1Kmo+WIQQGHS 90L1fACTNwKO/lbzR3LDAiyEAOSPlvv5V3LbfU+xAZGlwuLQ79trh/nmY8ji8t753ZTw LNdaQg/xP6USKEvQ0dnoEbbQleacVrNo8g1b4bq9+Q6vHdzucN7M8A8uHW4381rFGcTV 1TnFPQJPNN2JemYdieJcrNey+UA7vQDE2SOcJ5VF/FAKqrr6T1GrHZMgD/EWQDrj4SRZ UNRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b="X9qxZM6/"; 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 j12-20020a170903024c00b001a99b9d767csi556419plh.166.2023.05.24.21.18.01; Wed, 24 May 2023 21:18:15 -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="X9qxZM6/"; 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 S238376AbjEYEFm (ORCPT + 99 others); Thu, 25 May 2023 00:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236779AbjEYEEX (ORCPT ); Thu, 25 May 2023 00:04:23 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 880D4194; Wed, 24 May 2023 21:04:17 -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=oMgj+tKoLcLXXYaEiSRJStVpk7eDMdwwfoe9DPEgx18=; b=X9qxZM6/mjAYrAUtIhVpFVUZtU ZP2C8+4WM6+f+SMqUNUkynegFudfpBSVMpV2rSaGSQPd/cn2fRJsOh16cnqjZxhAOGv2Ie1NniUyQ XZc5Q7YilD+PkyFbsk15qoZdNcCV+44MRHZb02N9995ydMOuyMu1KOz+yOCArb+koSXk=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:52970 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1q22Cx-0001dB-0S; Thu, 25 May 2023 00:04:11 -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, tomasz.mon@camlingroup.com, l.perczak@camlintechnologies.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 Date: Thu, 25 May 2023 00:03:15 -0400 Message-Id: <20230525040324.3773741-3-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230525040324.3773741-1-hugo@hugovil.com> References: <20230525040324.3773741-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 v3 02/11] 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?1766838287023842203?= X-GMAIL-MSGID: =?utf-8?q?1766838287023842203?= 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 */