Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp521648rwe; Fri, 26 Aug 2022 09:09:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FotxVGeJHQSQiQdVKTnWAtVAxgiBV7tXbzZMdVY/QF7X/oIfb72U8NFEfLJFCGfgK4Hws X-Received: by 2002:a63:4660:0:b0:41e:649:46fe with SMTP id v32-20020a634660000000b0041e064946femr3855764pgk.250.1661530177963; Fri, 26 Aug 2022 09:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661530177; cv=none; d=google.com; s=arc-20160816; b=qv2pbz8RMvKyuIGvLV1eMiKz+hhgB+2J5XKd2QM832gY25nn2k3NcSfV4Svnz/VIxs hywPhY6xT5QDniNdCThhHDWNMkRcscPupGUjOb7prKqQYEsNO8NRBsPpWBRm8XKPnLTA Tabm6FLu9067iSLbixzK3mCk2zOa25kLBcdzZX8W0NVM+CjewAmGPGyGNLmRk262Gfcu 4TDKdDtLtrdqj9kzFbUDbSwfKQ73hbRMXRf+Be6RpwWOQ1/uiwdGxfLDmj3ys87AFsrx da+DsUx3UsrtXo8ZOVW9lQO/M8KVJ8Mf+FN2dQZ31/ER1AyZWFyLy1JqX/tWYeay9P/+ KRxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FeNwIbGSnin/6lpCxdAU71xVZ3XiHSxLN5ZJ0/sc5G0=; b=Cix8HPq3Xmbhm7lOtEcT3GcNREKRg0DChZuUK9UTErF1m9AgQGfq9hHur+2aKGvY8L Nt8hvo4vqdg04qpeyOxsGMFw04A78ko43vX03JjZgb1q5SXpunn67qzqw6hp4+KNQKkq TV1To/SpPyag2wlneciuL9K4/zqkIXU0q7aTXLyOK82AmEbwDpxRXu6Ud9pBdAc+ES7a xl3LGrBJ4wB3i/vHP2go+jC4wq+/Iff4VPboY/oJ5dmkrcHdTdArJIHNQVmKtd/4XtuR odN2C/V92CT0vHE3n4HBxVGTT7+WevK1y2jyxD5t4nJdcEp+oNUxDMZ/BPWsjUYbtxMU 5w5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="buuUZ0d/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a638641000000b0041c9a3da63esi1811480pgd.686.2022.08.26.09.09.26; Fri, 26 Aug 2022 09:09:37 -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=@gmail.com header.s=20210112 header.b="buuUZ0d/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240737AbiHZQEa (ORCPT + 99 others); Fri, 26 Aug 2022 12:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233247AbiHZQE1 (ORCPT ); Fri, 26 Aug 2022 12:04:27 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01C74D4779; Fri, 26 Aug 2022 09:04:27 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id j1so1384742qvv.8; Fri, 26 Aug 2022 09:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=FeNwIbGSnin/6lpCxdAU71xVZ3XiHSxLN5ZJ0/sc5G0=; b=buuUZ0d/2nkVQRZuHDDqYtaT7TzNu324SLpv4R10HSLnwhDQ96WJVTnKtR7zum0t1r hqj2e0FMaD6GbufjOJ4k9zx3ZUqUNUUZyPkO0lahpnsaJBBptUclrfCtMuU9efsK6FXO 2UEynvZ5f62lHMWe/gcTdeOgbu5jBoMFgqkhiTV6KhEUNElx0rs4cVYkE86I1Q4HFjSY 2R9r/IJTqVgCguPDvErK+IEOMNmyzUp9lN4EC/OHyRu0rlB4wUvg4WTyTGdIRpTn1DGV 59ibKqH5KGO5FyeGk1djPNZVC5NZe+orkbYsqEKimpJUj6+jVJwK5STuzPRpCpqylF5/ oWZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=FeNwIbGSnin/6lpCxdAU71xVZ3XiHSxLN5ZJ0/sc5G0=; b=y1n6GlnSlLPsYFN2gvFfYfNkD27jqsU8Pb0/u8qdzrksvoGDy3YJDetatJynGl/ZXn xLcbmAYvhQhskA/06+33W26/s3n6Zoubkg31U78Gv4sKBxUUQ6Tvo2qlGZK+jvzfRCsv CyQfmPuoyFUdN80G5mVD7W+k+AMXbdYtkr5pJ+CK81a7fzXbyKMmEyi655Ygv/vSQ1Wm YSTfPQQGhPUF6bFMLxWqEkfQnF8YK0iyYPZniVxGZb+quh+qPy23u9xj/ubjVzgI2H/I LbHm30kiNwhH27YI61K9LbKUvOJHERpfZmNH1oHFA3uaH9/uioCq5E0bZEDKFPDsiBDI BIyA== X-Gm-Message-State: ACgBeo0Abu4CPeTfHevSWCJk+Sa4Z4zf7pbnhAviCbcHQ1loYdJkKJ8X YzhAByu52P8YIIa/5aBwUogRTeaD0uYdYfjvKjw= X-Received: by 2002:ad4:5baf:0:b0:476:6a9e:b5e1 with SMTP id 15-20020ad45baf000000b004766a9eb5e1mr300030qvq.64.1661529866149; Fri, 26 Aug 2022 09:04:26 -0700 (PDT) MIME-Version: 1.0 References: <20220825091707.8112-1-ilpo.jarvinen@linux.intel.com> In-Reply-To: <20220825091707.8112-1-ilpo.jarvinen@linux.intel.com> From: Andy Shevchenko Date: Fri, 26 Aug 2022 19:03:50 +0300 Message-ID: Subject: Re: [PATCH 0/3] serial: Add uart_xmit_advance() + fixes part (of a larger patch series) To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Greg Kroah-Hartman , Jiri Slaby , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Aug 25, 2022 at 12:19 PM Ilpo J=C3=A4rvinen wrote: > > Add uart_xmit_advance() helper to handle circular xmit buffer > advancement + accounting of Tx'ed bytes. Use it to fix a few drivers > that previously lacked to accounting for DMA Tx. For the whole series Reviewed-by: Andy Shevchenko Thanks for fixing this issue. > Greg, > I've a another series on top this which is tty-next material making the > rest of the drivers to use uart_xmit_advance(). That series obviously > depends on the patch 1/3 of this series so if you end up putting these > 3 patches into tty-linus, I'll need it to be merged into tty-next at > some point (I'm not in a big hurry with this so if you choose to delay > the merge, it's not a big deal). > > Ilpo J=C3=A4rvinen (3): > serial: Create uart_xmit_advance() > serial: tegra: Use uart_xmit_advance(), fixes icount.tx accounting > serial: tegra-tcu: Use uart_xmit_advance(), fixes icount.tx accounting > > drivers/tty/serial/serial-tegra.c | 5 ++--- > drivers/tty/serial/tegra-tcu.c | 2 +- > include/linux/serial_core.h | 17 +++++++++++++++++ > 3 files changed, 20 insertions(+), 4 deletions(-) > > -- > 2.30.2 > --=20 With Best Regards, Andy Shevchenko