Message ID | 20221019091151.6692-7-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 y7csp226465wrs; Wed, 19 Oct 2022 02:45:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48LhZD78lFTiBC1IYYTXQmvtnz1GRUIlrCqC46zX5XFUzpx1JKX1IDpo0oKnEqaNcPCVua X-Received: by 2002:a17:902:ab8f:b0:185:46d3:8c96 with SMTP id f15-20020a170902ab8f00b0018546d38c96mr7777851plr.136.1666172759570; Wed, 19 Oct 2022 02:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172759; cv=none; d=google.com; s=arc-20160816; b=jZ83h6iLvwD4mHlIlQ5H3qcQ5qP6rehWncrt7KcUf84JTqa73VL3MdApsigd+vhzeq PKJLgOR62CvWiLFDk5uD40w0NDpAlK9Uo/5tdE3JeJjfmHKS+jKRZxs69kv40yrAk3MJ Va5TvspqA4Bv1nPbGbULHH4Ga9kL5JqKhOUEfWEZM0VngQLquLsTgkcWLF/+eAUucR1p 6U4hxQZEIXXWcb9h6OjHoaDS/G10gUG51mjWR9dng9Q+8VSKbbQBLfCm6Jcv6Q6Nb6od wzFXUP9T5fF7A3CkdnEaD7sStWYs+wiYd7v0OOSgJJZn0qveeKHf8vZuwnnXsxSBeJiT C4CQ== 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=dRhtcyhdG+W/KHA05eFdaUfNPFVgArnWoyNFOFT2Rq8=; b=PvYT+LgbyupdXXvzn8XjlI4UMw2kaM6Ika9E3UImTXYOU0xmcHaBYlKbl9MJunPNu/ Xxvr0/wyG76d6/ydy9pCSdb2mRqVePJGnuyXWQJ+GB12RIjfUMgIUWRuzS2VsDq1jaYe nLcR8AXAcoWcfOgdV5Ip4QvBVdfqo5uwLwn5ubeQQ+Ox69vnIGQw0Klr38sm1F0bAedN qhqH2Kz+9cMFWlsMqFFY1RawDHYO5Us/LIMagb/vKkN2PhSrJj9dvbbAoO4OM0igMDCm kQYSn8sIKX85Ho20qRnxfbDTa2dy1wxNim1BtfhTKed1PtcrqMxHtkYZ8hQ1sgUmHQXa s7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WwPB56k5; 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 e12-20020a17090301cc00b00176a16ca9b1si19619650plh.529.2022.10.19.02.45.35; Wed, 19 Oct 2022 02:45:59 -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=WwPB56k5; 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 S233875AbiJSJgD (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233880AbiJSJ3o (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:29:44 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 299F1EC539; Wed, 19 Oct 2022 02:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170802; x=1697706802; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=V8ZLFZd/8WGgIcMM/uBvB3JOVq86tCE6Qkxiiz51C8Q=; b=WwPB56k5+VwK/4kgsp4bSKKoY7VgTul1+KXPRo6JsYtnndnS6GuWSC7E YiPcyEV+/vTF9eMfxnYVQ/a/lpuj51DLmLxmadmIBd5Pok1PPS3m3I5DC PoGVCy6cNDioXVVY/lvFk3S6QGdFy9jNn87G1w8Nufuz09FUhdp7mq1GX t2jNI/vqOcOz23t5ji/pxw9aW+8N8c8pnbNp6jgYUCHei0xgLaYNHtM6w 3JC6rbg3zOqo1fEnCgEW1yOmcq6LKJlpGgSP/vGcUIN9oqrGL/qw1L55u Q1DKBOVtrG/PR0UFVW++TXFSLnMt4lvtW2iUZx5lKqKcR4zhd/YVEYKzt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332910845" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332910845" 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:41 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118549" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118549" 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:37 -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>, Al Cooper <alcooperx@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, 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 06/44] serial: 8250_bcm7271: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:13 +0300 Message-Id: <20221019091151.6692-7-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?1747108767638760547?= X-GMAIL-MSGID: =?utf-8?q?1747108767638760547?= |
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/8250/8250_bcm7271.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_bcm7271.c b/drivers/tty/serial/8250/8250_bcm7271.c index fa8ccf204d86..062177b64d21 100644 --- a/drivers/tty/serial/8250/8250_bcm7271.c +++ b/drivers/tty/serial/8250/8250_bcm7271.c @@ -425,9 +425,7 @@ static int brcmuart_tx_dma(struct uart_8250_port *p) priv->dma.tx_err = 0; memcpy(priv->tx_buf, &xmit->buf[xmit->tail], tx_size); - xmit->tail += tx_size; - xmit->tail &= UART_XMIT_SIZE - 1; - p->port.icount.tx += tx_size; + uart_xmit_advance(&p->port, tx_size); if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(&p->port);