Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3196883pxb; Mon, 1 Nov 2021 09:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1fHq2867QJb5ty05fxtDFNs5AeDnOGvgSIYMrsL2bdOzPX2w5psxU8XBgdT9ME6k5IiB9 X-Received: by 2002:a17:906:269a:: with SMTP id t26mr38182841ejc.20.1635784380533; Mon, 01 Nov 2021 09:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635784380; cv=none; d=google.com; s=arc-20160816; b=u3BG235VLBC7e/XPE+eVdWVK5SIe3jEbgOMPUEPYt8We3g6nITJCRXDGnDc1rZ/3nJ 8vJgm207e5P2XOjdSeGpoKwIGWlVNbstwnHukNgiN7qsfmCtut4ci7tcOkJgmh3OnvYN gZ9QtwEmv8s5GQuHB2RIZXLxYd9h7GCkXOW8a6yeUo8X50h2/Uo5tznsoeLfw56wXCK+ HOKN+JEcN1TdJewQk9brL7qJWsiPW0kuVF/zdg4toYwD1TxHQIO/pGJMSyEi6fdLryEQ NtUql21M5T+fLGKdHAtE1ZG+IrYErrU3+G6Zh7qX2HFNbbpHLxzZJ67ZQdOy3W+uDTwt taug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NO4BrqlCwZmZbzIFPocj3aL6JgeBLaLvgKTDJLmrKow=; b=wgqDJ3WfQBlclq8AU+P0EcK5f2f1HnK5fvxCrsEAvlKg0mrtErtX7/cyX0sA56nXLV KgLrrY3ehAkRZLDao8GAwNUje/GVdAOgAKzXNlz9rCOUul8QMamG5x2EdW/0q+5wgVai BI467bZjza2dkuFALzNkGnisfBlc5D+IxlDDVHn0bpoyoGZP8mvINLTh0Wt/1rxK02SZ Z1/FfsbRgfR/pwznGFQOTmgsANpxbQi9VAalvgui9YXT3C08NE9fiNSPDcHrM7xW+ytT w7m2JjK198qJsbYL5+UwS/Y85luQCDkI9hF9kA4t22NqfzhGQbc3/ctbcbymxIcOBwTC Qcdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c5BOqick; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy12si1541459ejb.76.2021.11.01.09.32.36; Mon, 01 Nov 2021 09:33:00 -0700 (PDT) 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=@linaro.org header.s=google header.b=c5BOqick; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbhKAQcw (ORCPT + 99 others); Mon, 1 Nov 2021 12:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbhKAQcr (ORCPT ); Mon, 1 Nov 2021 12:32:47 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 004D1C061714 for ; Mon, 1 Nov 2021 09:30:12 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id o4so25647108oia.10 for ; Mon, 01 Nov 2021 09:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NO4BrqlCwZmZbzIFPocj3aL6JgeBLaLvgKTDJLmrKow=; b=c5BOqick+DqV5dKJ9M60baALaXbKCh/aIQqSXuYz70tg1OfDwDGMvzzzIeeyYzBVOs wQEkiwnfWC6z6lgoqkJUBPEAJgLYQjmvp9M91lM1cIw6Ti5yQtAl0/Nxl8u5SiLbgRBI PmYRutyZ5MH15Fd+XeBiaPrpJvGxxaywEcUw2SBQWxbuQ2sBzAVrGuMFq95VPhBXyZYx /NzEfUGID/5H36AXv0P8aZKWaRB8tcocXFGyNX/WMJI4Eopn6aZXokq8OyFY8uXnKeSQ j2PW/OtJz7PLYjc7zwz81gUkgVRku7CG231kOzj/w61d8ntuyIquczXPTUZoLY8AUK1g Ak8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NO4BrqlCwZmZbzIFPocj3aL6JgeBLaLvgKTDJLmrKow=; b=DKMvDRoK6VsmkUlR7K7NKT5erEy2ZfSWmKkmwkQ+7UyuWT9lkAYZupf/TeCY3C2oBz DHnXMXhIK+aIHi+tPtRcVI8Y88n32Io4Yj1YQAoWzGFOjzlfUG9OhGAZSNtG9BOzJoAW AE3fCrphBn8bs0CRiMOm+rsi8nwvKbkljpy4APPHTrdNvuvIxmWKcnwnJH8sKSETtz6I Zxvb3BtLrI8/LB6hVBr7h3IGgnao52/5ZGLMG/TP3BsIQ8UNfVMhlv5n7Xq7SPorPlWf +0iOOclkAzT/gPjIsD1hWVCGvF4Cr3bvo75ResrAQ/9Rl5I2PNcjAOTE5mny+qdGsjly 4gHQ== X-Gm-Message-State: AOAM532/vc87gkNiB5cl5Nd00zN9Pt1ulCuUe1VDWF+2AE42CMuDxpTp I84635L4l4hzLUVQ5Ks8MNGuIw== X-Received: by 2002:a05:6808:1528:: with SMTP id u40mr11320798oiw.155.1635784212148; Mon, 01 Nov 2021 09:30:12 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id a8sm202738otr.3.2021.11.01.09.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 09:30:11 -0700 (PDT) Date: Mon, 1 Nov 2021 09:31:57 -0700 From: Bjorn Andersson To: Sandeep Maheswaram Cc: Andy Gross , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Mathias Nyman , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com Subject: Re: [PATCH v9 4/5] usb: dwc3: qcom: Change the IRQ flag for DP/DM hs phy irq Message-ID: References: <1635753224-23975-1-git-send-email-quic_c_sanm@quicinc.com> <1635753224-23975-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: <1635753224-23975-5-git-send-email-quic_c_sanm@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 01 Nov 00:53 PDT 2021, Sandeep Maheswaram wrote: > Change the IRQ flags for DP/DM hs phy irq to avoid interrupt > triggering during system suspend. > Why does replacing HIGH with RISING change this behavior, or do you get a RISING interrupt just before hitting suspend which you ignore? I think it would be nice to have the commit message for this (or per below request the DTS change) include some details about what's really happening on the irq line. > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/dwc3-qcom.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 54461f1..356f4f8 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -473,7 +473,7 @@ static int dwc3_qcom_setup_irq(struct platform_device *pdev) > irq_set_status_flags(irq, IRQ_NOAUTOEN); > ret = devm_request_threaded_irq(qcom->dev, irq, NULL, > qcom_dwc3_resume_irq, > - IRQF_TRIGGER_HIGH | IRQF_ONESHOT, > + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, IRQF_TRIGGER_* should be omitted from the driver and supplied by the DT. The dtbs out there should all have IRQ_TYPE_LEVEL_HIGH at this time, so simply dropping that from this list and updating the dts would be the right thing to do. Regards, Bjorn > "qcom_dwc3 DP_HS", qcom); > if (ret) { > dev_err(qcom->dev, "dp_hs_phy_irq failed: %d\n", ret); > @@ -488,7 +488,7 @@ static int dwc3_qcom_setup_irq(struct platform_device *pdev) > irq_set_status_flags(irq, IRQ_NOAUTOEN); > ret = devm_request_threaded_irq(qcom->dev, irq, NULL, > qcom_dwc3_resume_irq, > - IRQF_TRIGGER_HIGH | IRQF_ONESHOT, > + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, > "qcom_dwc3 DM_HS", qcom); > if (ret) { > dev_err(qcom->dev, "dm_hs_phy_irq failed: %d\n", ret); > -- > 2.7.4 >