Message ID | 20221019091151.6692-39-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 y7csp246074wrs; Wed, 19 Oct 2022 03:37:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xBSMYZVhcExMwo4W/WoY5PF16PigVkEGHVEJFnXJ2QsGB37aF5v5U9PJ4l8zgGOTs6V0g X-Received: by 2002:a17:907:a429:b0:78d:b6bb:304f with SMTP id sg41-20020a170907a42900b0078db6bb304fmr5996241ejc.497.1666175830796; Wed, 19 Oct 2022 03:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666175830; cv=none; d=google.com; s=arc-20160816; b=vanY0cDEUtytKRW6XUSypFuc7I2UNyodvJT8saEBt2N9jN1cRtN0pkTX3YapsKrfcg uwJ+mRYIyjrli5lToH5KxivblC30CFv/JmsRyqPuSwHAdtwkfz8ov/EbEJaOFIo0gcTE +PB6go+5CcnuQF+ASHng7rI5bUHpPp1meAFVR5FkVS8mi1wntkFFzd3WhgqnhbkdEgAU p0Y/eo4tDH4y3iVE1AiQYYTKUd/Rcm2Nx24T9YaOQD1UlZl0HLbFT38gdH6oxgaDhKR3 fV6t2dzyrfOwyqz1kIN3a3jfCyTwxUbD1VyTuyPpdkTVrmyCGUdzyO4g/LSeVFh2V7PT IDYA== 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=GAKoLDQhmAtnat9UhqYQKLc4GZKK9TLCtTw/ReAqgsY=; b=zDZMjWlaTcdEp1ZKPUSpaTrrLZ2MHJ9xweMSkjVrsbeoI/jnWnVnmDO4Oc6Etpyz7B kCIoAIImMNAJyuxD6sA3C69JGv/XGiFsS+s0Oc3BFVS5x73yZXnEqPs69EeG5CFW9MZe 9LVAwO+Ws3IDEGsetGq/Sqz++IGn3bfm8e7QSYeKbS0LC+xD2O0nHhQImOJvdBLQy1xg u+S/9GlODyDuUQzazgowYZt16zCL3R0w/eLUqZWwY3/xqyg7/DgfO6mxr0NicE0L3ZAi 8brREdJ6bSsVgjVkeKTh6NHbQL6pmTw6gx4UkkZLClVi3VMlfezrQxtnrHKKM/IQd82K hPUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="giXqOo/N"; 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 y66-20020a50bb48000000b00458ea8cbfb2si13170214ede.505.2022.10.19.03.36.46; Wed, 19 Oct 2022 03:37:10 -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="giXqOo/N"; 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 S231559AbiJSKcS (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 06:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbiJSKbh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 06:31:37 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96982F88C3; Wed, 19 Oct 2022 03:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666174228; x=1697710228; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rL6uaZX/hio+HSnDzkRczLQeC2Un6TqgLI2+Bpj/WVo=; b=giXqOo/N9PmVCPDOwe70L4S42V+aa3cqOuRX3R3HZ474evkb03+9ajC1 uADrXwKT6X6LjZzYx1hDIn1ic2CF1ySxa34SQA+TRkL5yV64Ipb9CfYVb Psm3MmoWnypkk3lFKoJyCVaA64f5Hix8pNBomIYUnt7CDNu65zCvxCiT9 TLlpWL63VuRixMGzPsAG3uuVnVbJEj9WHx1oZhPtq+FJckBg77dPt5fAL Ved0e1AC+RWJzOBSd1BNNYTCN90L+tOv3GtaVs4JN0lZ7T6Nq1NLbT/sG v0cFOYPfX1DuaDFpL+dWT+OQM/tfCVEO13yjdsv14A61CYU9NB+aeyw8n w==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="368407306" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="368407306" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:14:33 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119283" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119283" 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:30 -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>, "David S. Miller" <davem@davemloft.net>, sparclinux@vger.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 38/44] serial: sunsu: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:45 +0300 Message-Id: <20221019091151.6692-39-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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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?1747111988083829735?= X-GMAIL-MSGID: =?utf-8?q?1747111988083829735?= |
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/sunsu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c index 9ea7e567540d..fed052a0b931 100644 --- a/drivers/tty/serial/sunsu.c +++ b/drivers/tty/serial/sunsu.c @@ -417,8 +417,7 @@ static void transmit_chars(struct uart_sunsu_port *up) count = up->port.fifosize; do { serial_out(up, UART_TX, xmit->buf[xmit->tail]); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - up->port.icount.tx++; + uart_xmit_advance(&up->port, 1); if (uart_circ_empty(xmit)) break; } while (--count > 0);