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: 4935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp226232wrs; Wed, 19 Oct 2022 02:45:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WD4h4GIpelrzUbGUbyekVRMgzXYWVfpAm9yAxn5eLoZB3xcTnd2oPF7727MI7VpR/KIq1 X-Received: by 2002:a17:90a:c388:b0:20a:db9d:8337 with SMTP id h8-20020a17090ac38800b0020adb9d8337mr8571982pjt.61.1666172720503; Wed, 19 Oct 2022 02:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172720; cv=none; d=google.com; s=arc-20160816; b=qKd3ASSIZXh7hD4jhTx5fUr8m8FBrc9QGO1mEoEr6jG7zIj8oWJHrirN4SuPcQqZZg B97m8+XwEiD9ZbTxSFTnpCDMerwYuBYY0i0Iz+yLkXRGfHXI3onUukZOLmfwAjvBYW/P p2v+34GUWUUQeUeGvvc2m8ASYZZQ/I1wNO177iommVd9LvFC3r55olsvv8/WNcF0qEzH yOU8IeMjx2v8QyqlS1hdCbrnCQll0MC/aaFSsta1Bw3hLfcd8xIOqJzRx/Uyuoc6GXC6 G70qliJthu4kzOJGj9RpsRRu3G7EQH5A5L8Gt4UM9yhYJBGZmAnJ+w4D/AiSONXLNQ9+ 8UFA== 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 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.05; Wed, 19 Oct 2022 02:45:20 -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_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-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747108726440235633?= X-GMAIL-MSGID: =?utf-8?q?1747108726440235633?= 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)) {