Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1508886rwi; Thu, 20 Oct 2022 13:27:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM797zvuRh8KUbGutX0dx63yU4cr/uak69XbsxBDs3QI7ECa/7H2eazdyTInYwMOOPnw4DZ4 X-Received: by 2002:a05:6402:c4d:b0:457:99ec:1837 with SMTP id cs13-20020a0564020c4d00b0045799ec1837mr13723543edb.86.1666297660061; Thu, 20 Oct 2022 13:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666297660; cv=none; d=google.com; s=arc-20160816; b=KlEnURgEpXkLtTp8A/Xak0IY3oq2QoRJOVT7ErxpkWCL1hOfKuQASg0QbApdudAPj1 jAvOLe0QaIRP257XyvfS91tOz/id4Q6x4H12qEiGsFLEYzNBce0l1ozvIiJ/q16qD6nG huzjbG84Njpmxhy/6zwwATPt/GYFg7REEQFhNmPF2iIDRc0I04OP78KF946SKr/1rTVZ px3H6+5zxqJYJpo/83tUcGJ00vdGXpZ5rfZGdTlH7wEyt5Mc5lZYvKgw0EiNYKgW5x8p XYUWHpQmKN36E4q2M/7uteO/l4VSyFRbV90pIGyIIazdtboP+oWC4jS0Ij6x8hYVB+RU XGsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x4TCxSHSfGVx+Lc9z4iJw+yquuMwmcFBWX3Gp/5oOvU=; b=wJWuyvucpr4fCGzyko2Dw8sQNFNRUwnsjVvKZegbiodmTPTEE9g5KGaWp40JebHlA7 Z4Z+Y5bV607hfCv41+q3i0ln4wosTOxIGQdMcr0HQZy518Rkp0T2SbJ6fuLjd0lc6rZK fohZ/HBSKPxlG7JApekxtMzkXXSzmvLTUSMb17aQGOB/b/T8FsYskvkyLRTDoiEVKTIx UEoheGGDWG1wkXlFiaOAwotrEKGgZg8ZvdZaCsnTMoB94JuR6G9E8+OhcQdquiTzC6B4 MV8xCaVpj7egWyBql4WNJdwi6Fi/ggiKkfxWwHtX9Y+TSRItJUuRML/jrX8cHYR5oCsX 8uFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hz58T+de; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a101-20020a509eee000000b00457f5aa9dc6si16840010edf.528.2022.10.20.13.27.14; Thu, 20 Oct 2022 13:27:40 -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=@kernel.org header.s=k20201202 header.b=hz58T+de; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbiJTUMX (ORCPT + 99 others); Thu, 20 Oct 2022 16:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiJTUMV (ORCPT ); Thu, 20 Oct 2022 16:12:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715A317EF31; Thu, 20 Oct 2022 13:12:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 358DAB828B5; Thu, 20 Oct 2022 20:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDDD7C433C1; Thu, 20 Oct 2022 20:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666296737; bh=W4KCwra5v9uA4wyjd6DCEjQdx6UQ6XoKLtxXcQdURFU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hz58T+dejJSggZscJtPWjSLesTvggYReaTS+8PY16cH0YJYSIBBPy9psfshW/i99Y QGcsLNoHaqwbvcKryVu2nrZAoHd+fYX2XL7WiZAe+99+WvN6YX5lhbrb6/JP2OeryR rDH3HspA49Z1bSyIOUXqC5gJPXtRafWdsSWdOlT31s7Ts5Wu2ohRFMx4l6J5VXx3TQ B2uTji5kxhTQGqm5Um8A+tG4fQ1h1JQ7H87u4vyYZNBHCLaWGWaaF93TsCIsrEuDMY im77ng3i5ikeVQRxfODPjbJbpaOzvuq0UdzQF62t7UZ+zD9RwOuhnE10JnMTOHRxkv YdDA5V74zFdfA== Received: by pali.im (Postfix) id EF16680E; Thu, 20 Oct 2022 22:12:14 +0200 (CEST) Date: Thu, 20 Oct 2022 22:12:14 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH 24/44] serial: mvebu-uart: Use uart_xmit_advance() Message-ID: <20221020201214.pusagqobdbdpy6ek@pali> References: <20221019091151.6692-1-ilpo.jarvinen@linux.intel.com> <20221019091151.6692-25-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221019091151.6692-25-ilpo.jarvinen@linux.intel.com> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 19 October 2022 12:11:31 Ilpo Järvinen wrote: > Take advantage of the new uart_xmit_advance() helper. > > Signed-off-by: Ilpo Järvinen Reviewed-by: Pali Rohár > --- > drivers/tty/serial/mvebu-uart.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c > index ba16e1da6bd3..ba9a6206daae 100644 > --- a/drivers/tty/serial/mvebu-uart.c > +++ b/drivers/tty/serial/mvebu-uart.c > @@ -223,8 +223,7 @@ static void mvebu_uart_start_tx(struct uart_port *port) > > if (IS_EXTENDED(port) && !uart_circ_empty(xmit)) { > writel(xmit->buf[xmit->tail], port->membase + UART_TSH(port)); > - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); > - port->icount.tx++; > + uart_xmit_advance(port, 1); > } > > ctl = readl(port->membase + UART_INTR(port)); > -- > 2.30.2 >