Message ID | 20221019091151.6692-31-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 y7csp226242wrs; Wed, 19 Oct 2022 02:45:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6TFDmq6mMQXdJgqhKr1tvx5lBHhxRQ2IpbPwnJ5sqbfWnbgz3m0SZzZqR6n33wKPtlIezY X-Received: by 2002:a17:903:24e:b0:179:b755:b82f with SMTP id j14-20020a170903024e00b00179b755b82fmr7314086plh.34.1666172721544; 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=nCJRTF5qQdvzAnfN2lMFtOzRwIpv6KBgTre43sE0FULY0WouPU5rss6A2ghdBlPODs isGw9VKbXG80noCv/yJkTHJW59KnS7HX8MN6BtLh1qz66En/COgBQNswoTtUXMSD/scn 4BRReYP7Vf+wjvQgqT6Z/bQF8ZoDbpdyCtMadV4JbQQ5t3soeWZjJwXDHs2R7lw4iOPY Y6GPqlYU/B8tIO3KpmDsLfECgkSWEsMi9ccB/BNFhcFzXV+h9qqtJW1PmEqH3p2WLeCm mFRN8gim1B7hj2KAo0OGKLz/wnvexqlI0+PnBHnJkgxlUcfAWmAvq1M5Qaa82d0iObXH AplA== 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=xJbDh+jFvpsX3CjxfeUVN1anZwl8AsyWx42QE6zve+I=; b=lunaedI4gDYWiit/pR63V16anzAduB8iJ0eVkFqRENOFr5caKLXsrl3Q7zuPoxnA5d S/aG1uPrPListBVlKrvGGG9TtdTd1oOKqFxkZN4/BMa3u62yk+BDmL5kRrIdcRrO5Kxg KKehBY0S6LQtyAO3QVH62yXXVR+tEK08Dfl6FeIEvOLi5HPbB5RHR9ypNq2w216JJwwo yp9lCfQ7ESF3uwg9yluX0ZzOdpIKbtVljttry17aoJGUWTvUBNBAAvkan14ifqAJBUP7 A5t97AM0MVS8OiM7sbK/FrIAdbTf5nbFCmr+sMLNvIxnuG1KKflFcJwiuCGFFYbOmjHm REqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D132zUJU; 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 w9-20020a631609000000b00458ce4748f6si18027587pgl.409.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=D132zUJU; 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 S234228AbiJSJjX (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233973AbiJSJeP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:34:15 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C1136DE5; Wed, 19 Oct 2022 02:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170906; x=1697706906; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Dg1euLJph2oJfBTgbX0VltmL86AsRoveKq8Ume+G14g=; b=D132zUJUTagBUWr4BniZKMJ6ThSSnew8/XnHpH/zUJ7ellVOMCFd8FDB r+BFXFITKBNVIRVqdlXRRxwIP1LxlZqzoqztpwTBg335O4T8W7/P6SfjJ 7bvP9HF3w+K6LMBBU0EfdzVgUczHEN1PqoC4Ie0058zz/GTXdjCPCVS9Y kkD5WGHQ0hq0rEADIOB2/oGI6lKfFMun7xQiWrzZ6q3S9wSFAq3tgn397 Yvw3cPXDAkEgQNqKaWsGN+EK1zaTqpiHW42zOysH7rO0cY+lvCrwKfyrN hpN9CUBWEeKtCIsHfcj5cPtVmQjfrnqsE3TxfjQhrMgV3/JQsmZKQo5VK Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911237" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911237" 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:14:02 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119142" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119142" 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:14:00 -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>, 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 30/44] serial: sccnxp: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:37 +0300 Message-Id: <20221019091151.6692-31-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?1747108727382083234?= X-GMAIL-MSGID: =?utf-8?q?1747108727382083234?= |
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/sccnxp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index dd98509f52e5..7df687822634 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c @@ -468,8 +468,7 @@ static void sccnxp_handle_tx(struct uart_port *port) break; sccnxp_port_write(port, SCCNXP_THR_REG, xmit->buf[xmit->tail]); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); } if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)