Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp411474pxk; Fri, 11 Sep 2020 10:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaD3oXvGbEsMPKku8XxfQn/UN5XOk6J/x7EdyD4yQgFtEDv8JjzKrw1OhJeUu0E9avjySJ X-Received: by 2002:a17:906:8245:: with SMTP id f5mr2830415ejx.264.1599844173866; Fri, 11 Sep 2020 10:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599844173; cv=none; d=google.com; s=arc-20160816; b=QYW+IDi5oUa2YUAw80acIPouNCEWr6VNnqdMTeFpfQg9jo0KLRqaXVOcko7gyNNNon lswLyKlrXqoePx+qc0WEnmhiW86qyYkEx4hQFlS1TPYwWzUp9DDvWqA+zBDNMQYEKtS7 qfN/XjUAAWCjIom1jMFFzQdMP/lTJXsntuDFFWs/P1oyE3AycgEWd0SpcaPOxEN4nSbz b2neLnuntJPWSa0PanbdOMgVu6T5J/EfgHXiZ18OqNSr4+Xx4zrOjCBajdXkRtZ/jmQf wd2Co/tzMIc/PrXksLOTvZr/Bq5ia3gkRkz1gC2M3rSHpoNZb5KrNcp1ZKIoDSdDkCwg o+Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AFJYLvWtKd0gWhl3s1dZJrARfNTei6xcNX2ZyXTTyO0=; b=fXrQMCQLg1tQRW8LiZ/VoQvIwxqU0I1CVIzVl8dkzZKoXHCdVs1xDGymkDpdQG9OjY 55DcX9xi8aOtxml3bkFNbu8k3IMMxpZeu+RFd10Ud9MfAjuH5oAEMM9zf3gLlot4PQdP q94CNgCzlwZ+wB27ygY4tQ7xgxLz6TCOuSv+jIWYJ/ALUVGf6RTJp1i0HkfQ6LE+vFXw SZhG0QgrjCvkEhrhVFxULpyx53RLHae1m8Yl8XjJ2OTcXGbhCrJTSDbrlh8lemuzZcQy ilF7VFDFtIs8kfjVrMkYhLrZZZ4GNmHYzMqRowndnLbui1A5OPO+R7aMIdHhBblrT1kj 6lCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IpnVtLgd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si1675665eds.454.2020.09.11.10.09.10; Fri, 11 Sep 2020 10:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IpnVtLgd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbgIKRII (ORCPT + 99 others); Fri, 11 Sep 2020 13:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbgIKPCE (ORCPT ); Fri, 11 Sep 2020 11:02:04 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F414C061363 for ; Fri, 11 Sep 2020 08:01:26 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id o68so7684325pfg.2 for ; Fri, 11 Sep 2020 08:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AFJYLvWtKd0gWhl3s1dZJrARfNTei6xcNX2ZyXTTyO0=; b=IpnVtLgdVGxhyuhCaS3cPthT9iWbMsqXgb/fu9cWcyRQ9WBj7UKn73b4/hSmaDNGdT vbToscSU7CgC3GpktUaHD1tHLwWiHiumDKkD1k3t6SGJNRVP5UsQYkKbEqb1wCTOYpTj Sv++5PX7M5QblxUKx6v415lGt6T8zSYIy8yNA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AFJYLvWtKd0gWhl3s1dZJrARfNTei6xcNX2ZyXTTyO0=; b=DwqjJ4iq8AGjsBR32JtBAybMZd8KbucVdZ8k6L/zfrYeSX1jNWofz1IwpnlSiBOFDo qIlAYGA8nrRXxwmuRJgyxdlAh097VnzPf1RnHqZgOfu+4Pvp82ce8/WsgPep4DWaFZUk tHweWyxbKi7GidbMlRlCpPUCWC6OU14ppvsT/Jbn2R28tjrLiFa7ys0g4cw9Pxdq1x1C o4FeKj8BSrFUdewraUzJJ7NeTcc6dl2Glg4RvYWDlF8gsrejmhb1KdVf8v/4gf5SOc27 6Q765wQEIANe26TQYbixNIhAwDGCRyHWfglXWwqWfN2uwK17tgSQh4/E9knRYWW+XGa2 4uIA== X-Gm-Message-State: AOAM531Y7cE7906FO3n5Rz7WTKfO7RyJ9RsdPamea4nHlyBxlpUaPhWt xCRmiGz7ZycQgy7+JyRw/MxArA== X-Received: by 2002:a17:902:123:: with SMTP id 32mr2248956plb.143.1599836486326; Fri, 11 Sep 2020 08:01:26 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id v91sm2657228pjv.12.2020.09.11.08.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 08:01:25 -0700 (PDT) From: Douglas Anderson To: Greg Kroah-Hartman Cc: Nick Desaulniers , robdclark@chromium.org, Akash Asthana , Nathan Chancellor , jwerner@chromium.org, Douglas Anderson , Andy Gross , Bjorn Andersson , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH] tty: serial: qcom_geni_serial: 115.2 is a better console default than 9600 Date: Fri, 11 Sep 2020 08:00:57 -0700 Message-Id: <20200911080054.1.I4c00b921c2f17b6988688046fa7be0f729f8d591@changeid> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit c5cbc78acf69 ("tty: serial: qcom_geni_serial: Initialize baud in qcom_geni_console_setup") fixed a bug by initting a variable that was used in some cases without initialization. However, the "default" baud rate picked by that CL was probably not the best choice. The chances that anyone out there is trying to run a system with kernel messages piped out over a 9600 baud serial port is just about nil. Console messages are printed in a blocking manner. At 9600 baud we print about 1 character per millisecond which means that printing a 40-byte message to the console will take ~40 ms. While it would probably work, it's going to make boot _very_ slow and probably cause the occasional timeout here and there in drivers (heck, even at 115200 console delays can wreck havoc). This has already bit at least two people that I'm aware of that tried to enable serial console by just adding "console=ttyMSM0" (instead of "console=ttyMSM0,115200n8") to the command line, so it seems like it'd be nice to fix. Let's switch the default to 115200. Signed-off-by: Douglas Anderson --- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index f0b1b47c3abc..e390ffc8bbbd 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1107,7 +1107,7 @@ static int qcom_geni_console_setup(struct console *co, char *options) { struct uart_port *uport; struct qcom_geni_serial_port *port; - int baud = 9600; + int baud = 115200; int bits = 8; int parity = 'n'; int flow = 'n'; -- 2.28.0.618.gf4bc123cb7-goog