Message ID | 20221019091151.6692-9-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 y7csp225910wrs; Wed, 19 Oct 2022 02:44:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46kSMdlNSPTLQfo9rlK01tzPWl8n37SQ0GWO+yJTTditZ4qvMxgwmaGbwsOKvzt/ozfw2r X-Received: by 2002:aa7:cc8a:0:b0:45b:f851:2943 with SMTP id p10-20020aa7cc8a000000b0045bf8512943mr6677679edt.103.1666172661410; Wed, 19 Oct 2022 02:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172661; cv=none; d=google.com; s=arc-20160816; b=Gv1jWT20aUTzDIvkn3cOwc13KvpojBkUoie3jrr7ypC48WKsl4aJNwrD6ooTa2PwCP GrK90MHqlSUQvPSGsgJhxMy9dDXZDUrW0h9D1PS9JNcBZKwZQt1lXLiTaQhVjw0+uB4j SJ5s1Cz0W7PctC4HUH2gHZaKBE3spJzq5DGA6UzxzFCTJ6e2u+RY3/gqRC+sSvAdwdzZ Pxgtb0QOQZbjrCcDVe0OU3esDmbgCu0P8yf7sr6K3r44KhwNSRC8nqikZZJ9iBYN0tBW 26QOxQsaxkWoINgrUZ9Gzv/j77YVYT8DeFoDUqpJwpsTGAf74fazbKeBbo7WbAJCIN5h q8ew== 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=7UK4itne0G7LivJvOQIx1WDOHESe1hNpfnCJFafGhRY=; b=ld0oJsHWuIC9t6UNcIc16kvp10i2BH/frZoP5qRYwK7MZU4sOPUJMtOidGEzJZGuoE i0GlcUr+83Cben8/was3O4rbzWH/75Kjwp7bQZ28ewup7ViQpiGnayO7NOHIFyfnuH+c eNpq+3zF56WutgWc0WBso1bwuTHWboale/ajiVrp54pEDahOoq/afNs7MCj2a8YTI4/g QQpIGaX0ijoVuogEqGWROTYqmSzHSTidJedFiWnoRffh3pF5q1IJan/5FsurgoSp750h fvSHo19Pb+Gl8aV/DpgI70S2rdyCyYOcGIauHmyE9TooRDOq3ED81JwK0pDSrVhO/gee GSlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CtM1G1Z2; 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 ds14-20020a170907724e00b0078c3197bf86si12928102ejc.533.2022.10.19.02.43.45; Wed, 19 Oct 2022 02:44: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=CtM1G1Z2; 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 S233972AbiJSJg7 (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233978AbiJSJaJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:30:09 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36965EB741; Wed, 19 Oct 2022 02:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170835; x=1697706835; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KzHpkJi/AhxX/r86weD1fWZDNb+69gyw0uBMHSqrM2Q=; b=CtM1G1Z2z4ab6UTLf7iQkERUd2s9lgcEzYyZlIbxaAc6l6OhGlsbAEgM tJlNK35Q4xliyjyCF3ji+XLFjoB6CIlh0pGH36DkThbODBjRAqbLlznz/ 2gXhD1g/nloFMgtBqq4NNj3bYJGPlAlsRyoPlpL0SBpIoVcunZiBNF5MW yZr95XaK3D0JDl0MLzLO7oLG13jQoNtp1zsu8ZRVdlFYCASP5P0jjz7sC 1aY3TyVY5j1XOgHCGLTKVrzM2swBI1wBgO9VvWcTNTmNkTlT+aIh+mvFg 8ZBKnLZqQs7HbpMAQyvjTe2IbLvdzYn0KF4Goor9LF4EJwZYllIyFV7xi w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332910875" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332910875" 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:47 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118587" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118587" 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:44 -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>, Russell King <linux@armlinux.org.uk>, 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 08/44] serial: pl011: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:15 +0300 Message-Id: <20221019091151.6692-9-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?1747108664780268002?= X-GMAIL-MSGID: =?utf-8?q?1747108664780268002?= |
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/amba-pl011.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 5cdced39eafd..6d8552506091 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -677,8 +677,7 @@ static int pl011_dma_tx_refill(struct uart_amba_port *uap) * Now we know that DMA will fire, so advance the ring buffer * with the stuff we just dispatched. */ - xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); - uap->port.icount.tx += count; + uart_xmit_advance(&uap->port, count); if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(&uap->port);