Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp473604rdh; Thu, 26 Oct 2023 07:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbej6Z+9iSBXkes9/KtIy+sfeb9DinsLLHr7DIzRDnNYfAhHquQzASXCFhxPrOL7Go4iis X-Received: by 2002:a0d:d694:0:b0:5a7:b893:6f64 with SMTP id y142-20020a0dd694000000b005a7b8936f64mr20397867ywd.16.1698329952215; Thu, 26 Oct 2023 07:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698329952; cv=none; d=google.com; s=arc-20160816; b=QoPihVMTqkEpzGhqtKgQK3lUhJayxP8EciTpzr7ICQHQM1nIw5gZ7cxpid6jSFnBtu Xt37kiO4To+Mhvydxedr03LOXzoY6DqIMPwQZHH2UZPCi1scXe0QpARf+Y9lo02hEEiV nZ1zwiDKJojkfIv4gklmztUV9HtEuPpeCKmlHWMQ4PMec/fWgl8/BrbP0OM+7GBoIjDg +P91Lw9YFW4iBZsR2/S8AzaPDHJNCue7NYuPsIEhjrKfIkjl+HACw2o+aCMOnGF65HBK JpDmYk3zulW41I9v8ArCRn9M+yIU3LUqBJCv+okMrr4h9l6hh6CoqBLu66Ym+SiDgXyO OtPA== 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:subject:from:to:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=NpvjpaWtzMB/CtrOWZk8LM8Ct/Hhoy84K2WxkxvwHDU=; fh=Y4IAzX18OHJMW5FC2/qWq6kjea3XOZiy4wP2tIzbQgs=; b=AWDpbg0b6wtU8bV6+vpJTXV2rT6h/5tK5kl+vXE3/ezdX5HGwrFPpSIxErjjuiIRCE 7m0JvOB6VHMK1Y3URwGAQ8YXPXEkyF2mjrUIiDmImWVu6gImFCiv7KMYnDqiI8CE3/AG i39lI/zsWvfFDPZujlre53WjwzD9TRRlxDEPp2REDXDsHGmyUDkYQmdj1da+k5ViADh+ VO4h8twZpaTSRrNSbuoCEwrihLHBxyLX88BTarReu24xoN1SQgW13Y4NY8K+vcmMIuBA Z6ulhreZ49hcm385keqfcoP4C56Ksymr/Jfse/zQrLhWr8n/jmGoxKCyBjVDCCDjiEMh 5vKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jcu6Btyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t184-20020a0dd1c1000000b0059581551d3fsi15634322ywd.412.2023.10.26.07.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jcu6Btyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7A02880D6519; Thu, 26 Oct 2023 07:19:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345161AbjJZOSw (ORCPT + 99 others); Thu, 26 Oct 2023 10:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjJZOSv (ORCPT ); Thu, 26 Oct 2023 10:18:51 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DEAE1A2; Thu, 26 Oct 2023 07:18:48 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 19B2A60011; Thu, 26 Oct 2023 14:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698329926; 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=NpvjpaWtzMB/CtrOWZk8LM8Ct/Hhoy84K2WxkxvwHDU=; b=jcu6Btyg2XCxUpJBhXuU0SAC8lWpnX1XFst/tYghkn92ma3+5y+Z3uQ/rwtlbO5eaK16pO RGYm9rwsuLJww8ic7v9RY5m0O7AQN7P350ZFEt5dStb1RR+nxVhISF+0/eh7+2oa/d6/W0 yT3/p9lddwAnkniLBHjOP5HPkNw6yW4gccZORnZO5xedxrqCguUneK1dTvu2rLpIMrzZuj 1DXCkwmfw7n8VxVe53EL1a4dT/yC2EdfHywPMvDTGWwKc7CC8pJM+v/eNPZ8mcS4PiPvZ7 /dLGtzPtAQ7Dr0qZpPVmvDoY1U/EWQQNAp4d/lACmeHuJ/fLNUx7munpfFdB6Q== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 26 Oct 2023 16:18:45 +0200 Message-Id: Cc: "Russell King" , "Greg Kroah-Hartman" , "Jiri Slaby" , , , "Gregory CLEMENT" , "Alexandre Belloni" , "Thomas Petazzoni" , "Vladimir Kondratiev" , "Tawfik Bayouk" To: "Linus Walleij" 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 X-Mailer: aerc 0.15.2 References: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> <20231026-mbly-uart-v1-6-9258eea297d3@bootlin.com> In-Reply-To: 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 07:19:07 -0700 (PDT) Hello, On Thu Oct 26, 2023 at 3:48 PM CEST, Linus Walleij wrote: > On Thu, Oct 26, 2023 at 12:41=E2=80=AFPM Th=C3=A9o Lebrun wrote: > > > pl011_console_get_options() gets called to retrieve currently configure= d > > options from the registers. Previously, LCRH_TX.WLEN was being parsed > > as either 7 or 8 (fallback). Hardware supports values from 5 to 8 > > inclusive, which pl011_set_termios() exploits for example. > > > > Signed-off-by: Th=C3=A9o Lebrun > > With Ilpo's comment fixed: > Reviewed-by: Linus Walleij It's been fixed locally. Thank you for your review Linus! Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com