Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5981611imu; Mon, 21 Jan 2019 00:48:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ifw2AjNbjg858GKEu4sUNydPC2JfDMUNlorLVbbeWFvGhYOZIJAdLMBO6ToxR80ViuyJ5 X-Received: by 2002:a62:9111:: with SMTP id l17mr28909458pfe.200.1548060533268; Mon, 21 Jan 2019 00:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548060533; cv=none; d=google.com; s=arc-20160816; b=EhLDJtHoKesSzJU28IO7c3X003tJ32JJEEjAGdUNTwHFuP2hBTivukYzfbzi2iv79C IG3RtC4hbXhjeW0lLyx9jk4lvbpbPhydJL2nJ4w0B+x+ArIslYf9prKrto0HRy6o5oTC iQmwDrCayijfv3aFxqvsuvDXNoF86INpv4y0sf72UNHAOV8ra+Ps3r3uEddCadLOlYtp F2xdfktDCasz4gYD/C5otbnJe6Sr71Fdbh3pvaIqqg4iK69xFgklcR6NYWB/qnVTjCWm TKGxDKN+JU/Ts8AW6el4LnyRUGPwPes255zal63H6zxHw1QeFi4ioUxHWpAUGzTDz3Jj bcjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IGHnVyIupfMKHeMrNxr37ORjizpqDC9iPIfLKClcFEM=; b=ibGQo+lVVrOWL5LGbkttyeyVnwIDgf1EDEvdmqbsLSO03TrS9WuqoJMPka8gWeS6b3 uQgNv1AiQZjpTz047bpaYWN0UkOWpcpVGC/RMt0r7vkwQ+XW2f3OPiXw7G35v8r0OyIJ JZIBKN9KRf6mkrJy/6oUDVBEFEh1Cv0tVTOdDA+10X0NhG6OspPIRGS2oGjEplwaPxLc mciM5EEiwWkTQDxEhYpJRvOIb4vzLLX5CQg0YaKvgABkyDz0S9sHwbJi8JpCmb/6VvM6 ouxb6QlyQVvzwxrZGlzIpGbx+IsSho0FMTYCCDrtlewLKaUN6zfcEg5QwfMJr3V+DpgS ildw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si10537579pgb.97.2019.01.21.00.48.37; Mon, 21 Jan 2019 00:48:53 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729545AbfAUIr2 (ORCPT + 99 others); Mon, 21 Jan 2019 03:47:28 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41049 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbfAUIr2 (ORCPT ); Mon, 21 Jan 2019 03:47:28 -0500 Received: by mail-lj1-f193.google.com with SMTP id k15-v6so16772454ljc.8; Mon, 21 Jan 2019 00:47:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IGHnVyIupfMKHeMrNxr37ORjizpqDC9iPIfLKClcFEM=; b=Wr8WkIxGo6WnPjki09ejj67aihSonPZ+R4y800w7uZZWpPNe7iNskHWPWy/FKa7TVV BIOprO8EXfzaieE30VctTr1aJEPyhr7tbCViMVD1btqv8+4CDcXIof2J/Lx1Lr/BQDIl DsCLUcMH0brAy41v0IfBzATouYsRHAYFmtPnGgJj743O+dGn7sQ0h/Fv3NpF1eGYoEAj CKeEFS0J7VR0Xb0rRJ3oBcjyPoOMGA1V2EhIA8M8A13x13uhisrWb795fDbAjOrES6Yj uWXxBHTY5sHt7QrOWG+SwOUa3Kz3FZ8yge0jJptTYfrVYZWX3qED+hh7LOyWYwQkAZWj nE1w== X-Gm-Message-State: AJcUukf/X/TO5DLKbCUijaoQfMLMeiQxG22n8qHJwjyrfp3fmIYZWBSD x0wgs1ezOGrr8Ve/qX9//ao= X-Received: by 2002:a05:651c:14e:: with SMTP id c14mr16726298ljd.20.1548060445922; Mon, 21 Jan 2019 00:47:25 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id e97-v6sm2191383lji.51.2019.01.21.00.47.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 00:47:25 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1glVEl-0000Mm-QZ; Mon, 21 Jan 2019 09:47:20 +0100 Date: Mon, 21 Jan 2019 09:47:19 +0100 From: Johan Hovold To: Matthias Kaehlcke Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Balakrishna Godavarthi Subject: Re: [PATCH] tty: serial: qcom_geni_serial: Allow mctrl when flow control is disabled Message-ID: <20190121084719.GF3691@localhost> References: <20190119002305.16639-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190119002305.16639-1-mka@chromium.org> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 18, 2019 at 04:23:05PM -0800, Matthias Kaehlcke wrote: > 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 Good to hear this was all that was needed. There don't happen to be any publicly available documentation of these registers? > --- > 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)) Ignoring mctrl when the port is a console looks broken too by the way. The driver parses and handles the flow control parameter, but these conditionals later overrides it. Could be fixed in the same patch or in a follow-up patch. Either way, you can add my Reviewed-by: Johan Hovold Johan