Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5109271pxb; Wed, 19 Jan 2022 11:12:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJziaqrduLi6XUcaAXQIxJlwpUcbNeFYxQ2TXRINZsZOzWAS33KyqXVLHx7iQ15KbGV1H78Z X-Received: by 2002:a63:c6:: with SMTP id 189mr28337439pga.85.1642619533012; Wed, 19 Jan 2022 11:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642619533; cv=none; d=google.com; s=arc-20160816; b=Pwp+FiRUkaeq/aKQf4b3ejI8DkB4PUi9HLzjdsRHQ0x9FI44aNMNkJyeqwd5mtaQOy cps4jXBRU3x3QNjkMZmHWc5tV4heb0R7M+ZhIr1ePPHlzJ8W8scNjAF2/cVfbY+jUizw yascC7Rc2g64nNOrHHXTiqPEQwbG2QoniHqWX9WU3JEMO1STIE46FVkePAnUwzSbYCYL QLFdWRub7ecVhWdOxlhuyQrn++DDFzuQRxkasiLH/l90rfU/bMd7feGMfHopOUCIKpMy Mt7Wfbt7wKyMCX4yfU4KcTovZ7qlmFwguWwoEsaxesTIsLagR1ugQ+BYkYZHknyz68ze 3kkQ== 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=f3VawGmozyunnfA2iQeu0QUYA180FehEfQsU6i2pC6U=; b=nu0LQbR/CC9E3Xrax3WuoJYTOyWVQPD8n7HvmCrwiuZRIYQGOY1vIP7ZP/PjOpZb2w pRnRFyfwrLnLWuag1wJsxJjE4uqZjzEgkn6Ss9//CdfYE0b7nUY9YawwnSgXOoWPSYcH zOdU2/KIplbDRmY45C3suN/+5j/BeeiPr2OcjksmildubDfx01K1XF6uV6QPuv0cYlIC eKFj76A5pnakhm788BmHws5ZPZpPDrtUIa6tNhjg9lIX6UAX/W6VFGlKDhhCyrArnjCP XuM4Z0v5YIA0ME0MzIaelKbptHo1BZs+xVxi7yJMlQi3Sptt9+ctJGBDiNFyBpuhrzBq +jDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=UsrzyLUh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si688858pfh.345.2022.01.19.11.12.01; Wed, 19 Jan 2022 11:12:12 -0800 (PST) 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=pass header.i=@kali.org header.s=google header.b=UsrzyLUh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240792AbiARGMe (ORCPT + 99 others); Tue, 18 Jan 2022 01:12:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbiARGMd (ORCPT ); Tue, 18 Jan 2022 01:12:33 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C9CC06161C for ; Mon, 17 Jan 2022 22:12:33 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id c3-20020a9d6c83000000b00590b9c8819aso22904092otr.6 for ; Mon, 17 Jan 2022 22:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=f3VawGmozyunnfA2iQeu0QUYA180FehEfQsU6i2pC6U=; b=UsrzyLUh9AckId6pX6SbnLwNe3EaFmW0gxMM5GgGoPbm50EqE1LaCMgIvoleQoksMv 40WmEqNHx6e4j38KMLBk8abIlyDaOJX5yTh+mXUfwPb8qjgMjla7zI2e580aLg2drhV9 GCGivBn8VQD1TTPQ1EEU92TAjQV+KmsAgoZExM+xusclJwCZEvJ8DWFWr6DHHuDf09EA plpbTUgqA3hvMTHsQafC+ept9b/SXZuGIiixiNe0Kc1scgBS0c0HzF29NEBv4uesVwfO cuxTS0mxTMX1oCSQ2OrWRnBEmjYZqpyFULsO02fpxhoxgbOUWrZY5mhFPHbTbcHJgBPC NbmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=f3VawGmozyunnfA2iQeu0QUYA180FehEfQsU6i2pC6U=; b=JWjyjjC6dIeAkWqwkz60+niCi/rtDN50OUZXrYp+SKD29BKyN2GsEbNUz2TmY+XPJh 4lIkemE/IFY0h/Vyha8u7ZOUaU79qJ3q5ELywgjkef4uCeAyvSjE8PDBfGTTMuHGuCAE OZ4WQ8Dr8+VEHT5SVPPsqUXmnQmC8i/Mp36FgJOxI4RZkEoTAp6gQ81IbRxph+8aK8d6 A0AsIACVHeRY2gYxuL2C1lRdCwfMPvohCCMfNklOZAfYE8m5ylGXOL6M+jVyWMwIkrwy PnMVxkkNsBJywuMaG/3HRUlGUf7SGQuU57tBnZtDYT4YdJlVYvmUdorZG/iMpaUXrdms o3mg== X-Gm-Message-State: AOAM530GolCo8GcEjwj9DO9XmPVOTG94g25W4up6GV2dl1hehirYIh9b xjzHTGMPj9BYtHdMTdK1dIaACA== X-Received: by 2002:a9d:25:: with SMTP id 34mr15421703ota.113.1642486352809; Mon, 17 Jan 2022 22:12:32 -0800 (PST) Received: from [192.168.11.55] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id y9sm6427427oti.62.2022.01.17.22.12.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jan 2022 22:12:32 -0800 (PST) Message-ID: <93b68251-7e7e-ac92-fb47-346c410744b2@kali.org> Date: Tue, 18 Jan 2022 00:12:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v10 6/6] usb: dwc3: qcom: Enable the interrupts during probe Content-Language: en-US To: Sandeep Maheswaram , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Mathias Nyman Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com References: <1642398248-21753-1-git-send-email-quic_c_sanm@quicinc.com> <1642398248-21753-7-git-send-email-quic_c_sanm@quicinc.com> From: Steev Klimaszewski In-Reply-To: <1642398248-21753-7-git-send-email-quic_c_sanm@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/16/22 11:44 PM, Sandeep Maheswaram wrote: > Enable the interrupts during probe and remove the disable interrupts > function. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/dwc3-qcom.c | 28 ++++------------------------ > 1 file changed, 4 insertions(+), 24 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 54dc3d3..7c5e636 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -306,25 +306,7 @@ static void dwc3_qcom_enable_wakeup_irq(int irq) > enable_irq_wake(irq); > } > > -static void dwc3_qcom_disable_wakeup_irq(int irq) > -{ > - if (!irq) > - return; > - > - disable_irq_wake(irq); > - disable_irq_nosync(irq); > -} > > -static void dwc3_qcom_disable_interrupts(struct dwc3_qcom *qcom) > -{ > - dwc3_qcom_disable_wakeup_irq(qcom->hs_phy_irq); > - > - dwc3_qcom_disable_wakeup_irq(qcom->dp_hs_phy_irq); > - > - dwc3_qcom_disable_wakeup_irq(qcom->dm_hs_phy_irq); > - > - dwc3_qcom_disable_wakeup_irq(qcom->ss_phy_irq); > -} > > static void dwc3_qcom_enable_interrupts(struct dwc3_qcom *qcom) > { > @@ -356,9 +338,6 @@ static int dwc3_qcom_suspend(struct dwc3_qcom *qcom) > if (ret) > dev_warn(qcom->dev, "failed to disable interconnect: %d\n", ret); > > - if (device_may_wakeup(qcom->dev)) > - dwc3_qcom_enable_interrupts(qcom); > - > qcom->is_suspended = true; > > return 0; > @@ -372,9 +351,6 @@ static int dwc3_qcom_resume(struct dwc3_qcom *qcom) > if (!qcom->is_suspended) > return 0; > > - if (device_may_wakeup(qcom->dev)) > - dwc3_qcom_disable_interrupts(qcom); > - > for (i = 0; i < qcom->num_clocks; i++) { > ret = clk_prepare_enable(qcom->clks[i]); > if (ret < 0) { > @@ -832,6 +808,10 @@ static int dwc3_qcom_probe(struct platform_device *pdev) > genpd->flags |= GENPD_FLAG_ALWAYS_ON; > > device_init_wakeup(&pdev->dev, 1); > + > + if (device_may_wakeup(qcom->dev)) > + dwc3_qcom_enable_interrupts(qcom); > + > qcom->is_suspended = false; > pm_runtime_set_active(dev); > pm_runtime_enable(dev); Hi Sandeep, I was testing this series on my Lenovo Yoga C630, and with this patch in particular applied, my system will no longer boot. Unfortunately I don't get any sort of good output at all, I just get hung tasks when trying to probe things it would seem. With the other 5 patches in the series applied, the system still boots and works correctly. -- Steev