Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp389462iof; Mon, 6 Jun 2022 05:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxanB8NSRKJRc1Z0AlTQItMPQvB9S/BpOg82zMk+1ZZ1lZ2p1DoZ/y1A/RTMMu2KIHAvFCi X-Received: by 2002:a17:902:bd42:b0:164:bea:65bf with SMTP id b2-20020a170902bd4200b001640bea65bfmr24099149plx.111.1654518822310; Mon, 06 Jun 2022 05:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654518822; cv=none; d=google.com; s=arc-20160816; b=b35QBmjZy+zJ9TTiw7SLBp4EHoY3gdmrPqEK/vg29/teXuDTtzSa5KlFEYZcYnmeCW T0WLxFlH4pMS15xe07G+uXYSiiHyh29ymLVR8kQgArgs47HtPnnvMGarsJa51m+ZhM1m TRy/OgHowKmeq6ui4ZuQxcxCPfyxAGoKe2dCkUT895KD4VJbuFZ1EJIxvx5I0c2vDVnA j5Fry2peIoOAFj/I8XkG8GFkaCAYHCX4yv0182sEWUpOeJI4dXvp649qFLoUMz7fYHY0 yeBrCYnRD+ILb4kbJwSMs7QtS4/3AhBbGCOpRyIBkSto4gh01gjWsEd6YTqXGw0nB5h3 jtRQ== 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=XbjNlt3CgxlWJwI2YJzT7T5pyVzwTRcy1dlaQHnhbo4=; b=SfyZb8TVcnpzMTN8bMyLpFmx62k37O+LMyAB+RnxnCXIpWuYwTU+r+YETTsYHWlczJ RKNKD3Heq6L8j4RgfzpmiPGe6Vgvtt041+U7TNxCTaawFTwTZEUhHWSerbmvr0u06KvO yOnUfBgplMW75n2j8Bp3btgt/wYY9XB8et3Q03yojf7m1AMia73YAYSJSYylYo+0BauY ZFSGVs2ojKs9lNzClZfy0r/pAr5hzG1i3jamJktJugCIZTijtsT3/t8u0vQkDhNvHNqX feqebwbiMNKkPc2NmIkYNCrxVNMpUrhVY5jU2IQEvgzxzb6d7WjFieYZMoFs6hVv+6nB iDpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=JMFxfA4m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id t17-20020a056a00139100b0051b9c2baa8esi21891832pfg.44.2022.06.06.05.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 05:33:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=JMFxfA4m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 11D4D2A890A; Mon, 6 Jun 2022 05:30:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237008AbiFFMav (ORCPT + 99 others); Mon, 6 Jun 2022 08:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236991AbiFFMat (ORCPT ); Mon, 6 Jun 2022 08:30:49 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EBAA2A3A23; Mon, 6 Jun 2022 05:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654518648; x=1686054648; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XbjNlt3CgxlWJwI2YJzT7T5pyVzwTRcy1dlaQHnhbo4=; b=JMFxfA4mnwPgl7BFrbjwfjhLRSGe7FsIvmUN65m0ldJB12laIcFuE/cs MSC70lHd6fGnE2ysHFo9Wq1O8zjiUwcy5IjOqvidHi04xgXMziqhTe7c2 uiexSh6yYFgEjedJUhTNsdaV2/Hkc0661rSCdg5+mm1tRo1C/wfe9EgSW U=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 06 Jun 2022 05:30:46 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 05:30:45 -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; Mon, 6 Jun 2022 05:30:45 -0700 Received: from [10.242.7.200] (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; Mon, 6 Jun 2022 05:30:42 -0700 Message-ID: Date: Mon, 6 Jun 2022 18:00:39 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [V4] serial: core: Do stop_rx in suspend path for console if console_suspend is disabled Content-Language: en-CA To: Doug Anderson CC: Marek Szyprowski , Greg Kroah-Hartman , Jiri Slaby , , LKML , , Matthias Kaehlcke , "Stephen Boyd" References: <1652692810-31148-1-git-send-email-quic_vnivarth@quicinc.com> <3866c083-0064-ac9a-4587-91a83946525d@samsung.com> From: Vijaya Krishna Nivarthi In-Reply-To: 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.9 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 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 Hi, On 6/4/2022 12:58 AM, Doug Anderson wrote: > Hi, > > On Fri, Jun 3, 2022 at 11:54 AM Vijaya Krishna Nivarthi > wrote: >>>>> Add a start_rx in uart_resume_port after call to set_termios to handle >>>>> this scenario for other drivers. >> Since start_rx is not exposed it doesn't seem like we will be able to >> handle it in core. >> >> In your drivers, Can we add a call to stop_rx at begin of set_termios >> and then undo it at end? >> >> That would ensure that set_termios functionality is unaffected while >> fixing the broken cases? >> >> If that's not an option we will have to go back to a previous version of >> limiting the change to qcom driver. > How about this: add an optional start_rx() callback to "struct > uart_ops" and then only do your stop_rx() logic in uart_suspend_port() > if you'll be able to start it again (AKA if the start_rx() callback is > not NULL). That keeps the logic in the core. This seems good. Thank you. And also conditionally call start_rx in uart_resume_port after call to set_termios? I have tested such patch and it is working fine, will upload it. -Vijay/ > -Doug