Message ID | 20221019091151.6692-25-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp226248wrs; Wed, 19 Oct 2022 02:45:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZaSIUF/SsIXrlyeqzgFpxR+LJsvwZE4gySc516f+FXeob/8Zm/dM5scllx6doXuF7xq/A X-Received: by 2002:a17:902:f806:b0:184:4a8c:f91f with SMTP id ix6-20020a170902f80600b001844a8cf91fmr7596985plb.45.1666172721795; Wed, 19 Oct 2022 02:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172721; cv=none; d=google.com; s=arc-20160816; b=AkW44tqBxOqi7mfUVQ3YRlGpPmtFtBTuB81rMd9MMrWiJxwzSrWleN89AsejG6kFu3 Lp+3TEsuuSeCOKX2ChdEbJzALc+55iJIE1Cgqc59QCnKlDRNOu9BbjYl3gaZbSUEiG5G DQUNhESekmcM38hPb4r8EgtEmKvedmO6KxmNShZ7FuVjiCJAmh8ZKfn2VWd/a/xPqcF0 dg1KaMDRl8h/2SKraWnJFv0EAOUsLGBcjj+iEV7H/f/8nZI+msb1blkbAApcaVu+2ym7 uWrvxRMyPgU1MEL5rdmrE7ZbNMGyuiDiJSXg9cj2I3Ozf5mceRP+S0iK2Sp403wWkSLR QTVQ== 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 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.05; Wed, 19 Oct 2022 02:45:21 -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 <rfc822;samuel.l.nystrom@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-serial@vger.kernel.org, Greg KH <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>, linux-kernel@vger.kernel.org Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747108728141227565?= X-GMAIL-MSGID: =?utf-8?q?1747108728141227565?= |
Series |
serial: Convert drivers to use uart_xmit_advance()
|
|
Commit Message
Ilpo Järvinen
Oct. 19, 2022, 9:11 a.m. UTC
Take advantage of the new uart_xmit_advance() helper.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
drivers/tty/serial/mvebu-uart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Wednesday 19 October 2022 12:11:31 Ilpo Järvinen wrote: > Take advantage of the new uart_xmit_advance() helper. > > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Pali Rohár <pali@kernel.org> > --- > 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 >
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));