From patchwork Wed Oct 19 09:11:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 13011506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A7D5C433FE for ; Wed, 19 Oct 2022 09:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TF5voaMVkTBlP+Vcc2ugWF+Kg6mhiwoR91oPR7UpSSQ=; b=ro5cCJLwLDTzDi uiUXgi9pYNW6suhH0dC3pQy3v7+QAzCpldKObPzWPfVRtjYrt5k9tY8aVi/6mJJ5/kKhFIMo20RvL 0ZWqEQRxpw+DLLTVxoYdfgsxwghaUrm0bIbTJklZxIesatR5ChLN4EC2/U/9DPs3ICTjAK+ZW373K 5Yu+NQhC8C5YnY9DHJkw79fwgZhwq/tzyuNkI/dK9UVVDTeR/IML0LoGkJEPCEmw66c5hS/tkaSy0 3kLrDYvh7/3uoT58OwWc3oSc91Jszh/LrQFW5bSaGSSDPPJqg07bircb+JhmTFiiTVfAq8GkZqIGN sx17QeUtRBlKVA6qmotg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol59N-00HGOD-VC; Wed, 19 Oct 2022 09:14:10 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol58p-00HG3w-JM; Wed, 19 Oct 2022 09:13:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170815; x=1697706815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I2sO96QvGbKZASEZajyqgl5elACacZqC44Dvl0bF594=; b=KHQdRngMfSJeTjHil7/a9Mu1x7WLczSHuf4EzSxyktVTVJtQL+hN8mfu 9HdPPd7vjpBaRPgztHpPmgWJJnGJ9EPOys7f7+E9yVPp8Mel5N3gn2z14 l7+dKFivB0ByfFFmAu2pM/wp7Vw9t2tCnThxrUMtS7eIpH1f5sSQrQZIR jjTJaI1qIvtncItwBZRtMljT8burj9dEI2dQpU3inal8Qnd9M6qxmLhay RCYWpJ0iwJyJN1UgUxN88A9+47wlMGo/XuiIUDKoBRYbgcze0YNX7v1vD 3kBl1P7QgCrlYXV6CSapAd94iAsAt+5eKlDyP1z1ugHmB8YU/9aratZqs g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="286746427" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="286746427" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:13:35 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118880" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118880" 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:30 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= Subject: [PATCH 22/44] serial: meson: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:29 +0300 Message-Id: <20221019091151.6692-23-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221019_021335_665368_844E7C06 X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Take advantage of the new uart_xmit_advance() helper. Signed-off-by: Ilpo Järvinen Acked-by: Neil Armstrong Acked-by: Martin Blumenstingl --- drivers/tty/serial/meson_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 056243c12836..74110017988a 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -162,8 +162,7 @@ static void meson_uart_start_tx(struct uart_port *port) ch = xmit->buf[xmit->tail]; writel(ch, port->membase + AML_UART_WFIFO); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); } if (!uart_circ_empty(xmit)) {