Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp35256pxw; Thu, 7 Apr 2022 23:45:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE0ayc/ajNpkuk8+8DybayHFDp+7XqTSUMb54QgPr/bi0l4AP7WFueXDw8z/qrnOoinOeN X-Received: by 2002:a17:90b:4a06:b0:1c7:2020:b5b9 with SMTP id kk6-20020a17090b4a0600b001c72020b5b9mr20024885pjb.58.1649400347889; Thu, 07 Apr 2022 23:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649400347; cv=none; d=google.com; s=arc-20160816; b=cJh4JKR9yQYtz+eDR3xN1VG5w5iwdhOrV3S2GLo+x9/NKxs2d7vbYkaais3Km2c7WV SAfanRQC0yCggVl1xr0VxTORiqK6tRyDH9k0am715++FqSUbXJHmnvUCMXwoliV/W4cf BX0hqELIB4M9jJoN0O8lo/kmO7nOIdPDaDAhlaqN6txeu/UCtqPJL6bQFZAoWqhohcY4 sdytxbNhtDVI64JgFg45TnTEVoHq9b1wTeqwwbMao0Be1MCVkDjSYA3gzo2fTj5FqypM dmD2kQLbl0zKOw69C3pAEquCs9MxOxbnR5eO5VMabewh05xcbbbsE9t1Ralsz50LX+T8 Cvbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=68dNn59YCjC6TD6XjImAybXjsyqeVIqyoKPnLWmhy8o=; b=yxsoAL4s5eZXGLq/yqtV560D8HCLENNA0RHYYF16Cd9FNxe601RSqVHOYV5oWxmE4a snosjFWP2l/L0DsfduZKBN6tddGsvd3oPpA1Lm4Q7EhgV66FJfvUgB1LDgY72bix+hz5 0bc8zhGHIFSiM9Y5JupfipHOohslczgOsLXVoNFiqMKcbQJhkzGi0o95HpnzJOebOi9a 0ihkpe2D2kqmf31aonK8RjeYFVsyrFB6/uy97dPnzwjbKQCmIo4rlIxjjI8qnHC/mVE+ r9CGaoBOVIx9j1Z96EHyDUC0W7yQzuPINauhmzsiLSWYthCcn7l/loaeqaGDoGhXVnKP g9wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=iLGwUf7d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r16-20020a63e510000000b0039852256cb6si468897pgh.181.2022.04.07.23.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 23:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=iLGwUf7d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DC2512F6E1; Thu, 7 Apr 2022 23:16:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232233AbiDHGRY (ORCPT + 99 others); Fri, 8 Apr 2022 02:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiDHGRV (ORCPT ); Fri, 8 Apr 2022 02:17:21 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5181115A; Thu, 7 Apr 2022 23:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649398519; x=1680934519; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=68dNn59YCjC6TD6XjImAybXjsyqeVIqyoKPnLWmhy8o=; b=iLGwUf7d+UzilOn9sF3d/rDzFhY5jnwbmFoPNLkwowMCH1xn0FYj+G+8 X3d+6hUy8wWsDyN/MwFLjVDC5cZD2WHY/fGA1RmHLkNDyXp55qWdw1k+U rvgMY2mUF2enctKLB5VOI0qONheNH9UJeI28q6I14IvNRLwXHIDpjjxiY Y=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 07 Apr 2022 23:15:19 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 23:15:18 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 7 Apr 2022 23:15:18 -0700 Received: from [10.216.50.51] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 7 Apr 2022 23:15:14 -0700 Message-ID: Date: Fri, 8 Apr 2022 11:45:11 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [V3] drivers/tty/serial/qcom-geni-serial: Do stop_rx in suspend path for console if console_suspend is disabled Content-Language: en-CA To: Jiri Slaby , , , , , , CC: , References: <1649316351-9220-1-git-send-email-quic_vnivarth@quicinc.com> <1649316351-9220-2-git-send-email-quic_vnivarth@quicinc.com> <0f52c6aa-46be-6971-76df-364150b1c1e1@kernel.org> From: Vijaya Krishna Nivarthi In-Reply-To: <0f52c6aa-46be-6971-76df-364150b1c1e1@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/2022 1:21 PM, Jiri Slaby wrote: > On 07. 04. 22, 9:25, Vijaya Krishna Nivarthi wrote: >> For the case of console_suspend disabled, if back to back suspend/resume >> test is executed, at the end of test, sometimes console would appear to >> be frozen not responding to input. This would happen because, for >> console_suspend disabled, suspend/resume routines only turn resources >> off/on but don't do a port close/open. >> As a result, during resume, some rx transactions come in before >> system is >> ready, malfunction of rx happens in turn resulting in console appearing >> to be stuck. >> >> Do a stop_rx in suspend sequence to prevent this. start_rx is already >> present in resume sequence as part of call to set_termios which does a >> stop_rx/start_rx. > > So why is it OK for every other driver? Should uart_suspend_port() be > fixed instead? For qcom driver we know that set_termios() call in uart_suspend_port() will recover with a call to start_rx. However that may not be the case with other drivers. We can move stop_rx to uart_suspend_port() and additionally have a start_rx in uart_resume_port() Please let know if such a change would be ok. Thank you.