Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5124694pxb; Wed, 19 Jan 2022 11:32:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzKATOMj8qlm04iAczak7QGAYkJaXrnWOtjMJn4FtKTMx5DbofWnwsLNeneFKGjsGx0E0g X-Received: by 2002:a17:902:d4d0:b0:14a:7bb6:605b with SMTP id o16-20020a170902d4d000b0014a7bb6605bmr32498138plg.112.1642620776803; Wed, 19 Jan 2022 11:32:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642620776; cv=none; d=google.com; s=arc-20160816; b=WGbqcmBFJ+s5J/rC23NB6tsJJNrnrXL248+P/Kv7bf5usRTfnQkqGpiBPmpyYyRLwS f8QwydHSyZaTTkYgLas8tjmeNq0NsCPql83aQlFLviEqAxBOuDo0TCgev8DmoaSGPWfu U00cHHKezbSTbmLVN2CDTPg2o4fGqVDKgLkzItZSWlsq9qGnqyuYkAsG62MqDwTphMxy C5qibZ17HulidPPAbiM+oZCWM6VNFD8Wvp5Zs3pf6BdSziJAh2cr4mCHr6skIReJ29xy Wqem6zR6syf5LH8+vvkWOHaqIVQsrk4E0K2pIIAAffGU0K7/DcP/afOV6x2qjk4af0ir 0tCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2a1Q/XsJ/2DmbTXvI7kKmXTY8vws9/nNbl2erRZ0zOk=; b=iVu5toSG9OshS5+lK2pFivXGwoPMYuMAtPmCGM9h10kLW1EiVf1H+AmvfQD1FPRLMX KCU016XFZWtfuHnOWhu68LlaGX57ux9riiW8PXICaS7I68zxECko8k9cYOm0XPwcJ/4A 58yP2jimzSB7MfFfPku2YIYg4r2UJNMf61eoaXis7dqgdy/Iqok/Z1S84li/whIowM74 0JFE8I2FS7Qe4JNBSEJqUSeRAh4Tz7eMXfGyXMd5sS+M34ohH4cvMDtVJlrCWPJpey8/ a/7xC4XFQp+1+a0+ShPKgMVzGohwN2DlEispEFj0ZkuPILWIXXr259F4vi6e1YTOQfqI VSRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=HgwXvcxc; 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=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg12si446152plb.505.2022.01.19.11.32.29; Wed, 19 Jan 2022 11:32:56 -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=@quicinc.com header.s=qcdkim header.b=HgwXvcxc; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242035AbiARGag (ORCPT + 99 others); Tue, 18 Jan 2022 01:30:36 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:42414 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbiARGae (ORCPT ); Tue, 18 Jan 2022 01:30:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642487434; x=1674023434; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=2a1Q/XsJ/2DmbTXvI7kKmXTY8vws9/nNbl2erRZ0zOk=; b=HgwXvcxcahgETreTRuspYs8D2VMeMrLrEkVY9Y5OI4uBk0oNlteEVpdq G7P3Jj3O9hqvHNArEiCp+FiCmMTV7DcE7EWLAlsKr7gofZKCVcwf3Dfum hCbGijaDeuFkKKdeSKaayiY3m3f2somOVR03dLXCi1IKnskC78NqvO8eS w=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 17 Jan 2022 22:30:34 -0800 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; 17 Jan 2022 22:30:33 -0800 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.922.19; Mon, 17 Jan 2022 22:30:33 -0800 Received: from [10.216.36.108] (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.922.19; Mon, 17 Jan 2022 22:30:20 -0800 Subject: Re: [PATCH v10 6/6] usb: dwc3: qcom: Enable the interrupts during probe To: Steev Klimaszewski , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , "Matthias Kaehlcke" , Mathias Nyman CC: , , , , References: <1642398248-21753-1-git-send-email-quic_c_sanm@quicinc.com> <1642398248-21753-7-git-send-email-quic_c_sanm@quicinc.com> <93b68251-7e7e-ac92-fb47-346c410744b2@kali.org> From: Sandeep Maheswaram Message-ID: Date: Tue, 18 Jan 2022 12:00:15 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <93b68251-7e7e-ac92-fb47-346c410744b2@kali.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steev, On 1/18/2022 11:42 AM, Steev Klimaszewski wrote: > > 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 > Will check this. Is your controller in host mode or device mode? Regards Sandeep