Message ID | 20221019091151.6692-30-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 y7csp226246wrs; Wed, 19 Oct 2022 02:45:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7rJesoEVVfz0diBDmkn/6faoAtzHtpyQ5SB6JOByw7sslmgXbwBGxmHpAFv/nwUsN91baS X-Received: by 2002:a17:90b:2242:b0:20d:a2be:95a4 with SMTP id hk2-20020a17090b224200b0020da2be95a4mr8801402pjb.159.1666172721681; Wed, 19 Oct 2022 02:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172721; cv=none; d=google.com; s=arc-20160816; b=BaC60DeRTR8GSKg/vXlYq1EFw7qkd+cUvmNplsbmGJns94PHrdJNBmdSr130/HsYzW ZO2rWOHg0dBNfPoUrDQL2uDgvZYg4CVUXgiV6eMaXm14fB9D7N1tw5qEYlObu+4Po46v NAmZoj4h8wTHBU/v5O9ruO16yjF5wKhLpsGj8dahyDjkR6yEvplO15Z1tCUacUrR3Vll uQ2gip18FB7yNnmiULyjghVs5+VMmgenk4nFCNCVkbkZQxczB3zY9AsAPKvXDxja2FgS 8YrM/jjBdnH+tOviUPNC3otCz6Ji6aQLFn+pZsrsp2TELWZkEzF5b/xak5xAmPEKtmwU dU0Q== 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=8sqFNtXNSR6AfD8rIGGFMfvbSn4761ZjDTi4Qt8Wnew=; b=O6ugX+vvg+Or+/XS1kkyqph+nM/pr34i6EKCctky6uxtysAog4gr/PtJ3JQ1y6WyqK 04bzK6fH3qksIyX4UF5lEY/5RXhqDGru5/q9O+jtim2Y+Ds2kN/tljLAVcC4uQF1HFun f+jRSKNtzZVSo8n8V8qjpDrnYtfdjuvm2nzQqBcbYyxOXR3DiIjdQSGkFR9ATn1NFy+w eJtNWUxHMQeztAdOHprJef5TmSHf8oPNxcjZ1Uijw717c/0Yjo6KQjTkKKaZFGxcPuf0 Z46N3jBXSfxoW+3btcZwWHWKLi1NIhiu9jkNeg8680btyOSwSbI/Plfc/YuI/VMOSRJ+ ykvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="TE3UuaD/"; 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 c19-20020a17090a8d1300b002000ab788e9si21624700pjo.30.2022.10.19.02.45.06; Wed, 19 Oct 2022 02:45:21 -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="TE3UuaD/"; 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 S234246AbiJSJjb (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 05:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233991AbiJSJeS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 05:34:18 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB3C349A5; Wed, 19 Oct 2022 02:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666170902; x=1697706902; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pFpipHT5cKor3PMFt9+dB1A/lefpRtz+EzeC6pxpdNg=; b=TE3UuaD/Qbzz3S/BgvtVRuwAv6QJS6ce+BbSnQI3KtRdSNa/BqhLu675 bzKv+ulNcbJ+stQFd6mNRQJGLDyyqypvH1FrzidJmw4pBvKIvDcarsokA MuOCFd0RGbmsqlmGn5+o++PLw3XKOBYismDpf7rc5FClorUWzr5iaHG0Q ECWpunquhO7VeA1SUdNel70lVLOk7S6ec/p34fsuBPSp3OZBoVWyxQA2k L1bzk+7dQ+jpkPuE8IdxrnhlQKjHMEfcNUMA89S3lqpUMkF3B4p7pmVON sRyLf4xbv79VIS5m+QBaoS7Vfz+Ne3alG7h4w/7FD9vlsHRoN9d8FIgJQ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="332911231" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="332911231" 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:59 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119129" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119129" 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:57 -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 29/44] serial: sb1250-duart: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:36 +0300 Message-Id: <20221019091151.6692-30-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?1747108728200599724?= X-GMAIL-MSGID: =?utf-8?q?1747108728200599724?= |
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/sb1250-duart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sb1250-duart.c b/drivers/tty/serial/sb1250-duart.c index c5d2b6cdcb4a..de56f383964e 100644 --- a/drivers/tty/serial/sb1250-duart.c +++ b/drivers/tty/serial/sb1250-duart.c @@ -399,8 +399,7 @@ static void sbd_transmit_chars(struct sbd_port *sport) /* Send char. */ if (!stop_tx) { write_sbdchn(sport, R_DUART_TX_HOLD, xmit->buf[xmit->tail]); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - sport->port.icount.tx++; + uart_xmit_advance(&sport->port, 1); if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(&sport->port);