Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp132645pxb; Mon, 11 Apr 2022 21:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj4h3eH6PP9kSXK6qaIhWzySPKRMbcgPfpYwYleXH1s0wA5r7nMJRnAhvrLZRlOgNme7gv X-Received: by 2002:a05:6a00:1510:b0:4fa:f5fe:ffd5 with SMTP id q16-20020a056a00151000b004faf5feffd5mr35911183pfu.2.1649736047587; Mon, 11 Apr 2022 21:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649736047; cv=none; d=google.com; s=arc-20160816; b=ar21wQL9Jm2QWO1GDV2IKCMJPW+98H/ihxKO42oWFAQLxxINzn+8c9B/3xxj4xZp+M 4JMrCy0Bm+pDqaZnN+O5+fGN0sHOzh7yy44S9aaQVL4C3yJBf2TwTZl36gFRBPJn5lki VR4bqeMU+1Dj/vMN91Q+gEwdgIF+xGDb5misZ1hQt6gW3RU5ol5fgPDTMTzFImBvYnnZ XESHjrkFzmCsBb1ZxLNJoAloM6W2GVxi+yeR0pLrO4pBJ+xoVg+BfZ13Bs80Y83c1Xe6 s8hdsejcHyENRcLv5FVDI4nVET++SHpnJcI1OleLfX6fkLW4ISdgkQoR1NbFjZYpPzh3 kI8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bdbH2FaVrBqCdnW9LxmRejKeF5dA7ZPqvPUJPAhh18w=; b=wPUggqkMvs0RGABAykcY7GeDGco4TJ/Wxbfm5pI/vo/KgfLwGwUwUKCWxzfRIaojQU WN7HrSPTsl+vDHek+0IeoAsJQSXYULJvhPMjL05ROj9q/oOpVL1kHQvd3KsRvAGQvQVY iD/07S04HWGyu/7bYhnAthbf+5kT/1SMgk5KzKPf2InaTr9lYVqFVEr/tCARd2NTe+uq KqXK8CZ8HOCRZ+GY09oKMs12uU385Wui29d713DSslXgihEtpIaGh85t+CwDeDHIY6Ud 4oUAKWPRaSbgPCNj4v1DhA7j2Zx9uHU3SFICMnsMzkynTSbL0v+oHZF7ZUZUXASXnZ1n WRsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=U2puirQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170902dac900b00153b2d16652si10576943plx.602.2022.04.11.21.00.30; Mon, 11 Apr 2022 21:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=U2puirQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244772AbiDKFrm (ORCPT + 99 others); Mon, 11 Apr 2022 01:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236240AbiDKFrg (ORCPT ); Mon, 11 Apr 2022 01:47:36 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4249CAE51; Sun, 10 Apr 2022 22:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649655923; x=1681191923; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bdbH2FaVrBqCdnW9LxmRejKeF5dA7ZPqvPUJPAhh18w=; b=U2puirQwe7wze31noIcWiFYpGb3u2Ism/5jeGSs9J7DO2axsBlgoeLbF +GIvZrKxkkO8Tw3F/H3nozO+VgpOwrR+yCCBqLgDemLWAUheGY+2DgHfs CMuOi1NEtXq6KJiGfMjl9REVXr9bkAlMKoPBUaz/2B1CRypvZQjguC8oF 4=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 10 Apr 2022 22:45:22 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2022 22:45:22 -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; Sun, 10 Apr 2022 22:45:21 -0700 Received: from hu-pkondeti-hyd.qualcomm.com (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; Sun, 10 Apr 2022 22:45:16 -0700 Date: Mon, 11 Apr 2022 11:15:12 +0530 From: Pavan Kondeti To: Sandeep Maheswaram CC: Rob Herring , Andy Gross , "Bjorn Andersson" , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , "Matthias Kaehlcke" , Mathias Nyman , Krzysztof Kozlowski , , , , , , , , Subject: Re: [PATCH v12 1/6] usb: dwc3: core: Host wake up support from system suspend Message-ID: <20220411054512.GA19703@hu-pkondeti-hyd.qualcomm.com> References: <1649321104-31322-1-git-send-email-quic_c_sanm@quicinc.com> <1649321104-31322-2-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1649321104-31322-2-git-send-email-quic_c_sanm@quicinc.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Apr 07, 2022 at 02:14:59PM +0530, Sandeep Maheswaram wrote: > During suspend read the status of all port and set hs phy mode > based on current speed. Use this hs phy mode to configure wakeup > interrupts in qcom glue driver. > > Also check during suspend if any wakeup capable devices are > connected to the controller (directly or through hubs), if there > are none set a flag to indicate that the PHY is powered > down during suspend. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/core.c | 29 ++++++++++++++++++++--------- > drivers/usb/dwc3/core.h | 4 ++++ > drivers/usb/dwc3/host.c | 25 +++++++++++++++++++++++++ > 3 files changed, 49 insertions(+), 9 deletions(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index 1170b80..b102a22 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -32,6 +32,7 @@ > #include > #include > #include > +#include > > #include "core.h" > #include "gadget.h" > @@ -1723,6 +1724,7 @@ static int dwc3_probe(struct platform_device *pdev) > > platform_set_drvdata(pdev, dwc); > dwc3_cache_hwparams(dwc); > + device_init_wakeup(&pdev->dev, of_property_read_bool(dev->of_node, "wakeup-source")); The current code calls device_init_wakeup(true) in runtime suspend and calls device_init_wakeup(false) in runtime resume. We don't want that right now given that we have a this new dT property. can you fix this please? Thanks, Pavan