Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4373968imm; Mon, 15 Oct 2018 13:45:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62EfmJQDleo0z67s90DiksmTbpC3GmBAbDlqyTA3oWtLVUbdrzubInSXRg9kE80mal+Lj3n X-Received: by 2002:a62:6041:: with SMTP id u62-v6mr10054946pfb.110.1539636334708; Mon, 15 Oct 2018 13:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539636334; cv=none; d=google.com; s=arc-20160816; b=s5qYKEZJ2uOjG11WQKJvJcjikqj4TTd3vTASgdZ+gl5z8sLlv4fdZTiS9yfo/6yFPB btvG9SzngKcTzRaz4G/By47WigG+X33iQUC+h5czoBQBNjfkOjU6LRoJ0bGWpS7Qvm25 CLaYnNW0T5Xmmk1t6Mpwavni3t3Q27UAgpjXM9VSfh7JXF9dy3KKHzg5IkSwohO+SXVZ 8WK71A87GyrkUpTMz18YEbWNptdFWae7QzCmoqAJy4+0BeV51vqGxiLd0Rm5rp9w69br 55anJs/dSXkUt+lbT4I/V35YFMYVefPeykkIavGjg37KhkS9Zeo9V14r39rfiaCuC4mj Wfmw== 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=eQMGNDfhm/QbCjUyIYjH4w5gwm9UjkQ3AvQiY8q6jd4=; b=nQNIvir+XSwjnwZxZoK8SFPwE0N1bjKe+eVkxIbruTzVG+iMZiln535N1IYSlaH7gY M+xrZ/fSxKk+Q9RcCe6bx8n0ECFX+qHpBwcyozDe/HKHRrdKKfheRxPrhA/gIQqdLuCC ZsViaUvuGkB8CxKN6alTIKIRu6YFviLpxwlNmhyein4mwfz2UV0ESkvTQR3JToBaYvh5 uadkTxN/G/v2VUcJgwUBCM+oy9XuAvFy2jrtCJ7aDxc71L5UvSq/FAsMprbfDEDK4+3y Y7Zkw3XIRhSmGtA5WyeS5kji3wmF0JxqP0Xkg8OA9V0wiKLMUBmCDux7sbPb5rKbRxUO iv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Vgchs/xc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y125-v6si10962226pgb.14.2018.10.15.13.45.18; Mon, 15 Oct 2018 13:45:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Vgchs/xc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726288AbeJPEbj (ORCPT + 99 others); Tue, 16 Oct 2018 00:31:39 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44480 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbeJPEbj (ORCPT ); Tue, 16 Oct 2018 00:31:39 -0400 Received: by mail-pg1-f195.google.com with SMTP id g2-v6so9703296pgu.11 for ; Mon, 15 Oct 2018 13:44:45 -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=eQMGNDfhm/QbCjUyIYjH4w5gwm9UjkQ3AvQiY8q6jd4=; b=Vgchs/xcn7XdhBYUssm3n/xXwqsMfdkL2IkF0yUYsrrwtlhrK4Vre2yoYBlMmkTN/8 HHx50uCCyJyQ5lAed0UxYHUOzFBnXEG4TsMuYxYTValSsQ5WT72+VMRGOGSEsOB8ifuB rBCJrE8OwDA3hOMkl/uVA+fAFgkJdvHUf/LI4= 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=eQMGNDfhm/QbCjUyIYjH4w5gwm9UjkQ3AvQiY8q6jd4=; b=l1JdmwopxUZBF5v1fmLCppj+XJa5QdU6t621UxjuJrVW40+/JzcIGr/hsZUdMqpiUE qxEwDOdj8FrW/BbAMGK76e1J1kARHPGJgGl4EzNH4S2DUQFiAlkR39m/Ud11RE+/1K3g 3cQNIJi31kBALjYq5JD59lZ4zkJv1fRuU0CIP4z8gGFZqBhV61L3Zy5nGuE+N9M8CGHx LaCVi3gaK5/1ZHYwmhCrpRY8XneRltQgTJAZb6An9H0eAe5wEzceaeAUd4kbLK4DU1Ol grBHBgQEZkwhHL1w/LA6S9qS5XSg1rg7M/78TOGIo+CdL2Lyi1MUCgsg8pIwyA928Kwf qD/A== X-Gm-Message-State: ABuFfogkFY4Fo7gH+s8FLhO7piCNtmaUdCVJb4wKR1dto0kdk4BipZOo UnlXsPe/ZoFLjhEksP2oVLuCgQ== X-Received: by 2002:a62:6506:: with SMTP id z6-v6mr19017676pfb.20.1539636285522; Mon, 15 Oct 2018 13:44:45 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:c8e0:70d7:4be7:a36]) by smtp.gmail.com with ESMTPSA id o62-v6sm14639565pfb.0.2018.10.15.13.44.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 13:44:44 -0700 (PDT) From: Douglas Anderson To: gregkh@linuxfoundation.org Cc: msavaliy@codeaurora.org, linux-arm-msm@vger.kernel.org, alokc@codeaurora.org, mka@chromium.org, evgreen@chromium.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jiri Slaby Subject: [PATCH] tty: serial: qcom_geni_serial: Don't slow all ports just for kgdb Date: Mon, 15 Oct 2018 13:44:24 -0700 Message-Id: <20181015204425.84537-1-dianders@chromium.org> X-Mailer: git-send-email 2.19.1.331.ge82ca0e54c-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 If you turn on CONFIG_KGDB then you'll get CONFIG_CONSOLE_POLL selected. If you have CONFIG_CONSOLE_POLL selected then the GENI serial driver was setting RX_BYTES_PW to 1 for _all_ UART ports. This doesn't seem like such a good idea. Let's only set RX_BYTES_PW to 1 for the console port. Signed-off-by: Douglas Anderson --- drivers/tty/serial/qcom_geni_serial.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index d3b5261ee80a..9ee6ce725e43 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -89,9 +89,9 @@ #define MAX_LOOPBACK_CFG 3 #ifdef CONFIG_CONSOLE_POLL -#define RX_BYTES_PW 1 +#define CONSOLE_RX_BYTES_PW 1 #else -#define RX_BYTES_PW 4 +#define CONSOLE_RX_BYTES_PW 4 #endif struct qcom_geni_serial_port { @@ -853,11 +853,13 @@ static int qcom_geni_serial_port_setup(struct uart_port *uport) unsigned int rxstale = DEFAULT_BITS_PER_CHAR * STALE_TIMEOUT; u32 proto; - if (uart_console(uport)) + if (uart_console(uport)) { port->tx_bytes_pw = 1; - else + port->rx_bytes_pw = CONSOLE_RX_BYTES_PW; + } else { port->tx_bytes_pw = 4; - port->rx_bytes_pw = RX_BYTES_PW; + port->rx_bytes_pw = 4; + } proto = geni_se_read_proto(&port->se); if (proto != GENI_SE_UART) { -- 2.19.1.331.ge82ca0e54c-goog