Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2485019pxa; Mon, 17 Aug 2020 10:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1NpIie8KBDoj++iEnjz+z/GSblhqUAl6goUdjTc9CQXjRh+QK0WSHSe3AQrzNCYsnDher X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr16816505ejb.550.1597686275204; Mon, 17 Aug 2020 10:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597686275; cv=none; d=google.com; s=arc-20160816; b=hU6t2Ey4Bt7n3qP1/nYZJY0atdMRA7SmRI+/XYJgTIavA7fRYlul7zsCQa0y+mX/GR cOgOyZVejEcQT/xXP0GLoxU6nhU3YvBk+ZtsSWPvjDGzFjMmfCD2ejySZXirSH5LbGsY N6WldRY67Fo1tUMOcLZXCT+t1TAW7A3o1QmwcjufXxwJcPCA1tngUvwgGRQq3GsqQnrj GEr6ojaMHJsLOMcv0Twyfnulua+QHhZW6XObi/jVqUy3qN19duM0X98w90ppPOgwokAr ZdtklrNEEs9IleurhvlzMceQA2oZWlr1jIf8X9rxO66YPEyFx7PnvimWxvMkoQ+zldmk st0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=dOiaQirXBI3rQ6qT+kTTGtB6bOoUlvCJmrcPgoAcFag=; b=eZ3xVGeEtpEDA7ug1BzSHPzoGHz2GexQuewmU9VkNQoZ+8M+tAQmJqa+wYfUSoT4FE Ibz8k2mFaPtmyCVF3BLCy6oHtm1mSRGu61RRnYuCyIX3W5lDXeRqOkCJM44ens0SSnxW Gmspkc8tH1+dfu3sCORRIm/Jh/TYsOYA3qJz9Ur4EA2d1Sb422pNza7HRNMaCZQqsZu9 R6/V/pWoHzvqJqmv5i6WWR6OgliWmVj12g34Rer2OLi23HDyEJ6klaJjN2HzYrBKllrh 3tbC2Ty7cS9/O03O2sSea5S9Y9FgMizPFWPHuGGJ4eZw42an3uaR7d1t71JncLPFfLVk i6Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GXqhKU6Y; 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 di7si11720815edb.220.2020.08.17.10.44.12; Mon, 17 Aug 2020 10:44:35 -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=GXqhKU6Y; 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 S1731528AbgHQRmp (ORCPT + 99 others); Mon, 17 Aug 2020 13:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731544AbgHQRm1 (ORCPT ); Mon, 17 Aug 2020 13:42:27 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BB20C061342 for ; Mon, 17 Aug 2020 10:42:26 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id m71so8584013pfd.1 for ; Mon, 17 Aug 2020 10:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dOiaQirXBI3rQ6qT+kTTGtB6bOoUlvCJmrcPgoAcFag=; b=GXqhKU6YA+o0z+HzDuOj1wrYpCBvfRBexpZQHyS0GUUx+GzyM0VfexnpuHmqXovRgw ibR94ySpDu1Mvk8/yRLNFsBhOkav76Jd3gAqNGlw86D9WuzxNtPswfqjrNle6Cw5BONA //OPKcywsNON0CBA0/EzKmHeffwzlRuvDMuBE= 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; bh=dOiaQirXBI3rQ6qT+kTTGtB6bOoUlvCJmrcPgoAcFag=; b=TeKitIB9+9YheE6ZkqEEmSfewxb7H8SoVo1iXkXZK6EL0rb4kn5BhcTOot4miM4qv1 9mIuJMl6y5t0cwSTH0FQB5Vm5vUPjNBUMNzTb7AteLGO7px5RqZ5HKi6vW+Yjlxooarh HdZYdhj0hO+vU9RBh6VyDirTzlT5dt2XqvLnxp6wUe9bUHwGPJK/EOOFwAA9ZYugX14F F4oGGSGPANNxDzaOFu0cDBrkRgsiUT14KGyb3p/uegtllvjYKuLDmIDLGo6Lv+R5aYxU RYZijBYHDiSUqjGWWzEFtkd44nVD91s5KHSOfESrJjN0v60SouS8SAsRGV2/3VpJM1vv 9oIA== X-Gm-Message-State: AOAM530NgCtCaU52ccwJpYoFNbW1+zJ0xdGqZCzxar8oQVZxO/7VsinZ MykC5G0gkCQ3Lfr6lXbaCcB55g== X-Received: by 2002:a63:7a06:: with SMTP id v6mr10410151pgc.441.1597686145978; Mon, 17 Aug 2020 10:42:25 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id h1sm21195366pfr.39.2020.08.17.10.42.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2020 10:42:24 -0700 (PDT) Date: Mon, 17 Aug 2020 10:42:22 -0700 From: Matthias Kaehlcke To: satya priya Cc: Bjorn Andersson , gregkh@linuxfoundation.org, Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, akashast@codeaurora.org, rojay@codeaurora.org, msavaliy@qti.qualcomm.com Subject: Re: [PATCH V2 3/3] tty: serial: qcom_geni_serial: Fix the UART wakeup issue Message-ID: <20200817174222.GC2995789@google.com> References: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> <1595563082-2353-4-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1595563082-2353-4-git-send-email-skakit@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 09:28:02AM +0530, satya priya wrote: > As a part of system suspend we call uart_port_suspend from the > Serial driver, which calls set_mctrl passing mctrl as NULL. This > makes RFR high(NOT_READY) during suspend. > > Due to this BT SoC is not able to send wakeup bytes to UART during > suspend. Included if check for non-suspend case to keep RFR low > during suspend. > > Signed-off-by: satya priya > --- > Changes in V2: > - This patch fixes the UART flow control issue during suspend. > Newly added in V2. > > 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 07b7b6b..7108dfc 100644 > --- a/drivers/tty/serial/qcom_geni_serial.c > +++ b/drivers/tty/serial/qcom_geni_serial.c > @@ -242,7 +242,7 @@ static void qcom_geni_serial_set_mctrl(struct uart_port *uport, > if (mctrl & TIOCM_LOOP) > port->loopback = RX_TX_CTS_RTS_SORTED; > > - if (!(mctrl & TIOCM_RTS)) > + if ((!(mctrl & TIOCM_RTS)) && (!(uport->suspended))) Why all these parentheses, instead of: if (!(mctrl & TIOCM_RTS) && !uport->suspended) ?