Message ID | 20221019091151.6692-14-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 y7csp227141wrs; Wed, 19 Oct 2022 02:47:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kv+jXaciHWcY/1q5/Bd2uk56MGJGUuJZpSnTL+5caOlh8qPd3f78B/h37P+UQjX11LHXT X-Received: by 2002:a63:6c01:0:b0:429:ea6e:486d with SMTP id h1-20020a636c01000000b00429ea6e486dmr6326543pgc.247.1666172875491; Wed, 19 Oct 2022 02:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172875; cv=none; d=google.com; s=arc-20160816; b=xfh8ajopZThM+3SSfW5ZXCYcr2XcsPJChfD1cSHqFQnWkafYJVD+bFYTpNKf5y1o1u EbVZK4Owak5fHx7TcOKVlUVex571Kb9LYgD+0GhPlx1oAOsSM5PcrPzZFXm9HghDB5er H4bZTBNdnoH8R8++GycqJ6J311jpWFwiNwjRDpFfEB/jgS8gBbCdaVYpHwoBvTadsVKE 3csOEh+R92lqumpxhg6Z58G2nDIeFsCBEeVndKCWCS1kcv3TzZ7KqcMMCopfnduktDkI sryi+VgGRy4lFDpXsTGavrbta/k1w4YhC5f3FFVbRk8AskU/hOxojGDxyoUPzbuIuOb6 WCeA== 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=QRhf+dZ9I4CM32ccgO2YkAhEuWWIYHFZUa5aleKeUR0=; b=fdMiEo64Z6jBnJSjg0hxXy5Wl//4Lzy/EGWOp0/ZiBL2kGLMlJqewPYOdRoK1XWprl J96Izt0SQJFdDrGNpUL8j7BMxRMwWHhehRHxAr1w1Z52PPS0dtr98v6D0Gu8wqyv9B9t ZGebvgaLOkdmpVKa5v+H39QwM6A/kLdSE1t2BhUI3P49T8oK70azycgbMdOxiVqO4cOu H8lER9o8Pcn1/OqYOq848RTNEOF7BYxjTqHdOvswyPooGPdXIwBOzlnJZtF9VjU5YfBA QpTPHWOQM6IXBRv7nwAQT4eLDSgCfxT8tHr+yjhUBpmin+nd0z5XDyzYoKgFVjxjM2HX PBKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nTExoDSW; 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 b3-20020a170903228300b001732b4e99c4si21090217plh.377.2022.10.19.02.47.40; Wed, 19 Oct 2022 02:47:55 -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=nTExoDSW; 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 S234040AbiJSJhm (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234117AbiJSJao (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:30:44 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83EC7A4867; Wed, 19 Oct 2022 02:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170855; x=1697706855; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cX8zPBsZxBjrMLtp4Sd5J6asiCWO7iBUnX8BtEDvIS0=; b=nTExoDSWYMPSnGw+TN+1hO7B5IKTZ/SfVrTxZcmfco2jvVLGkHc5bsHp iFiiFGn7jh6ot5tQ5HV92/aDTF4Pw6nbknfSDRY5IGjYjBxrCqh0yDY58 1wmGYmP7744BI6Lkwp1Qsc6VXiOUDEdHmYecMsNHbZZk0f1e3GX/BLeQR nk1fdOO3KaHd1br0zl5Ry2ib+hbQuBAA0AkJPXncjc4QvBXRE3AMmn1LA lgIq8tcb91H0qzrtgDALkrhQn0Id7b8iFsc+uNQwU29hPpdQfUL1GWYRj CW19TDjR4QrMvR/JNtSrAy+YDdLVERee7Uf8Bt6JGi1pU7wvfKCnA8DuT Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332910928" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332910928" 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:04 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734118710" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734118710" 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:13:01 -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 13/44] serial: cpm_uart: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:20 +0300 Message-Id: <20221019091151.6692-14-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?1747108888917433499?= X-GMAIL-MSGID: =?utf-8?q?1747108888917433499?= |
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/cpm_uart/cpm_uart_core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c b/drivers/tty/serial/cpm_uart/cpm_uart_core.c index b4369ed45ae2..5565f302cb21 100644 --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c @@ -684,8 +684,7 @@ static int cpm_uart_tx_pump(struct uart_port *port) p = cpm2cpu_addr(in_be32(&bdp->cbd_bufaddr), pinfo); while (count < pinfo->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;