Message ID | 20221019091151.6692-42-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 y7csp266020wrs; Wed, 19 Oct 2022 04:23:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zZySUokqQ/QXXaaJBPQbDnoeWkUulIZg9Am+o0LBH1p9C8EpaZGw593bYTMGLOnYQ/I0l X-Received: by 2002:a05:6a00:ac6:b0:530:3197:48b6 with SMTP id c6-20020a056a000ac600b00530319748b6mr7893066pfl.80.1666178610599; Wed, 19 Oct 2022 04:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178610; cv=none; d=google.com; s=arc-20160816; b=Ff4XyPQNojBOkwQZSFhPAipGMeQmB0InGPmoFyp+pa569kIQsVZzMDJ/BABeatMyvl v9lMDvkEr4RO/FNArKaDM4sEgAJo7NmqHRGiTDxayRxrtjKGT4RyRB2JG/5nb1mDjZFb KYAFQageNSj9crk3cQ0LSW5TrmFFpYv5/b6DFzUlYzMMllaQ2rcwTBEYHFegiDAZO89R a5DSMeOA3YbrcAsQUpF9+DwDyUqEg8JADSEb4uDN2ffL68ubQx7Q2wMhuyRLBV92eENT JC+Zbs9JSK4rmhPuowekbUFKXHhdK7l8uaXqqWK5/4vvM2EVTFlQ3DdmhJiWpR80APDK oQlw== 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=An46e1USRvHSZX7JtNF7savQVfineTk1Z3NO90Tylwo=; b=eYyxnqFBWHF/3kLjlbfJhk5wzZ1wa4A7s6orcknHNok0NcvB1GrZn3/igOuTNUn+sX 8AchgIrxMmgMWPUQYCS6e8hLgg6bjoaxMeCLQhi/nTtIcLCpstB78b7riBYOhYI8aMtI 8z3sk6ICioKPRabAeUNkpeNHWb/fw2orpGVQk70rcn69oKO+JF1NjvK8Uuz3kLso2hXe aKXgiZLDQyQWbXXMju8Z3VfsCaRqz3PwP1nKhnTP/E9nVauHoGPCcEkKNdSVtZwtXT+5 setWD/ioiDbijPb5rT91CzPhjdtomKQhLJ3x/cnGUHJpeMD1EIHZMIb6nTz0libA+9sp ZjEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G2691YPD; 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 y35-20020a056a00182300b0053641d594b2si18771235pfa.40.2022.10.19.04.23.17; Wed, 19 Oct 2022 04:23:30 -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=G2691YPD; 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 S231175AbiJSLQc (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 07:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbiJSLNu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 07:13:50 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2925B1849BF; Wed, 19 Oct 2022 03:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666176074; x=1697712074; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2fcH1RckItYB1DaGqrWXRre2uW8qfw9sV3lZLqMJ7X8=; b=G2691YPDasMFCMSvlZSpdjJ/xrwYnFcNF0uZydlaYeO1SSiIp0CGOdD2 ElrETi/VnJiJHh6cvncLdcuIGlITtNe9K8EjJUDXKa3qfbNIey8chZMfq Z4XRXOdmb0zlfGR3aYwzH9ZtY2wejwTMLlxEPIRszxSH/rMXbdnrCYNDv MJZTEhY6mJjB9kIgLTVIETAfvyoizGk6dRtZ2G6xdkdu81Q3pTOx8c8gB MFqssdO1Sh48wJaSXdGl/sWXLECQ8kTn0wfDbAGcs8aMh2avSCThr375C lO/RS+rAM004maMn/JLhTGlFAGPFJINXHr2ADQ+EtAOpYrh73+C19jIMl Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="370573944" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="370573944" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 02:14:44 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="734119331" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="734119331" 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:40 -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>, Peter Korsgaard <jacmet@sunsite.dk>, 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 41/44] serial: uartlite: Use uart_xmit_advance() Date: Wed, 19 Oct 2022 12:11:48 +0300 Message-Id: <20221019091151.6692-42-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?1747114902394154248?= X-GMAIL-MSGID: =?utf-8?q?1747114902394154248?= |
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/uartlite.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index eca41ac5477c..94584e54ebbe 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -203,8 +203,7 @@ static int ulite_transmit(struct uart_port *port, int stat) return 0; uart_out32(xmit->buf[xmit->tail], ULITE_TX, port); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1); - port->icount.tx++; + uart_xmit_advance(port, 1); /* wake up */ if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)