Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp317664qtb; Wed, 19 Oct 2022 02:46:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6OWLM/uGkM+MJSRMUAqmFBMdvVqa/VDH3SrBeDqtFvQAsWl6Qyd1oB9xmvzPubQlQNsHHn X-Received: by 2002:a17:90a:c388:b0:20a:db9d:8337 with SMTP id h8-20020a17090ac38800b0020adb9d8337mr8574832pjt.61.1666172764710; 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=Tblb+g1x/DedD5DjxmcTIS12cI+jlv/dWmdIT5FtA7hvYl0rXazTmNtBdGcCzdyc1V ricUxnBylGFHmRsrmUdIwX++pDaaFCJm7+IwdGDCclXFpJJcJbmsnfwS+26HPDhgR1oM o7X8nU8PRl4gSco/3+IoGyGKUtSVWFDgBOxtfgyv3+kzTqIHV8ew+KDK7O4PpS/xTi4V 9d9erDoPhD6D5fcaeuTr0+iduM4TPhk/EE8BuJFLzSyNUh4An5KqeryDOWsedn/RbMZF LuOruRJMW7xWeRkiO/W8ktGapBE+PmgWLGLOsp84BzWm8ojpVbAaGMWmN6VVvQ+yxYBj Cshg== 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=dbDXz+xL7v0tWH/lezpTCK3BGxvdxzhL5jq5APlRY7Y=; b=nYP/F+LOJIDjt0YzCMkcnhSVw2yQ6pOZt84WKE1gLhefusAUFWSZT6jX6o/fLak3DS xmfTDt3xdm+vwAnYsC9ConrEnRUsf/3UpEdCleYrh1JF92YsVFz5l4yVemJgtDS18+hN isqdASQd/H8xUkB8vDy4P7Yldx8vhPVNz0ioTrox/SBPHzsy2ur1xaxFgUrC4tLZq8uX R8ZKYm5K63T+zRLArLw3eGgIKP6AHwxlkngxdr63kaQuX89k+DvkYemIOtblWG1/zzsw uuADPe3hbHJPnSwmEjKlQsnXNWaJ9TPnjrmxn8bF4i7sWFAjt4g3SlEL0v33kfQJlXMG Hcbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e3gIam+X; 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 ja21-20020a170902efd500b001751a9de12esi15748032plb.288.2022.10.19.02.45.39; 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=e3gIam+X; 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 S234123AbiJSJiw (ORCPT + 99 others); Wed, 19 Oct 2022 05:38:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiJSJcy (ORCPT ); Wed, 19 Oct 2022 05:32:54 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6F317E25; Wed, 19 Oct 2022 02:14:45 -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=I2sO96QvGbKZASEZajyqgl5elACacZqC44Dvl0bF594=; b=e3gIam+XlgVph4eDQ6z9ubdV+2WM18A2wvIQXXEXAmPFxBxkK/XzBYMc tqVSOz6eaiYTNKq/GPQC5GoSa6kuAZ7PVhrOPSbW8gU9QirPd7JmxLiGD 3Cew/F4WCvg7olezTs9ktzdLB5+KaFDxdCgJMz56vBPhxCciRC6FeOyFP R05m6x5ijrCzQ1WNJ6Xj5FqmjqQ2fp0r9IsqyFlMcYN3AklpDZpUIJCYr zBvyUMgdxzI5i7qKqxYLfTRvocxqYm83KY+uzS11HAAG/MvOE+2QqkIH/ ivyfn3VlrI6I3q8FEHCGi6xlEsqLUOa5rrreAeuwdUru5vax841rJPIRp g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911073" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911073" 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: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=20J=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=20J=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 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/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)) { -- 2.30.2