From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ADA0C43217 for ; Wed, 19 Oct 2022 09:35:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbiJSJfE (ORCPT ); Wed, 19 Oct 2022 05:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233812AbiJSJcr (ORCPT ); Wed, 19 Oct 2022 05:32:47 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7439C1900A; Wed, 19 Oct 2022 02:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170886; x=1697706886; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=F5OoKeiZlb0GHRmkwQOoMqMFYKZ9krELi+lO3n3U0sY=; b=dzC6e3Er+s3afAh6HQwcvZdwGzcYNWFVMTCnuR8mOIjNQulINmgcNLSt zAO60PPfrDqeIXQ4ssBkQ5VMjeWVdn1a75oyJXjREJbaBHgZxhWDsf06i N/beIYGQbxCq5gn3cFZIweRRsjpBStbjWTDuq1u1kn++ea3b8DSFoWPxe OTpZt8NpDoy5XT5SIJaLDxIEOjnzNglEqD83r85g6jG0ZI3Dl3wpzjYTi aIGseW0gysxs86ngoAVXIC7VIAMwQxZhW8eiWX4Ad1V63/cz2QIiugWBe Gl6sQl90eCmykDj46w2jqLqNm+XUUMN9vPx8FdtLRfIzlxMC9uZWCNkMc w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911098" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911098" 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:38 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118922" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118922" 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:35 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Taichi Sugaya , Takao Orito , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 23/44] serial: milbeaut_usio: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:30 +0300 Message-Id: <20221019091151.6692-24-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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Take advantage of the new uart_xmit_advance() helper. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/milbeaut_usio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/milbeaut_usio.c b/drivers/tty/serial/milbeaut_usio.c index c15e0d84dc7e..44988a2941b8 100644 --- a/drivers/tty/serial/milbeaut_usio.c +++ b/drivers/tty/serial/milbeaut_usio.c @@ -98,8 +98,7 @@ static void mlb_usio_tx_chars(struct uart_port *port) do { writew(xmit->buf[xmit->tail], port->membase + MLB_USIO_REG_DR); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); if (uart_circ_empty(xmit)) break; -- 2.30.2