Message ID | 20221019091151.6692-26-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 y7csp226245wrs; Wed, 19 Oct 2022 02:45:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+kFXB6HWdiibydh5d4AjXfKTygFWq9uomE9rM2KlxFdfoptqDgbWMyD0nft+tHaJWZIts X-Received: by 2002:a63:c14:0:b0:456:d887:c83 with SMTP id b20-20020a630c14000000b00456d8870c83mr6584206pgl.53.1666172721677; 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=RNsVYtpBW93CV6Y8rQk1HvS9aO93l+/e934ZaUSGojqA0caLHezcFpXGetohJ28Is+ O6xwLj9qjOMz0mDwsLSmPMO5Wk0JEe4E+wGrKveGl+OytLxADuwfzDRufdaTkqMdkxj5 nIBf4/+0UOGJVQrOPQGFzoxPuOpse8rD33Mn1eC0RXL8xvil8J4BBNRas0ezzfBwEw7/ +J/iMJ8gWQN4s8p9RUxyt6D0g52W9cVnmCsPSmf5py0KPCmBBMFtIr7gJSi4zL4dWLTJ ZBcg7WiGuEn1TIk8p4PBts+yK30yAWYgaYiuuCME4IfKgtc4lR5jUSC9WAyeUllJHcB7 mL2A== 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=AsD39YzvPQwJYfTJp7gkk6sucB23n4F6ZTn6DYBtup0=; b=dnHMO0E7E+Qqcm8Yssg+OPdBNCGLaGzer5nV5zrNJ0Q8Jt0Jcy9CPMv6vtet1pS9QZ tISexhAgOb2BovzAdZ6Fky4IcYDgTxGcdjbHb4D1ZzkNGFQtF4gACcmXcu7acRD9JRWL fiLuKWglLHTlBGQVtgoe75VSFswHSKbF++anxGxoBjY7+2A7d0wF4H/R/5c9ZR2tnpJP CWeak7allxsiluXZnGO/P5qJTGbKnsJb/DDjP/LY/IGQIka3H3uY2/cMEgAzzdIp13nB DLWSX0ZTylKaUJUFamR1mTLKRE2ZwdI/k8QkmaAMyK4fiejDg6sq34gnvjIGUtlLhyjO i+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDiAhpzv; 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 k3-20020a170902ba8300b00176e4ac448esi534942pls.224.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=NDiAhpzv; 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 S234160AbiJSJjE (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbiJSJdQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:33:16 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75471A801; Wed, 19 Oct 2022 02:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170888; x=1697706888; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2b7lkKHY7NTq5kAOsL3D2ERH+kfAyQTXERCUZSQsanQ=; b=NDiAhpzvePme4KMFEP5y2PXZMt54m7joTrpcIBugStf1rrCNGm1BvVxV EmzEAXp4PF/xeRJGbOWfdMR9+SSNLVQ9ixmm91zhWgpz45JoL+H85n7JV 1wlrfB/bnUvWqAoV9qwC4ETKEnKnbZ6Y1bZNmgA4IZN8Rik0H96p8fcDb wgMketoBbG2AU3MHiGqqkYcWKSG2MQv1No6wuKYzpG8S991UZbZmWUuQe VR8C+waYgCMYOHsw1GgxFp3kkYlFIdAytGACH2kbZ6xEGtuq/FkwpvGIN 4KQUNRALlMIuNULhVqRJLcI6awbyh7rsWArJC2oal9KyHU7tGqcXcH44q w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911154" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911154" 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:45 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118989" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118989" 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:42 -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 25/44] serial: pic32: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:32 +0300 Message-Id: <20221019091151.6692-26-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?1747108728233888368?= X-GMAIL-MSGID: =?utf-8?q?1747108728233888368?= |
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/pic32_uart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c index 2beada66c824..52d026865a32 100644 --- a/drivers/tty/serial/pic32_uart.c +++ b/drivers/tty/serial/pic32_uart.c @@ -376,8 +376,7 @@ static void pic32_uart_do_tx(struct uart_port *port) pic32_uart_writel(sport, PIC32_UART_TX, c); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); if (uart_circ_empty(xmit)) break; if (--max_count == 0)