Message ID | 20221019091151.6692-43-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 y7csp266499wrs; Wed, 19 Oct 2022 04:24:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TeOvnxfafNyBoV6Lm0wBZPj4MbPEQP6gVGCjX0Plj71Kv8FY7b4oP42v0K3BLhe1CKMGk X-Received: by 2002:aa7:8d57:0:b0:562:b63c:c2ba with SMTP id s23-20020aa78d57000000b00562b63cc2bamr8169482pfe.29.1666178694328; Wed, 19 Oct 2022 04:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178694; cv=none; d=google.com; s=arc-20160816; b=krQJSzrLxGNv1xQOtT6Z8LbmgDZ8QMuNHoMQFATwTZdzDQkGB3nLSRWdygRGOCsZzZ 1eC3GKZ3wXIcCLX6XVocqGWeed9FgexaAtjFYvHQ9q7mS2tlcD3gd1ZMlqr8eEhIhV9o COukSnf/ojnQPtbBIPHvbK0Tmz9eKutclRN7OMARF2lL3ciHY2WypFAQL2nB4w6MRVht TrWAV8ekXP5srw7BBXTYi4Erju7rkKIj8oCMKt1QQAnruh2Ec1Uxx7lE1XFjmrnTn8+P s9RZ3V6uo+KBuv1nfIxK3EL6F2SfuTPvYrl0doa55C0oRf2f1G1+9hd/qrz1hsFLuhyz y/jg== 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=AiPDD8dBJkGTLF4p2S6ruzXFPpWJv0+oIR1u/zKC6fQ=; b=k+n67itpWPklBGB5xyp8W5uMHRJ0drKLcNMKmVlVBXx/Mg1gMWTJMwMfR8yKN27ZMX UpeG4A1GPRJziK92nbgeM91MVGz4uFp0kKtPG0oGyzWXoMeXwq4qcDG/b/qYhzGs817A hbszmIUseiRpEBLzBDsbLr0iH9nv8d7DEy1R0HxfO4DGjgQr/qZ12yovqIvD28HL8Mvw Z2U79WY5mNe8q3Uo2N5ia2OOPFdT/ZzmlV12Fr4238PPN1ZxjshjQZ102qVvtXN8Pr0N 09wJ2y5J15FynheWN0vr7OXcNtxKvbAYfnRaFQmQYVyvam4m27HkMfMk3tsOZ/EVcsew tOMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="W/Of7CV0"; 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 oj15-20020a17090b4d8f00b001f335a72172si27630667pjb.62.2022.10.19.04.24.41; Wed, 19 Oct 2022 04:24:54 -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="W/Of7CV0"; 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 S231235AbiJSLQi (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 07:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232335AbiJSLN6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 07:13:58 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292BA185400; Wed, 19 Oct 2022 03:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666176074; x=1697712074; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=B13YA0WwjAgxh8IASNKkr+KfcFMYjEluxjSu647UO1s=; b=W/Of7CV0Bo4HdMgm6UHLg/CiwngaaSiTMkv/x5BZJCD7KiGzcfLWXx9U 2L7ZYVoKuapPo/oyy6O9qr9Dil2LDGT5ux5IinXTkk6VM7ESf8qZrPJkt PqqbOrTMXTLWD6ffK2PIpqNMfQCdD3LvNnDw2Xmba9Vqxw/ZH4BFhLguU GoTsO1wA/+WJupchaQa6KNFdAuOJWHoethMtf5couJdhCCwooNcNdY4Qt 88mFKDPSq3paF/IKNaawYr4KLMt1QQsD9avWBsuNgpMu1zAi+C0c1VrYH QeOHksqBhhDE12KhIVpgKCQJ6AzPDqX2Of8Pi4bdBPdJzEdiF4CqV1N1j g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="370573956" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="370573956" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:14:47 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119348" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119348" 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: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>, Timur Tabi <timur@kernel.org>, linuxppc-dev@lists.ozlabs.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 42/44] serial: ucc_uart: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:49 +0300 Message-Id: <20221019091151.6692-43-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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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?1747114990765416299?= X-GMAIL-MSGID: =?utf-8?q?1747114990765416299?= |
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/ucc_uart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c index 82cf14dd3d43..b09b6496ee3e 100644 --- a/drivers/tty/serial/ucc_uart.c +++ b/drivers/tty/serial/ucc_uart.c @@ -372,8 +372,7 @@ static int qe_uart_tx_pump(struct uart_qe_port *qe_port) p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port); while (count < qe_port->tx_fifosize) { *p++ = xmit->buf[xmit->tail]; - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); count++; if (xmit->head == xmit->tail) break;