Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4234840rwb; Tue, 6 Sep 2022 04:50:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5n772z4gNEhbToNwTqOfZ2hfRyYHt5Y5auHcqdp6f09+KV3FAsAK6FaKxyavD6Zh6iB+X6 X-Received: by 2002:a05:6a00:a90:b0:530:2f3c:da43 with SMTP id b16-20020a056a000a9000b005302f3cda43mr54677860pfl.50.1662465040454; Tue, 06 Sep 2022 04:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662465040; cv=none; d=google.com; s=arc-20160816; b=pixKVjExTkwXFkTkRYWupskJZR2/Tdfdo8PBlw5DchAzUYAoT1zHFmBlyKR90bFj1t sQeFbr7Mn5yqiSNC7mmFfRWYF0rH6/5/JE3WADC/eqYNIjT9FX7awr4mSOt372eWlimc T/fsNOkeOJgwaIY4+IWVhjOpZeHT7nu5z4w2STwHkv/EI6eeDQoqGAXfDJRngn1WeswW Z4tGvxlglDxSwo92FsZZ/yEBoYBMSRs6FX6j/fEo9bjEF/Z88+S5XzzqjwUtFitTVBfY ogP7P/6KvRZAMSvUWdoXF5BhzHSdih0wXMMQk0we+RAtk9dVl4DYwrttkkuwTiDpxcx4 N/mQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g3NOrVoLkTIS/FkuIX5otwMGERJ8/Na++6T3CQGJf6A=; b=KMUGcX7b58X9Uhr9K1sdqbpvw7GR1T9xnhfwrtYsK0GYLko5mR/FkOMcKvM1NVOW8q QX1SN18ZQuwuZRb8+HDfgFktH7+9ynNAcKKVbLDAT8SagYY3A+W3YcTww+JZNrmUrNZC ECXylU2waANzBF2/gU7rLrYrBMqA5BEve1MyphNy+9QdrUUO9hSJSZWxb/EQEGlP/kCb EB9fu36NYFoPHzmENozuEuYwKoPJGVrQRYaWvRL1gajjv6WP1EeBUuSO7M4G3Xuu2Uem yB0tBbMSBHiF9A6TRHfm11S4y5RT5QFbGvPa4y4UMNa4OoKDPdmQ4zdWlGM1hkasKxxE xlYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AuWAOZpA; 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 h9-20020a056a00230900b005283d3bb832si13272238pfh.193.2022.09.06.04.50.29; Tue, 06 Sep 2022 04:50: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=AuWAOZpA; 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 S232295AbiIFLa4 (ORCPT + 99 others); Tue, 6 Sep 2022 07:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbiIFLay (ORCPT ); Tue, 6 Sep 2022 07:30:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A77931218; Tue, 6 Sep 2022 04:30:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EC34B60C61; Tue, 6 Sep 2022 11:30:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53FC2C433D6; Tue, 6 Sep 2022 11:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662463851; bh=bm9uW+36QU1xAHJ+oVynEAhF11CfOTIcYyIVCyIxWQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AuWAOZpABzQWjhRFEGlEzovAMjqYP5gbx2CfPPN4+oWWFfy/3GWDEANvJUy53gZkq VWJVDLrAxbVlvcJZu3UwkmlK8PraTgk99sLgZfP+p27zMLLBLQ6/fEH6sFM8hFK2sH bUpyrIumm8r+LCVMCjEFEgQHOC3MxsYb1cgL9cjZLg8IVjnnqkxPPoTaUzoS4itTQJ AOZQpg7aJK2Gp1UyXQS7aGuZafIND20w87iIoGU1OEMTSR+KE65l/32oDQUpr0yT+a s525IDq+7dqQ/gbrXrGJA8wonnoHLr7bNBRSSpbXpcOxpvqjz9P64BmKzTpJVzkA/y XXjMl/V2ztJWw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oVWn8-0001e0-0d; Tue, 06 Sep 2022 13:30:54 +0200 Date: Tue, 6 Sep 2022 13:30:54 +0200 From: Johan Hovold To: Jiri Slaby Cc: gregkh@linuxfoundation.org, Ilpo =?utf-8?B?SsOkcnZpbmVu?= , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Tobias Klauser , Richard Genoud , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Vladimir Zapolskiy , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andreas =?utf-8?Q?F=C3=A4rber?= , Manivannan Sadhasivam , Russell King , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Pali =?utf-8?B?Um9ow6Fy?= , Kevin Cernekee , Palmer Dabbelt , Paul Walmsley , Orson Zhai , Baolin Wang , Chunyan Zhang , Patrice Chotard , linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 0/4] tty: TX helpers Message-ID: References: <20220906104805.23211-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906104805.23211-1-jslaby@suse.cz> 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,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 Tue, Sep 06, 2022 at 12:48:01PM +0200, Jiri Slaby wrote: > This series introduces DEFINE_UART_PORT_TX_HELPER + > DEFINE_UART_PORT_TX_HELPER_LIMITED TX helpers. See PATCH 2/4 for the > details. Comments welcome. > > Then it switches drivers to use them. First, to > DEFINE_UART_PORT_TX_HELPER() in 3/4 and then > DEFINE_UART_PORT_TX_HELPER_LIMITED() in 4/4. > > The diffstat of patches 3+4 is as follows: > 26 files changed, 191 insertions(+), 823 deletions(-) > which appears to be nice. Not really. This is horrid. Quality can't be measured in LoC (only). The resulting code is unreadable. And for no good reason. [ And note that you're "saving" something like 20 lines per driver: 12 files changed, 84 insertions(+), 349 deletions(-) ] NAK Johan