Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3733258imu; Fri, 18 Jan 2019 16:25:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN4nqMV80OiBH5VLSOm0e4Liw4t7G896O/R3JXzdIY2yTOy8QhOoV03xGgrPmnW2R4D1mYBU X-Received: by 2002:a62:f54f:: with SMTP id n76mr21504527pfh.59.1547857508427; Fri, 18 Jan 2019 16:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547857508; cv=none; d=google.com; s=arc-20160816; b=yk+hIQ+Ci3s0/ogIZ3TLjWPm4xHY4wxg/DshTTQsM59ZOFjtX6Vtz21/AbwvX4gGkf uhOsLd8Av3i/kvlCS74mxEhRkUhZY9vVepEnkfvRa9glZMQ55wAiWsDEByBacPsg2CbB 3A/udnQaluhBgPae7WLiJAb2dz+K2dB9ad0M0vchi9pHXWiSQNxp2t5SN6w1f6m2q1I2 l0RpfvToTEiS406xY6V6WqhZaImZue7CSk1zecD4ORaaWR2iglIMIvrL/bYqoLz2dN4X FLdXQg8+QCyW5GJaYVZ6lyges0VGo0LTKxP1/HuSxJNyGUCsGCkwtxKknV6p9ey8Kjyt bHOw== 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; bh=U6jXTWszmCpJkD8ympfWKx7s7ZDO5iBFmCrslgGV8Ig=; b=SuBhLodOQ7Ai1Tk68XxC63MjjUGzPhr6NvCfuIMumiHTY0B1NYuzkJrMyBgtQPWQk6 VaRN6e81vYTTARZP8hxfRaPJQIT5z360zDpZLHvhKKIKjLxSV4l4srMYmOKJ+X8PQs4z WiOufMDw7DL9SS0nEMwUDS3ep6qXAVy+DffDrkFKY1sTTWUPfInl5DiqZZB8HOOvDRra 6m1EskcAOpDnivrYb7CowethWodrodGqg3/wICFOnMRvWXMGBlxVIViCVAsR6ODfZme5 /5oO9IMMHIUw+VPX9PtfIhooKJUoQgUDJAKTQQkEObt/i4mAhwlTNALyVHRsNgeu8Pie VtHg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 f9si2590993pgc.85.2019.01.18.16.24.47; Fri, 18 Jan 2019 16:25:08 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730183AbfASAXZ (ORCPT + 99 others); Fri, 18 Jan 2019 19:23:25 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41071 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730114AbfASAXZ (ORCPT ); Fri, 18 Jan 2019 19:23:25 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so7355170pfi.8 for ; Fri, 18 Jan 2019 16:23:24 -0800 (PST) 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=U6jXTWszmCpJkD8ympfWKx7s7ZDO5iBFmCrslgGV8Ig=; b=W61B2/s6rTHyBVPdjS/2SBLHEvu8nphScE5E2tUIXd1iaWxJz0YPlq5Y+gaVpITdIs ARa1rXZ9+4edx9MvHxQodYjI02SSNVrIVsecT+FCAnqoHTWp+Pelcg/We9gNwiBjRR50 R1lIvadKQ0vfSOPKGpWb22RvIxtbpOQzbEfVKmP21uW/I0twiQh6vMafX3r7BNdSV/Et jhYU24Vtl0OeuPkgI/7Tq1Mrsx0Gosr4Z7nFX0+3ilmqJZ3izdrUNT//hGZZ/hGtlUqU xEK4EvTGv+MgOFOrsXLGpv8SScozv3BWVRXXCg+Xy4t6jaSsQf2QpkaGFggfYtzqOZxh w3mA== X-Gm-Message-State: AJcUukchUI2ulyi5sHJGuQGpaYlezd/1FmEfH1K4zorkd+StH9dytBfj f6ZnHtv/PQIB5AlQtZKQN9wJAw== X-Received: by 2002:a63:1258:: with SMTP id 24mr19582149pgs.114.1547857404107; Fri, 18 Jan 2019 16:23:24 -0800 (PST) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id d129sm13763062pfc.31.2019.01.18.16.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 16:23:23 -0800 (PST) From: Matthias Kaehlcke To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Balakrishna Godavarthi , Matthias Kaehlcke Subject: [PATCH] tty: serial: qcom_geni_serial: Allow mctrl when flow control is disabled Date: Fri, 18 Jan 2019 16:23:05 -0800 Message-Id: <20190119002305.16639-1-mka@chromium.org> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-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 The geni set/get_mctrl() functions currently do nothing unless hardware flow control is enabled. Remove this arbitrary limitation. Suggested-by: Johan Hovold Fixes: 8a8a66a1a18a ("tty: serial: qcom_geni_serial: Add support for flow control") Signed-off-by: Matthias Kaehlcke --- drivers/tty/serial/qcom_geni_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index a72d6d9fb9834..38016609c7fa9 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -225,7 +225,7 @@ static unsigned int qcom_geni_serial_get_mctrl(struct uart_port *uport) unsigned int mctrl = TIOCM_DSR | TIOCM_CAR; u32 geni_ios; - if (uart_console(uport) || !uart_cts_enabled(uport)) { + if (uart_console(uport)) { mctrl |= TIOCM_CTS; } else { geni_ios = readl_relaxed(uport->membase + SE_GENI_IOS); @@ -241,7 +241,7 @@ static void qcom_geni_serial_set_mctrl(struct uart_port *uport, { u32 uart_manual_rfr = 0; - if (uart_console(uport) || !uart_cts_enabled(uport)) + if (uart_console(uport)) return; if (!(mctrl & TIOCM_RTS)) -- 2.20.1.321.g9e740568ce-goog