Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15771728rwb; Mon, 28 Nov 2022 16:07:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tH9wQIR+qUUNOKmriOfqnPJcKoLKOuOHVNTE0kKK0FDx77JAFo6lQDeF4FLGZaKtyuEBl X-Received: by 2002:a17:90a:4594:b0:218:f745:76fe with SMTP id v20-20020a17090a459400b00218f74576femr25466107pjg.245.1669680420350; Mon, 28 Nov 2022 16:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669680420; cv=none; d=google.com; s=arc-20160816; b=GtvApwuUq2dgcR8qcBj/vY60G/zoUgb3Ky5xQ2e2dzvVfqc27kYRkQRCDT2NqOQrRt BsOy9nIQzyfm4SsuiNNYxH/71UTUHUXyCfRzld4JzabtiocfHmkH3tstd1l7FsAWgQ0q z6Gmb+BL+NXvtJ9SYsFQsxA/VJVsOecr9eNXTideH6i3880SK8FDJFHNwnAYS6XobdoH Kj7cytCWCJEI2wR7q2crND9Erpcnzc5r80dEBr1eSsoKQj/Ko2d35LVqKo6emh8/YAck xWE7I9ovVU0BeAcuy7Vn2tFZLXmP4UJD5ad3wSo/FLtVdLZpizJLmUI2K713h5yof0mr +/2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HHnmCq4QquU8x+0RFd0AUzOt46zUYnR4msKn0cH1Tz8=; b=SRZGZjm/5ztpG0CbxvvgsmaGVcUn4CzilQad/mgF33MFwf0s7sgTIi4r3szeiGB0cL xMwSTyHO0f8NuAUCKahuL61aiUMY/NBHvLf+z6EYTcWFyB0aC7U+6PvQXa/QWet0f2kk /lHv/EYg0pBSwW90Eb9LykLNLseYCzv4x3Ne4zOinsQB39Gyu8Xfv3ZWBKv5EJmT6uyf 5dZtqpVFXoNlmdKW+JM+99rLs/UkDQA7v+7UcaPdNM8ViUx+H+3RrJEe3HSrVp9Sho6F arACgn4x4vY+/nEGtBoXu89wLCSFfG4qX9p0a9WWfTLo9KsdPKtrIH8lgpOtC4LTtOfz tY6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K4aplWhP; 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 q130-20020a632a88000000b00477f939f971si8399696pgq.480.2022.11.28.16.06.48; Mon, 28 Nov 2022 16:07:00 -0800 (PST) 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=K4aplWhP; 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 S234687AbiK1XaI (ORCPT + 83 others); Mon, 28 Nov 2022 18:30:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234651AbiK1XaF (ORCPT ); Mon, 28 Nov 2022 18:30:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5AE5317D0; Mon, 28 Nov 2022 15:30:04 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 72720614F0; Mon, 28 Nov 2022 23:30:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DA60C433C1; Mon, 28 Nov 2022 23:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669678203; bh=oQ1NXyRzlFb173JCqIW8f1hvYKMUAyVNiwLTT7sk8vs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K4aplWhPIs7iqJ6AIaWGsS/0dP/m7uG+YwVnF6ol5zTqZJGcZ61WOk4Lbhse0+rUJ Gcs7nZFG2URkBSY7k4TT0AiQCdsKU9Q+PIQSUvBLVNnw9RCJlg6tXpSPctOSf3qqN4 LDuASRQC7uXiqM6eRsR3yw6eFizPwXCl2GAYZT/SkRYAya3BKcnCV7co0wljbK+r1I s6rzLM6xdc6wB/JllmnInmwYBJz5kVfzB2DYK5zqKRReTfy0g3k3t75UmDZjJZupxf +NuTw3SKSvHwghFW8SyjnGlnFPAb6GzK+Dgp8h4qcj3zDULS1uCqNUaYVXucpNY++/ Pvz2hWUzApaQQ== Date: Tue, 29 Nov 2022 07:20:09 +0800 From: Jisheng Zhang To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: Jiri Slaby , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Greg Kroah-Hartman , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, LKML , linux-serial Subject: Re: [PATCH v2 2/9] serial: bflb_uart: add Bouffalolab UART Driver Message-ID: References: <20221127132448.4034-1-jszhang@kernel.org> <20221127132448.4034-3-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 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 Mon, Nov 28, 2022 at 06:01:28PM +0200, Ilpo Järvinen wrote: > On Mon, 28 Nov 2022, Jisheng Zhang wrote: > > > On Mon, Nov 28, 2022 at 07:10:41AM +0100, Jiri Slaby wrote: > > > On 27. 11. 22, 14:24, Jisheng Zhang wrote: > > > > +static void bflb_uart_tx_chars(struct uart_port *port) > > > > > > Again: > > > > > > Are you unable to use the TX helper? If so: > > > > You know serial subsystem better than me, may I ask for more > > details? For example, > > Besides uart_xmit_advance(), do you expect other TX helpers? If yes, > > can you please list them? > > Please take on look on commit 8275b48b278096edc1e3ea5aa9cf946a10022f79. > The changes following that commit convert some drivers to use the tx > helper so you can look into them to see examples. Thanks a lot for the hint. Will those tx helpers(uart_port_tx, uart_port_tx_limited etc.) be in v6.2-rc1? Or I need to patch based on Jiri's devel branch? Aha, Jiri says "at least uart_xmit_advance > > > > * why? > > > * use uart_advance_xmit() at least. > > > > Do you mean uart_xmit_advance()? in the do while loop below? > > Yes, Jiri had the name wrong. But your code looked like it could use > the tx helper instead.