Message ID | 20221019091151.6692-28-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp227133wrs; Wed, 19 Oct 2022 02:47:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42NqeRG2nb7jbaS/mgHCsHmP6NgA44Ld6Z1W1B+F9j1VN0EGDz1oaqEVewakuAqnPoglqU X-Received: by 2002:a17:903:2346:b0:183:fffb:1bff with SMTP id c6-20020a170903234600b00183fffb1bffmr7636048plh.55.1666172874529; Wed, 19 Oct 2022 02:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172874; cv=none; d=google.com; s=arc-20160816; b=IE32M2tXWLBuwlU/xbWtzJOJGFpHl8Y8LCjz4bD/XS78BLVLkeowHuKBArnijs7fU8 pu98YpKTxcq0sPFYHp0Ga26aYYS2AuGjbJxs7eudtemlWQ97MH9QvNp18/F+CBBYKS/U dL1nBEE6mZJKokPxoFaktkqv5jX+ZRch7Me4+3rILd+BZ5U8hA+oKojVra0FTlNWQdvJ /NHo474+h0JZaii9juIwKzL995gvp+4Syt+BENxGNf5x8hy/vzT+itBm48PbsNjio6bR cekxdMD5EhVyRcQVQDt1fn+0I0Ntwq3Y740pB8MXwUd7XUAlml1yxS5llLZUGZZNIWKB bKLw== 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=Nn5cjPIUgfp2B673+cCrnoDjv4S2tNtXSBAQB52yjrk=; b=INGmqc6MNN6Do+cfHpMZmxgJqYirl3Wjc+GLdFPRSFSRec0UedTGmkGoZrhYe8qk+7 IJ05/TD3/KUpfK1tiC5vPZ3Lujrp74+36LTrZOcDEbPyn59UEvgCPOwSIiOgixdK1psB 1TRKiVDBTfl0F/jwyraiFGdk0XwwP1W5uJWXFKc2NUDTgkUcbFX8WjUao7mr9XD+tRyi DXfw2SRc/Mnj7UsOMHy+22qHxG0BYMWVqQr7WssdR1xt+qb7bqRoOdGp8pT5QcFhJPJk qzSQPz8ffAeH016yb2TGW4aEkZ2rQluRxl9ZDB6E0FfqT7cAUkeSvp0FQzmfvxIDlMPA z0HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HwQ0b8JS; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a056a0024d500b00565ec924efasi18359282pfv.365.2022.10.19.02.47.40; Wed, 19 Oct 2022 02:47:54 -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=@intel.com header.s=Intel header.b=HwQ0b8JS; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234118AbiJSJir (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233824AbiJSJct (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:32:49 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 862CD1D0F5; Wed, 19 Oct 2022 02:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170890; x=1697706890; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SUPklsG2WSSwlcnWLtfDOus/SL3h7qEsP6z+fE6Ek7s=; b=HwQ0b8JSKB9tyeF11oJj6YEEInljmBOeEpbWeQhYxlIWtRIj0skKO1W8 tX249mXc7V+2VOOP2gKNdTZnTeZrmvQnOAGUeQh7XOIc0koch+3sncMID qZep0nC35REA6fwcYoXsa7hsIaowEq4h3c6MPdUS48/MetjOOzbXxKtno x7vVnM/ciIcApLpP7Vfp8RA3jCERbhvyds2tx/6XfsHvFJbdxrdZ4+007 a4AAdqES4TgiES51orkRKg8l2YfBy9RfvWuL9I8A7E6/pi9yAsYd+YIUM JgHgnhyTC6HxYpaSgyaw+BVKWzh/oP5gXIxLwW14DdgxMn1D4P8O+L2o9 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911202" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911202" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:13:52 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119027" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119027" Received: from sponnura-mobl1.amr.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.251.214.35]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:13:49 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-serial@vger.kernel.org, Greg KH <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Manivannan Sadhasivam <mani@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH 27/44] serial: rda: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:34 +0300 Message-Id: <20221019091151.6692-28-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221019091151.6692-1-ilpo.jarvinen@linux.intel.com> References: <20221019091151.6692-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747108888053205170?= X-GMAIL-MSGID: =?utf-8?q?1747108888053205170?= |
Series |
serial: Convert drivers to use uart_xmit_advance()
|
|
Commit Message
Ilpo Järvinen
Oct. 19, 2022, 9:11 a.m. UTC
Take advantage of the new uart_xmit_advance() helper.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
drivers/tty/serial/rda-uart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/rda-uart.c b/drivers/tty/serial/rda-uart.c index 0e387e2144fa..be5c842b5ba9 100644 --- a/drivers/tty/serial/rda-uart.c +++ b/drivers/tty/serial/rda-uart.c @@ -353,8 +353,7 @@ static void rda_uart_send_chars(struct uart_port *port) ch = xmit->buf[xmit->tail]; rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); } if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)