Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp478867pxa; Wed, 19 Aug 2020 06:51:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw55kwoc0idrg77a12j33USh0+u4PzMHUlgsi3bEYtU88KLCDOL7xPaCYoGsujvJG6RzKeU X-Received: by 2002:a17:906:aad2:: with SMTP id kt18mr26262162ejb.537.1597845078848; Wed, 19 Aug 2020 06:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597845078; cv=none; d=google.com; s=arc-20160816; b=0J+n0cRry4lk22ir7kedwuipkbnEgSjtQA9yHh1EkGHcPV/kiWSDGGZnAOQ/27Qzsy Sya9INyahgfc0eLqF9hequGZFsd7OquNlh53uSjk6S/g+FAMyknCHuCjVF3VtjAgYTbO XHdss0/V+U1fzW/7zrit9xD59qqLGIumbYm+AtqD+2zDbOukiutf19KG1nSYQ9o379VV O1Pr7RSFvsya1SaPO7foV+IRDULE7bXKBQaQoqoXQpopGEjhX7kxSA4WYhoBjZqO6JpX 7FFuVCGao5sYPYLMEpt32QdKKws7sBhxuGeZ9mj0QJ5D87maaRbr1W+N4c7VyztCrVb/ 82kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=3ier2e5oiSo0MfEVkuwaJW7VejVfgmvvXdzzCytsEoM=; b=HsrGeolcMFAuZjRgCwAWMyJdBIhrO1H72Mw13FwIREKx096RquvcDAUZGF0NXIg2xK GrQ8u0jC6Z8IEM7EstHMtQH7ORa2okZ6vTAl0ed6ymf549dV8Qorgf8a0Z0SLm4ht0wh nXwm2ntqHF/KSLJwva2j5nmWFKpAdGsu0PkJKxJpyc5pdk382urUhhJYlXxXjfhNR3HR iBbJn6r8pmUwAuRi1FuWZF2QnqH0b14/WY7TNKSBBHMX507mpmgz22auTJCie7stxmWp kPEVb77qSwf7yM7N215w7Hv/LQc6nlfkZoHCxF2oIP/uRHsMtiDixGSDsP8mIyGGuMD6 W+yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=HDd9GRRL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si15064807edr.531.2020.08.19.06.50.54; Wed, 19 Aug 2020 06:51:18 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=HDd9GRRL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbgHSNuJ (ORCPT + 99 others); Wed, 19 Aug 2020 09:50:09 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:29735 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728509AbgHSNtu (ORCPT ); Wed, 19 Aug 2020 09:49:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597844989; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=3ier2e5oiSo0MfEVkuwaJW7VejVfgmvvXdzzCytsEoM=; b=HDd9GRRLgCpiKlVpRtVek4cFbx6TtyjDkcmTi/8UXOSq8+nYOJlmMggqqljw8bZnxv6S8qva 13g2yVH43tqHcrFR13RPQLnl9jg3l5+HKkJGp3/BhhTjXRqbI2zTICSMVvWBuqc8wITXlpXg ahoDNqToomkh9mN4gbGXbu+bgUA= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5f3d2df56835ad600b948283 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 19 Aug 2020 13:49:41 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A8CD3C4339C; Wed, 19 Aug 2020 13:49:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id D8E59C433C6; Wed, 19 Aug 2020 13:49:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 19 Aug 2020 19:19:39 +0530 From: skakit@codeaurora.org To: Matthias Kaehlcke 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 In-Reply-To: <20200817174222.GC2995789@google.com> References: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> <1595563082-2353-4-git-send-email-skakit@codeaurora.org> <20200817174222.GC2995789@google.com> Message-ID: X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-17 23:12, Matthias Kaehlcke wrote: > 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) > > ? ok. Will remove the extra parentheses.