Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp411628rdh; Thu, 26 Oct 2023 05:54:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETmUfz20F3udgsupJAeO82sOpa+I040VUBM1qptPxeDljHDAiHw5B1gUtTFAwsf1OI6DV7 X-Received: by 2002:a25:cfd0:0:b0:d09:34f4:6698 with SMTP id f199-20020a25cfd0000000b00d0934f46698mr18389456ybg.36.1698324898950; Thu, 26 Oct 2023 05:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698324898; cv=none; d=google.com; s=arc-20160816; b=YE2lhinQfnrJEEyt+JuWH3tiH5NEB/cj5ZHZi39qf4Fnccq2yssnw51/R3lZt17IO8 Mlyxvf2/iVMvAc8KLbUGuJzfwGql9Bn+C1WagBUACv9WL2Z1LvjsLeJze/5kPUvJgk+M NM98iAKBAIOqV9oYp7eiLKP7zO/4Ua7PEIJlkmeSe2M8Tv7U/VBFYhZWZIM8VPl7cA71 yNY0dkyokfQnyUwi2bu4dQsazBdWyEfC06GoLCSSgRVH4t4q75vjWfBm4I7kx1tq3fCv fiwfzhOZYg1aD1YPiX6TcE0J5hl3FYMGkdYhlHm0Uul7jBh+y9PfxnPplLy43s67HeSd R9+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:cc:subject:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=wKDMaMA6DJ6jxyYN9y6LAy5+6UvY7wLuwkWrrVpSUho=; fh=P8Ept2mudnJzLXBprwqNGzvz1V2ssaU8kbOtI1RvERI=; b=UGKaSQpTWNm7J+3yPu7TB/UI/JkSTLD2aIyK/OYYfOtWQkrloAesktwS6G2J2ArnCG 39BUoLbrdupaVXcwfOR6/WkJUrRygUOe4UTJxbwaXe1pobUMaiwcTt8rgN93BGEHoIMB piyExMpYAHgHICA44KV5TbzuALjnIYdwaoRqH71E11G+3r+VmubQ+p/AXSbuEqxspsNV NYw4allv5RmrelIFsRRMwWt0002sQW3pEVhnKrvHddHynjs8ytSozxnN0seNGlzRxiXU OpeUCzZOKa2R6mSNvZzUw0YdXxXeQ0AA3qhcL0v6+NJWGTFWV++TtZnJrvCMZVAzVHad sizA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=c71eHCpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j202-20020a25d2d3000000b00d7ae0a59258si14302505ybg.228.2023.10.26.05.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=c71eHCpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 57020819700A; Thu, 26 Oct 2023 05:54:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbjJZMyn (ORCPT + 99 others); Thu, 26 Oct 2023 08:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjJZMyl (ORCPT ); Thu, 26 Oct 2023 08:54:41 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92204AC; Thu, 26 Oct 2023 05:54:38 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id C6644E0004; Thu, 26 Oct 2023 12:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698324877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wKDMaMA6DJ6jxyYN9y6LAy5+6UvY7wLuwkWrrVpSUho=; b=c71eHCpAcB3T7/F/wyL6wgjUTI1vQcj4c3ysetN9C3h8oQnRs9OpFkPHWhzyn4MeSeuXde xr+f1ZT/3bboP47crOxldDlzmNcATU4HjZ3BFWzIH8+fBnNNChBD557Jal/yGF+/dO02bt ALJ8rUBqxguV+/s0jgWff3vO6LxdNAhAiZ34/dtxsCAPkLXctmgscgo7ui9O+U0hUOsAho r34hyawGQYj6PJ5DQAh5kOYJjlAgyhMtf35ck0Mihd9LpCrx++v5wDqPzQB4JRkfkVTXDJ bJPdeAStxafvralilsHzhvkAhYQ9QrSm2jbDc4XyCIdZjBEmYTGqkZBuVLyMqQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 26 Oct 2023 14:54:35 +0200 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 6/6] tty: serial: amba-pl011: Parse bits option as 5, 6, 7 or 8 in _get_options Cc: "Russell King" , "Greg Kroah-Hartman" , "Jiri Slaby" , , , "Linus Walleij" , "Gregory CLEMENT" , "Alexandre Belloni" , "Thomas Petazzoni" , "Vladimir Kondratiev" , "Tawfik Bayouk" To: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Mailer: aerc 0.15.2 References: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> <20231026-mbly-uart-v1-6-9258eea297d3@bootlin.com> <3cc1f559-468-8a58-a919-bdfb45ecc90@linux.intel.com> In-Reply-To: <3cc1f559-468-8a58-a919-bdfb45ecc90@linux.intel.com> X-GND-Sasl: theo.lebrun@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 05:54:56 -0700 (PDT) Hi, On Thu Oct 26, 2023 at 1:13 PM CEST, Ilpo J=C3=A4rvinen wrote: > On Thu, 26 Oct 2023, Th=C3=A9o Lebrun wrote: > >=20 > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-= pl011.c > > index 5774d48c7f16..b2062e4cbbab 100644 > > --- a/drivers/tty/serial/amba-pl011.c > > +++ b/drivers/tty/serial/amba-pl011.c > > @@ -2384,10 +2384,7 @@ static void pl011_console_get_options(struct uar= t_amba_port *uap, int *baud, > > *parity =3D 'o'; > > } > > =20 > > - if ((lcr_h & 0x60) =3D=3D UART01x_LCRH_WLEN_7) > > - *bits =3D 7; > > - else > > - *bits =3D 8; > > + *bits =3D FIELD_GET(0x60, lcr_h) + 5; /* from 5 to 8 inclusive */ > > 0x60 needs to be replaced with a named define! Fixed locally for the next revision, thanks! -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com