Message ID | 20221019091151.6692-11-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 y7csp225834wrs; Wed, 19 Oct 2022 02:44:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4v8f4GYaOMit6tZBOnmMCCTVnbVQacnF4jK0Ylj5/wjP9WzoLZOtsThrqi2mlATZTgRmLZ X-Received: by 2002:a05:6a00:10cf:b0:563:34ce:412f with SMTP id d15-20020a056a0010cf00b0056334ce412fmr7841470pfu.67.1666172649275; Wed, 19 Oct 2022 02:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172649; cv=none; d=google.com; s=arc-20160816; b=ARAu+6EzHO8neyVwXD6Ox0QTjfUoELKHNwyirtbonONGv/jGUeeN+jP8Ru+abkLa6I ME6pSk8p8hDB9jhkmK5xAgT2i0tJIqNs/uFhMGlM+rVmy0rz8QLG5g0Y0djg6dpQ84TK BoLAGH4YC3cHEAOlSg4lCe4RFkGweJCgmWQJEqw+WNB/xGesrpiU/jbsjnbnMlHQrV2o yoNg+1tPQ+0+Yjp/lLZmWpRirkGSYG8sk7REt6t8jvMG+MeN5AFqNtCad57L2ejzK7lU CFgXB9mY7f1WBGaoLcRp2er+FSFu8w75SktxSy5Wwxb9hREHhH2gyRK+iEPUs2aulujm X2ig== 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=PlP311o+KdC+cWLEJdF63qqsgVukJbxgm2m+fkNEaEg=; b=Lh+5d5djjUD/J/pfm6wcdG1ArVBlNzBGBvSIWTPUzzJv6yhv7P5n3V4lfnxWBLbhP8 eTt4ygI0JeltuV+A7RHk9iY7sYGeACdwzMZmKX9uZi0Yz6SmBiOzxm+4e3OMrW5tOFB+ ScypzSaEcNhVH7fsr3xBpoNpVN4rb/dmE3BHOSRKZvz/heK9NurwR01M5pXvtFf76bvW vfbBTJTAuIczYGteUF0DK0Bo7NwdAZ/m+eij/guH92obEF2RnZxng6BZTYFEwESonN3N EANgD5ZQh1KOk9ttIOnCi1yNJ3//51t83XCIcXSBqSEdvcaCnamhOLUbEwHaKrQOP4dx LPFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PDqfAcYd; 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 c6-20020a170902d48600b0018486fabaf9si20730531plg.346.2022.10.19.02.43.52; Wed, 19 Oct 2022 02:44:09 -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=PDqfAcYd; 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 S234013AbiJSJhY (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234051AbiJSJa2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:30:28 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05DBBC18; Wed, 19 Oct 2022 02:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170843; x=1697706843; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xOgNWaYaiSGZT+djjVEy4FQy1WDnM3aevb7RyoGHh1o=; b=PDqfAcYdB7VbtKnvnY220k6sggkJmvXj9IksoWVdMjib3kzSdNVXZbmc hat5ie/QpS7bh+33Z6alBfTxpsJIubhH/YJdJ4bdmGDftz2nSRJm+9c2c 0w8Wq0/Gwct2d4nz4AwpBjbKElZ+pJ+qfHWrMY6Khe63b2RKpTPqGTLeg AyHKwIIUnIeimC/E2gcL7Q2ECY9Ni8QbJfQ13tyqs73Ue/Puigmo7omrW JtedsrMYGMwjZgXEKFT+UA7NHiuafSrV6Y4WwBB68gPd2YnAiLU3nfqit zkm96n1YkFZzM18SpWpEiZwMxg2/Gt3kLJws9+toeZ7ydcbm/Z/cdgEun Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332910891" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332910891" 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:12:53 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118628" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118628" 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:12:50 -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>, Vineet Gupta <vgupta@kernel.org>, linux-snps-arc@lists.infradead.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 10/44] serial: arc: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:17 +0300 Message-Id: <20221019091151.6692-11-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?1747108651604536637?= X-GMAIL-MSGID: =?utf-8?q?1747108651604536637?= |
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/arc_uart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c index 2a65ea2660e1..748e8b1cf4f7 100644 --- a/drivers/tty/serial/arc_uart.c +++ b/drivers/tty/serial/arc_uart.c @@ -166,8 +166,7 @@ static void arc_serial_tx_chars(struct uart_port *port) sent = 1; } else if (!uart_circ_empty(xmit)) { ch = xmit->buf[xmit->tail]; - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); while (!(UART_GET_STATUS(port) & TXEMPTY)) cpu_relax(); UART_SET_DATA(port, ch);