From patchwork Wed Oct 19 09:11:21 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: 13011502 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 F2130C4332F for ; Wed, 19 Oct 2022 09:14:27 +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=tiPPEpYfVwInt654xctdTU764x6jerWDmSeE2BOk0Yo=; b=TScJW9k460mh// QstP03CypjYjZ01WGkkvTtzSmD8x4liMwRF14+m20gQP4lxvIju8boHLIFttTLp+60cM9NXFTDgoh H0FUbSxcVUfS/Yt6euchzClCZf8eXiH5xqELnWcEUGJ+QmIVSPM5Vf+TifC6FuIC0+tmaqvKDU2U9 IM7RAvgNJlhG1wyFpCe3LW/zOf5wc3BRB4ddA2KpR+QPUkOZsGz/iMl/89UwCQsSw+6i+9J7ViOlg //uLm5Fg/x31nmBSQLL1CLmF8gdw4ajj0PipAk8YxbxV0oTRjVz1RieQJVQ73BZcX4B7huu0CLawu guqfvrrgT51HF295j9Fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol58U-00HFuL-K7; Wed, 19 Oct 2022 09:13:14 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol58R-00HFsC-9R for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2022 09:13:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170791; x=1697706791; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6iBAyZ2TmBGOpfnjEhIUNYz8G3ZZgfaE+WLV4oh63c4=; b=PknBWR6H8hhAE3EA/d1BxyyRpFFMqjOqDxy9ZEBovtVbObN+9QiHniLQ jR8KfXI3GVJxyFt6mN4cBv7rs4bsXtQ9rB3sCIhbz5Xv/VfxSLS7d7gPk HB5A9GzT/rVveQUfs5cmdAXfj3wC0MqmfdylKXJncuYVJMR382I2dJFD7 bg8Q1dbxMZDqyB6gfpOzP7Us3oOgOGTXMVLZ+kBKZgvj747BvB5It946l oBxLWatgnBJxihFVG4X0ru6V0l2VcLjI8lq+2KuUVu/E1hW4rVvua2Nv4 Ot7e2Hi8jZhhGBjPiKOfZT8QjFKBtxlPN+S3OyL+s0su7T9aYiKgGxCoW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="293750761" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="293750761" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:13:07 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118733" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118733" 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:04 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Baruch Siach , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= Subject: [PATCH 14/44] serial: digicolor: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:21 +0300 Message-Id: <20221019091151.6692-15-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_021311_418079_DDE0D9DB X-CRM114-Status: GOOD ( 12.34 ) 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: Baruch Siach --- drivers/tty/serial/digicolor-usart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/digicolor-usart.c b/drivers/tty/serial/digicolor-usart.c index 0c0a62346f23..ed197705f7ee 100644 --- a/drivers/tty/serial/digicolor-usart.c +++ b/drivers/tty/serial/digicolor-usart.c @@ -202,8 +202,7 @@ static void digicolor_uart_tx(struct uart_port *port) while (!uart_circ_empty(xmit)) { writeb(xmit->buf[xmit->tail], port->membase + UA_EMI_REC); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); if (digicolor_uart_tx_full(port)) break;