Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp449548rdh; Thu, 26 Oct 2023 06:48:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHq65hYgSDULFmXKaD0ffuYSointcG+omaF4A2MYhH+0Pd5hDFUYRRNADGUz8M8fEP5DY/u X-Received: by 2002:a25:f621:0:b0:d91:1296:947 with SMTP id t33-20020a25f621000000b00d9112960947mr17272776ybd.40.1698328117136; Thu, 26 Oct 2023 06:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698328117; cv=none; d=google.com; s=arc-20160816; b=qUWUscclES6dvXFza6vzmE+NWxU4qRu9LgpSt265LcBDsp80/ol7zP51O+qHWmbE2K OAQUqWA/z3E08OH7VmknHLQmuLx5a/AvIk0QWR+ScbRAFg78tmCsC6M20jvCtntUIKfe g0F32/IDP87YUV77BXQwt6IWoMQV7Vp8hl47vqUOmieGUfMFc8uyatTVkX+K8WkmsFKz sJ3emnpvDjBamfDRxtofv7kz6+A75wt+tE5zGKZUjWhh/GjCVbELBGERmU7XNWAHi8DT 9yY1RaTXgZrMHxnSmy4nbiQHEmFeZ7+bQ2RwRtp55GTTTFQ6E9HE2uGsNfqbu/v9MrzJ h4Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1S/Bb/tPpH94M8WXhMx2lGTSS2CQLvVdb8TajQ5C6MI=; fh=WC25YkHVXFyFZGLDpSec/k1npyxIOZp/onocOUfguWQ=; b=bv6EBWzYwGTNQ3TVdN10Ko8kDegT0m5x0P7TAl45/gsrKpsYNILygDa3BOw3SNE+NW 8JU8sStLZM8WINYlsBUEuTg0Fg0N6HylKLJz8Mo7OI+av71K2ghkEL6X8nyIQMy/aBah 2DQpX/UDBL4RkPPyJb7zWEnvaxLdEYWjDVyaGbbLVEyygD4VAyok1DPUu5kniWFzFxgY UCg04E7fCztImuT0u5iARle0iwt60ffFjUFccAFn2RD12MFdslYjP5ZtujUhDASewrDZ Jq5YR+5/DNMGB/UlSy30sFlc9XhrojysX6+2rNrGf5gpXCO+nM7jAejiq4Vfujdeuxie P6eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DSJhD4MS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j129-20020a252387000000b00d8180cf6264si14223629ybj.306.2023.10.26.06.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DSJhD4MS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5655B817C1FE; Thu, 26 Oct 2023 06:48:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345060AbjJZNsZ (ORCPT + 99 others); Thu, 26 Oct 2023 09:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjJZNsY (ORCPT ); Thu, 26 Oct 2023 09:48:24 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A0F8BD for ; Thu, 26 Oct 2023 06:48:22 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-d9caf5cc948so686954276.0 for ; Thu, 26 Oct 2023 06:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698328101; x=1698932901; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1S/Bb/tPpH94M8WXhMx2lGTSS2CQLvVdb8TajQ5C6MI=; b=DSJhD4MSKTR/G/8XCL+a3ONUPgnwMLz+/q9C4g+A52CivCDNXLHose+ro5t0/GpHeF m8kjq/Imh1km2mx3bGWq1vLe2kCc2EYvcgNpYjrFvkqmmaS9PAwfFDUxJr2FCA648b6O yi3WGaiM9Fa77SXeaFVKOtKgMJfLYtbw6EhqwFBRRszd5g1ZzTuLuu909J+Q4fKA0OFQ o4hjt1OSt6/pecVsySPLWFAKLJo0zcVYJ0/GivjFh1LpuMlWM4/2lqa627zWcsIKSIcg zAnfB26VJXy7JUHqPYM1C2GE1gQtpNKXUQGiHkNVVfRrAYSmRkdnSXuDaLQ3UnF3DsQI 5jIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698328101; x=1698932901; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1S/Bb/tPpH94M8WXhMx2lGTSS2CQLvVdb8TajQ5C6MI=; b=asu2lvwcVAY2xK0yrxar1HCpwjesTx72DU3wD0d8cgrytCyvJd0EgUjSx8bd/s+G2l PDDAGCvbuQj+52v6Qn7ys1WX0Es+pnbbIsxrAalnjGNxNZUEN/K6IcVuJsvY2T83kE8L 3EcjatIyzXYXd//2PoZrgmJuDu0eTDoOV/posPA2+V7kJTjCqBjDuF0UAFwm/2K+3xf6 vYuId8O5WYPPsOxMLUCKObUonnKhR9yPHRk5sUJtybdqhYJvWWQlaz0J3oRpY6iO4Nlg rGMcR4t1WmvvxYOVXiwRkIzukgYoc9/EVmadKRj7WtOAuALhkjUvCxK0lACgHEr2dvol k7aw== X-Gm-Message-State: AOJu0YyxmQOelrcCS/D+hDU1PTbnJSa37FpVpYgnukifZmZixu8KPPLZ N43sVdOAN0L/h64mhW4M+/VoTeugor937JcZqUSuvg== X-Received: by 2002:a25:4c1:0:b0:d9c:aa17:2ae3 with SMTP id 184-20020a2504c1000000b00d9caa172ae3mr17257498ybe.64.1698328101477; Thu, 26 Oct 2023 06:48:21 -0700 (PDT) MIME-Version: 1.0 References: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> <20231026-mbly-uart-v1-6-9258eea297d3@bootlin.com> In-Reply-To: <20231026-mbly-uart-v1-6-9258eea297d3@bootlin.com> From: Linus Walleij Date: Thu, 26 Oct 2023 15:48:10 +0200 Message-ID: Subject: Re: [PATCH 6/6] tty: serial: amba-pl011: Parse bits option as 5, 6, 7 or 8 in _get_options To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Russell King , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Gregory CLEMENT , Alexandre Belloni , Thomas Petazzoni , Vladimir Kondratiev , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 06:48:34 -0700 (PDT) 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 configured > 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 Yours, Linus Walleij