Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1748513pxm; Thu, 24 Feb 2022 08:39:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOahvcLtzsZr9p+qJvseRAnoobZfEVTambbtlgxMqgbBhQVNos2e7X/12yYCH+17mJMM+b X-Received: by 2002:a05:6402:5ce:b0:412:be81:a9d6 with SMTP id n14-20020a05640205ce00b00412be81a9d6mr3201149edx.272.1645720747474; Thu, 24 Feb 2022 08:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720747; cv=none; d=google.com; s=arc-20160816; b=Dot7beQoLrGd4gfY1s3qwB5XuWUBwsvUkFXaJzzja/XcZt3gxv5pG7vb5QgHxjE3vQ B6QoNmVi/MJ+FCtRtOht/YW1EWs1+c2uSh5Ee1A5u7QlZ3t69QksoYokZ53Knn2t7mcy lRPvsvVExQKVF9v/30kSOFG2TJ210KFU6tECQalPHN1kb8Ht4lVXDyeKxaVUoa2DD0f8 U0tHNpk3CwRrWhaPZua8O2KaK/Inl4WXnbG/ErnsutptKNQJUtkDiCINQ/pbYLcFJVMk nveNQaBowRosaENls1431Cnr2FlGm/wvo4Rf6Rr2IzPHy8oYVWvTXswbMhhGovlK52zW B56A== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HKzxqhI5E0hInxN0B+6sR1bWJjqg6HiuWwnAoTz4dj4=; b=Oaf1K0HLRliBOxu2AQcwSJ1c5lZcE/+JUucoPXgBdPaRsiIP1q+iRHRZfCZfy17RhD oMcSohh3MgtkPhGHrNzVR2WaA8emqLyvHv9Wq9+Qu0EnnqxtY2VtC4SBPWdtX7tl7jvs xEOoLzhS2QAjT/Tw3Crane+U/g32DRJoOR3FmB+ghF+lElfvjrGyN4Mu3M0BgmjG4S5h Zg/w1UqNnBulmxqney4djTzuQHKlD2SKAVhpMQTUZ0xH/rEJXDtUAD2paoZWxfcQcRGD ey3L9dGcBvXycH+DUYouxpzXGMPz4NaeoBkzSN/eDhuwgtur8kDE+XZXt91lMJpxqdqH PsAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DJuDDee+; 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 h15-20020a50e10f000000b0041083e746b5si35198edl.409.2022.02.24.08.38.43; Thu, 24 Feb 2022 08:39:07 -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=@gmail.com header.s=20210112 header.b=DJuDDee+; 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 S230057AbiBXQiw (ORCPT + 99 others); Thu, 24 Feb 2022 11:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbiBXQis (ORCPT ); Thu, 24 Feb 2022 11:38:48 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4F61342E4; Thu, 24 Feb 2022 08:38:08 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id f11so3675650ljq.11; Thu, 24 Feb 2022 08:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HKzxqhI5E0hInxN0B+6sR1bWJjqg6HiuWwnAoTz4dj4=; b=DJuDDee+DDCURX0UIukj5cQPc9oTEG0zT+tpAYxK9ESNxmlrUYLCP4f3NKkP5cMl5D Fo+SnrpogamdLZTbsL9jR7/9/kvKh05PNsAZH/gScGru1RhZEsErUm8syZZHQE5Jr0/D nlj6IbxXpoDgrsbXsGPW5LQBYmGjWdym8/uSdecx34EZTfDzgVeI8qorvDqMYmt5miy0 11EVy8ALh20uMAxGIn2spoie8Hqze5Uoq42AsL7tUOulFAIrGVO6Adnatt0kUIS3gwuU rTi3xeg4GxZ2AMFAK6IjmduZ6vbk4kqLlVawakv93NQqTsSGJyuO3b0wYU5Y2Nrfci/D tQUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HKzxqhI5E0hInxN0B+6sR1bWJjqg6HiuWwnAoTz4dj4=; b=xBFjj2ds2/nqZKNdv4B0RG20nLh0FGmADtGnLti4OODdxZDh2uJoEaf3om/i7hyKOb 8YneEeBsdhTxy0liLz0mzn+IyvtgHgnHybeUM8hXDW+fSZinfXJLkYblzTn3fWnA14rt exDSpR/3MUrkJDx9/3o7HzlO9DduukpEX8o98SYj+h1U/tShMJdRA4rj41VUI7CFa7qb fXOgZcUJe6XAQnT2aspatWS/rd6qHoGJonupet4z1WiwPykRpwn4gsl3hwdNqK17rl/L fQP9/IhErMEMVN7OOf9Q/lUrMtv6DnvIS6Tl9RQHfXx9Yvi9fDxe5XION5hsbew2tptF sFSQ== X-Gm-Message-State: AOAM533n0dnF/WqwHxjA4Z/OE1HDUHt1xqN8Ij2MG89SLUpAgA738xru sXF0rBjtXMYiVVrXM+7vrxM= X-Received: by 2002:a2e:a171:0:b0:244:c2fc:d1d with SMTP id u17-20020a2ea171000000b00244c2fc0d1dmr2369703ljl.159.1645720686690; Thu, 24 Feb 2022 08:38:06 -0800 (PST) Received: from orome ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id t20sm245402lfk.159.2022.02.24.08.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:38:05 -0800 (PST) Date: Thu, 24 Feb 2022 17:38:03 +0100 From: Thierry Reding To: Jiri Slaby Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Laxman Dewangan , Jonathan Hunter , linux-tegra@vger.kernel.org Subject: Re: [PATCH 2/5] tty: serial: make use of UART_LCR_WLEN() + tty_get_char_size() Message-ID: References: <20220224095517.30872-1-jslaby@suse.cz> <20220224095558.30929-1-jslaby@suse.cz> <20220224095558.30929-2-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bGyWIReJ9zdg8psW" Content-Disposition: inline In-Reply-To: <20220224095558.30929-2-jslaby@suse.cz> User-Agent: Mutt/2.2.1 (c8109e14) (2022-02-19) 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 --bGyWIReJ9zdg8psW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 24, 2022 at 10:55:55AM +0100, Jiri Slaby wrote: > Having a generic UART_LCR_WLEN() macro and the tty_get_char_size() > helper, we can remove all those repeated switch-cases in drivers. >=20 > Signed-off-by: Jiri Slaby > Cc: Laxman Dewangan > Cc: Thierry Reding > Cc: Jonathan Hunter > Cc: linux-tegra@vger.kernel.org > --- > drivers/tty/serial/8250/8250_omap.c | 16 +--------------- > drivers/tty/serial/8250/8250_port.c | 16 +--------------- > drivers/tty/serial/jsm/jsm_cls.c | 16 +--------------- > drivers/tty/serial/jsm/jsm_neo.c | 16 +--------------- > drivers/tty/serial/omap-serial.c | 16 +--------------- > drivers/tty/serial/pxa.c | 16 +--------------- > drivers/tty/serial/serial-tegra.c | 22 ++++------------------ > drivers/tty/serial/vr41xx_siu.c | 15 +-------------- > 8 files changed, 11 insertions(+), 122 deletions(-) This would've been easier to review if I had this in my inbox, but I did find it on lkml.org and this does look correct, so: Reviewed-by: Thierry Reding --bGyWIReJ9zdg8psW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmIXtGsACgkQ3SOs138+ s6G8LA//a6T2l7OdGOi6gS4JTGpVy3oswh/dgzFUZyXLfgc/hZ4+XfafpeRT0tHj F3NYARAAYfXtWh0WXj7scRQd1Kcax8wBO8ltzhUU+Qv/QWzmt3tDhrzD3LqxHoN1 qmI+AEBkfr81HRR/NWnbn1h11SwtEUzPrPaOhSkaGkTZqD2gk8D093cC7YVqB+er 5TvEM9BP9/BGtcLoA+1p/Ir+TIbxUd1fFdGVYsJ32rYBssAtBvn3wiC08oByrOrL Qx0im6NLDjxffI7Ijxw4257lQy9wSGq7S8HxmPb+gTSn9IYwllo4zhC9A6ZzT643 CheDmqm++kfg5Ijrg8PQmuXzQ2m89Z0b0n3rQA6P/N59hqWg0obU8M8+wTbQfiXw GPeWHW9iwe+yrcU0B+CjP8uVFCq/6m/JzalevUvP1G2tnIG3At7xL45YpU+YI07h cdEYQuG5Yom0RCwSX8f4W7UB8KRL6UJclqUbAfUc2h6MReYMkhguxTi7O/Qc7Lkv SuUJ6765xPhSmqouxo+b4Id0gvCg9AHElyD/q6K4sgEFdFy4NqonAJZJj00YsGVf BoLZ834npx8Vd9DUgPrGzRzTSOBvPzUAIOli8pk5e2DyvO2fNgg6RJrWESn1U+Ly vTaLIAsh31wu9T9/E67OBAaohALhLETkgjh5Wed9uBOAwpxFbhw= =5bfD -----END PGP SIGNATURE----- --bGyWIReJ9zdg8psW--