Message ID | 20221019091151.6692-41-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 y7csp227266wrs; Wed, 19 Oct 2022 02:48:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6r0wID4Mq5orQUoTMJ/CFKT8acGp0GavXr58VjGEkN+pxTFpMsDlHsQMYGIz6Er+OyAAE2 X-Received: by 2002:a17:90b:4a4d:b0:20d:4dc7:fa72 with SMTP id lb13-20020a17090b4a4d00b0020d4dc7fa72mr8480354pjb.86.1666172894260; Wed, 19 Oct 2022 02:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172894; cv=none; d=google.com; s=arc-20160816; b=SpxneR9lD5U3onUIB8halUcjuKILtPOhCvEp4fbfwY5WVt7JoupIAxcdilMJTEFQDn 4noWZ05gUiED+N0iNqqWyOXkzFrde6XzUOpXNGxgTpf7jGMAPLR+LYWhPsUPhG3FYnuN n/g2KxJoudT9ZH5+rqZRKKlSaxzM0l534a0HI2uBcQJUNgZIZ7zHSZ1V+f09FoeyI/MA Lal+EZ1ZPsRWG5SXPuuKGQALH14qOOq81QFyR0QOlTi9wEwX07Xnyxj2WBrMNVjFC7Bt 1k3XMoRYljThBJTuEjBoUw5DASwv4eqk3L0eAwB4P4p6W09IAzD6CjKITujtRvYdUv02 MdQg== 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=x2Lt2C3tXJmP0CzAZTsHw5eXx9wvxW6MevBgge8Hh54=; b=upzrmqMIxUd/32rcFkG1tFSCCXij8Z9YcfFGIuh7jLf9TVAblP0ETKEOS36ET2o5Zf mKRo+KK2YsjNhGrCuB1aY9YIooQLFcax68ZxVySiTMFlVwRhVoVX9+aRMkTiqSJ3ReTV LJ1mYn8gMhxAChcxc4Dlz/gQfaPRrhakau2d5vpskoJUM0XNLxHlIyBSf+vLoSemR3D8 6G4IDNAVZhLYwU7haznnU320KkIiVKjyPuFkQ0IysboWBL+3sSJ3ub2o6ibG9Ju8G+hA HdRnDLlkNDl0kLKxFxkGP/sUgcCD78SGlp2sgEG0vJggxC7NZqNvHJdWdnJTMwwkoy/M hrMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ELAHNHWy; 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 g9-20020a17090a9b8900b0020ac8a8f40dsi16125748pjp.81.2022.10.19.02.48.00; Wed, 19 Oct 2022 02:48:14 -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=ELAHNHWy; 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 S234625AbiJSJov (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234820AbiJSJl0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:41:26 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6593CD18DF; Wed, 19 Oct 2022 02:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666171089; x=1697707089; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=N8gWHCU+8cusGblZ4FloORP2XpvV18UIJycDBAa/ghg=; b=ELAHNHWyqjyO/2ovRCL09Vb0Tw189vGC7vbCiugvTuQklBpc+k1T9LFC 6PV92LvS6WD4ZbboW0Hogmg04cjHEeEG7URlRx399vJxYj3k3YhAHEQ9+ ELwNP0wDVZzFz2FerprmEEIIDTprNZhzlk/3DIFC1uSuuKFabPQ4MWyfC 7cZyCTNZo8jQPUmYWs+c/IH+ONd/eLFtH/gA8lFFticIOiK2cjRAr1Ult MsBq0TNwjGgiTjnhWSDnhCZbcz3p6To4ub/ab6sJZTw3qgq9KOayCf711 dyit0OsucXLTkmt17u12mkOa6eaWEjKXV7FRim/8rcgJ1UPA9dt8APxHc A==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="289672415" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="289672415" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:14:40 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119314" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119314" 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: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>, 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 40/44] serial: timbuart: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:47 +0300 Message-Id: <20221019091151.6692-41-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=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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?1747108908907715405?= X-GMAIL-MSGID: =?utf-8?q?1747108908907715405?= |
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/timbuart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index bb19ed012def..0859394a78cd 100644 --- a/drivers/tty/serial/timbuart.c +++ b/drivers/tty/serial/timbuart.c @@ -101,8 +101,7 @@ static void timbuart_tx_chars(struct uart_port *port) !uart_circ_empty(xmit)) { iowrite8(xmit->buf[xmit->tail], port->membase + TIMBUART_TXFIFO); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); } dev_dbg(port->dev,