Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp317665qtb; Wed, 19 Oct 2022 02:46:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60GmZomXFCZK0VptCqXZUQIiWCfnSIgomvp7TRcu5iN4O/h+VNvK0HjFUqk9YmNXKJA/Hj X-Received: by 2002:a17:903:2cd:b0:182:f36b:31ef with SMTP id s13-20020a17090302cd00b00182f36b31efmr7454800plk.171.1666172764801; Wed, 19 Oct 2022 02:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172764; cv=none; d=google.com; s=arc-20160816; b=lj4S/ElXbKUBbZCb0ULkRSXLBGk/zSpunKkOh1OL5g16WBP6KEU6Z2xtwsAegHAZ5G pPVU5Mgh9Bkhbbvzwh2pt6/1GufqyJSXbtsImZ2+OBCA7N8dH1FVa3sA4uqhG24RAHZD Ea9vvRImz+NGLwcA4asNltg/mndEK+hZUPFg/3CyjXDDPEAEdZhpL/gJGXeZMyAn9bB1 QxxhisuxbHLg+XLTRIfM45SXJ1jzysnY6SZ/WGLFA2b79G1DU0KRcQEsuDElCRyJM7UI tCmdIsZwoQyh7AOGic/K9nBLwP6gjuQo0sUI1LdNPiP7YsKxr15AEClrGM+svaK+SEwo kq0g== 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=H3lBmR5xVlXPRfrJWSfzz5OfEznVMrALAcL4hlSkyR8=; b=efhUz2KEJ3zG/Va6CJGzWD3IRIrcIaoF102eCT+vk7j2Quy0caOAd+dJXamJvEXEuE XRZ8Vymks7vxiDCZlC1ETQvQB8lnbCdV/+zCm++h9zVlZQhAAYZ40t8PFo1WXoLjdZ5r 8mW29tvQ40kyiZwoibliZdw3dUd/tjJds55gxHMuT5qJ6oRlTUEXyF7PYbBR/BsmWoZK tn1UVM6tQ191DABtb2zMiU5npeTtSVRy1afYVss52kllY73FZhTpBaaBgmBoaNINxziz ERl6EiWsqASX5VRyleEuEMu2VjGcFbV4ijBGIRQpGc1W6i/YeKn7b7SnhRea5inKzxni BDMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EwsvAC7k; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a17090ad80d00b0021019c01ab1si437702pjv.76.2022.10.19.02.45.40; Wed, 19 Oct 2022 02:46:04 -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=EwsvAC7k; 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 S234139AbiJSJi6 (ORCPT + 99 others); Wed, 19 Oct 2022 05:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbiJSJdA (ORCPT ); Wed, 19 Oct 2022 05:33:00 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2E181A22A; 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=1666170887; x=1697706887; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JjB9NhwkUeToSoqh6CKP9O4pEka6rJgc5OpPDVaN7k=; b=EwsvAC7k92QXR8XjYoIcBb2sg0UMf2Doe9Vq4T0n0Up5xTphnFvQOfpe SMmi8IK1qQjU5nzu+o+2PCa8JRy08PKrGnUSCeSIjFl9hAe0pVeB4UOzx /EmFIuXy8vyumMGP31ozyWWfgCjLzHOllGlq8G+yoNVYnoWFh8kibzWDE ua/vrIXarWZTf7VEuCAw7tMzytUc47eP2a2Y/fQRYtRn+vHgI9FwRMyBW GoQSjjWIU77qMv9NuV4r7V9z7sxIb0tCsVNyrd2CxEzV5kddONTZJMi0I /5xA8rhliNHeh8Das/f280IGQkkrotk0JBnvTqserbqb9/fsFzyv/etnG Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911127" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911127" 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:42 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118961" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118961" 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:39 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , =?UTF-8?q?Pali=20Roh=C3=A1r?= , linux-kernel@vger.kernel.org Cc: Andy Shevchenko , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 24/44] serial: mvebu-uart: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:31 +0300 Message-Id: <20221019091151.6692-25-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: X-Mailing-List: linux-kernel@vger.kernel.org Take advantage of the new uart_xmit_advance() helper. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/mvebu-uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c index ba16e1da6bd3..ba9a6206daae 100644 --- a/drivers/tty/serial/mvebu-uart.c +++ b/drivers/tty/serial/mvebu-uart.c @@ -223,8 +223,7 @@ static void mvebu_uart_start_tx(struct uart_port *port) if (IS_EXTENDED(port) && !uart_circ_empty(xmit)) { writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); } ctl = readl(port->membase + UART_INTR(port)); -- 2.30.2