Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2597982pxp; Tue, 22 Mar 2022 01:52:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZeMi7DI4lHlMARnFvQDJ/RCUEQyIZZrf6gC5j3YVB9Zqe53Si1oRtACUVT1hUiLSNLc7k X-Received: by 2002:a17:907:94c4:b0:6da:c28c:3f44 with SMTP id dn4-20020a17090794c400b006dac28c3f44mr25835096ejc.722.1647939172309; Tue, 22 Mar 2022 01:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647939172; cv=none; d=google.com; s=arc-20160816; b=w0pDXC885hJqm2LRmrD04tl7X8nrqxvIcvj7OhyVHqwt4R0f86ak12mBtLxMrxEPPp EcwHohchJtGfoYuGdUE6tvYvYaAevejeQqDT1Ul05eplmksqqAvBwa04guvycD9GdL6K 3fVH5h61nn6CDD/Ggz2sU42xObZS0o6yYjmKmQZgy6A+Q84KGLcsWMPyNJzPu8mZvBmz ibPyKqnKe6wSCJtLbKMtTpdktcmbB/BMS3PqxLTrxHa98Bwyg1ayvOtABo9VJjo30Ije oow1EJKKkbVRlqlIPHXKm6VsE6yUCaBC1Dt7nrUav117ldhlo0u/eIN/hdZrU5klCI0f fKkA== 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=MLCHjvjC7DXa1W6IGRIWN8bCkLHwxY4LHy2UaTCMmBM=; b=MUxW/Bvi6nfFrvgaTLbuK6liO7cNYORgPRo0rT3t2DN/LcYe1+y+QCB9PtY8v79CHh v2RQHakt9zbp9XaHV0YVIOXN0edsup+L+z7V/KDp0RhsDEiN2BUMTQxuSd8H1FNWLfrm PKmB++Vb4OmIrXj0jLvJ9Ar40mc3dk1DYCdC36XgKmQShRMr6vp1+kdfjoFuDkOTs2lD NFKEY36zWOvzocsFq1243r0shA8fYBoGRdPzGTsGBpxaX0UUAF+aMSr7vvdJBbdrWXJ/ C7Jcu6krwEQ7uVDolpABD2mVaYewy51fZ4GWVxCCE8zoI8Ot4vdm6Id3JQpLFdpqMWur x7fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=zp4KdkDb; 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 5-20020a170906224500b006df76385bbasi9907738ejr.90.2022.03.22.01.52.27; Tue, 22 Mar 2022 01:52:52 -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=zp4KdkDb; 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 S229854AbiCVIiE (ORCPT + 99 others); Tue, 22 Mar 2022 04:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbiCVIhv (ORCPT ); Tue, 22 Mar 2022 04:37:51 -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 5E25A6A425; Tue, 22 Mar 2022 01:36: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=1647938183; x=1679474183; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MLCHjvjC7DXa1W6IGRIWN8bCkLHwxY4LHy2UaTCMmBM=; b=zp4KdkDbWQ9+do98AxpmRZZnjTUTtcez9rKT+17iUI1Ktm6TY7nxfFV+ P8nt+NLMWmnfMA+KCe6V/n07ezgia03GzAJ/qtxiotY3DUYh5zYmZ4Q0U rUlDQjPWSBwEWmzxrRvAvq4y+O9bBroQhhoj8MrIoei7TrR6MvnpcreaV k=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 22 Mar 2022 01:36:23 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 01:36: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; Tue, 22 Mar 2022 01:36:22 -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; Tue, 22 Mar 2022 01:36:18 -0700 Date: Tue, 22 Mar 2022 14:06:14 +0530 From: Pavan Kondeti To: Sandeep Maheswaram CC: Bjorn Andersson , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , "Matthias Kaehlcke" , Mathias Nyman , , , , , Subject: Re: [PATCH v11 4/5] usb: dwc3: qcom: Configure wakeup interrupts during suspend Message-ID: <20220322083614.GL23316@hu-pkondeti-hyd.qualcomm.com> References: <1647932876-23249-1-git-send-email-quic_c_sanm@quicinc.com> <1647932876-23249-5-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: <1647932876-23249-5-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: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Hi Sandeep, On Tue, Mar 22, 2022 at 12:37:55PM +0530, Sandeep Maheswaram wrote: > Configure interrupts based on hs_phy_mode to avoid triggering of > interrupts during system suspend and suspend the device successfully. > The changelog is not clear and confusing. Can you elaborate please? > Signed-off-by: Sandeep Maheswaram > Reviewed-by: Matthias Kaehlcke > --- > drivers/usb/dwc3/dwc3-qcom.c | 26 ++++++++++++++++++++------ > 1 file changed, 20 insertions(+), 6 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 7352124..9804a19 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -316,22 +316,36 @@ static void dwc3_qcom_disable_wakeup_irq(int irq) > > static void dwc3_qcom_disable_interrupts(struct dwc3_qcom *qcom) > { > - dwc3_qcom_disable_wakeup_irq(qcom->hs_phy_irq); > + struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); > > - dwc3_qcom_disable_wakeup_irq(qcom->dp_hs_phy_irq); > + dwc3_qcom_disable_wakeup_irq(qcom->hs_phy_irq); > > - dwc3_qcom_disable_wakeup_irq(qcom->dm_hs_phy_irq); > + if (dwc->hs_phy_mode & PHY_MODE_USB_HOST_LS) { > + dwc3_qcom_disable_wakeup_irq(qcom->dp_hs_phy_irq); > + } else if (dwc->hs_phy_mode & PHY_MODE_USB_HOST_HS) { > + dwc3_qcom_disable_wakeup_irq(qcom->dm_hs_phy_irq); > + } else { > + dwc3_qcom_disable_wakeup_irq(qcom->dp_hs_phy_irq); > + dwc3_qcom_disable_wakeup_irq(qcom->dm_hs_phy_irq); > + } Thanks, Pavan