Message ID | 20221019091151.6692-13-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 y7csp226329wrs; Wed, 19 Oct 2022 02:45:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nNJRIX/9av10FHyItpPpD1Ub65yoEJU4Jzwwv+vWpRmR0WQPQ4DQrw54lOSlsa5XVmLxf X-Received: by 2002:a17:907:7e9e:b0:78d:f3b0:fc78 with SMTP id qb30-20020a1709077e9e00b0078df3b0fc78mr6025769ejc.478.1666172734038; Wed, 19 Oct 2022 02:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172734; cv=none; d=google.com; s=arc-20160816; b=uEiTNMK2GRg/AaWW0MbRglTOzNnhQoIBmEZqDX6p7HmRhDRHH/ZLavwNMsWEwigDKv j2AXa2FxInp7UPMWHaV5FWqoFSlo88q9Yr/UR66iWX5s6TrQBuEaHxch1CeDgJvcMknm z29qJfULPb/uAsVINkg7jM/Jz6qe+dtprt3fso3A48KonjeZY140NUtuBR8Tsdjc24C6 smAnDPEV9Apw9RJLnbKIkmvg1qhOIR204RvDyTMzVb7wQ3KvA06m0rZrK2LzaB1iVK6E Ob1Th++15IDnKl4um1D6vUU3gWQM2k2ENjeFLDQnN1ByivSb7yKUy/Tcd/Iaam0Y/C8y fnhg== 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=m61sK2AKVM1FATBCfKnrtSkBCoxvjh1q7H3nQe4lY3k=; b=sGjUm31i40rRW1gySVH0olBmY3H2GnwliuJaB5vT/QBmV4cxxpbf4RSMPWC1767hvy Oh1EB6LqM6cywtAVPD3OiGvqfXZwmh5axT0gOHy2qYoab/Uu5J4Gkcsby2dLwdOZ+rIl RXItWfvnHQQpCFXZtvrXG+MtgjCtgWM4Vu6pNXo1pDOKPZAcz8qicpMTgzycMh8Gi7KI xVL8S4V0NlAH2NnrX3zobq3z9TwO7QjF+UMTlsnppXCxLuUqEcMb8XJ4H2nuhJDfvs36 fcr+2OXt9UI7jMw22gQMM9TBliBER/oG8MRXrvkanue9vm7hiYChelGnqjX0HDNc9V9b tUGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RcfQwHG+; 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 b23-20020aa7cd17000000b00457c6a2a3f8si12886110edw.68.2022.10.19.02.45.04; Wed, 19 Oct 2022 02:45:34 -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=RcfQwHG+; 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 S231807AbiJSJhf (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:37:35 -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 S234075AbiJSJae (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:30:34 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 177C690823; Wed, 19 Oct 2022 02:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170846; x=1697706846; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eMX93eH2WJp+28L/XNZpc2+/7jkBXPYnsGkOfw2cMDA=; b=RcfQwHG+AW9RfDHWTs4dokGYsiSiedEmdqqgFcZA00nV8BJugz0/Yz9y 5NIYPyUIO0KrtTevOa4YnKyimK8LUcB8fy6WsESI1AgR5q+ysvScA8tQY G6p6J6y9xLeQW//4JqnhNFvIuQ85gdBzVvCs3yKs/1udmbRfooYiZuWzF UrrHuz0XY2WetvaQSx6bBPLbhX5tWdhtmoC5o3koA3z+8R8gtw1IGmWrY GyiRrEfG+akoAf7b/YEIhjFetpCWr4kWPgPiV7yh4/mi6ra/JwZOtr8/R qJo3YHpM+OdLdeZci3YIjmMwky8HKo0rTXYcekvwHuAvzMRH4YFp56YZd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332910923" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332910923" 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:01 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118685" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118685" 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:58 -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>, Alexander Shiyan <shc_work@mail.ru>, linux-arm-kernel@lists.infradead.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 12/44] serial: clps711x: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:19 +0300 Message-Id: <20221019091151.6692-13-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?1747108741174789698?= X-GMAIL-MSGID: =?utf-8?q?1747108741174789698?= |
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/clps711x.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c index 404b43a5ae33..e190dce58f46 100644 --- a/drivers/tty/serial/clps711x.c +++ b/drivers/tty/serial/clps711x.c @@ -166,8 +166,7 @@ static irqreturn_t uart_clps711x_int_tx(int irq, void *dev_id) u32 sysflg = 0; writew(xmit->buf[xmit->tail], port->membase + UARTDR_OFFSET); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); if (sysflg & SYSFLG_UTXFF)