Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2399602rdb; Mon, 20 Nov 2023 09:42:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZfnRaZyby2dte8yKznPQKZoiyMDCt8JtptwzY3Q9Uon4NcgZN+dIDJ1d62oeLB6YcO+5C X-Received: by 2002:a05:6808:f8f:b0:3b6:21cc:742b with SMTP id o15-20020a0568080f8f00b003b621cc742bmr10900910oiw.30.1700502145961; Mon, 20 Nov 2023 09:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700502145; cv=none; d=google.com; s=arc-20160816; b=nEwlp+o/dEpCdbv6AtX9+OOt9fwhOuqIqjrcRxJeO7PUgk46SsgbkuDnZFnEGJC9GP yxB4rJzRLwgHk54InM84YE8U/Gn1nYeXVg7iuSi+YeSbaz3brZtXSc2cA6/YxpwCQn9T jp3KXBblSnLVpS1APVMU3Z1oe59ITqWIgsp0IlSrNCWHvW/1mgxCXyHbq7pyfwX2IOBG tliaTE+CZa+o8p+wHaBiT3Rz1kJ17VDO+RF6E+1lckWd3tetU3to8iAG9DWWYfS0bdkF BFMC/IBgaIGZVEuKfkE1T/B8P6RxVs0ylKOM0ZONhWBYQTVc1ArQxSb5Qbu3EhzmVwDg qyGg== 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=bhXhhVOgQcwszvCir7ZuwIMT/79o9ZyKYko3EUjNwGA=; fh=tYUFeVQVvS9QU2StQNImNkNGb5MRTMDSKJCbjIFWMK0=; b=0YA1ai10qe70N/LdS076aVTGMJ0A9vBOgPE1UagJvpnWYRMIuZHZPc9a8SqYcbIPMF W+dTVEt1i5zvUS2Lfpt2ioWEc8pOePhjRXHFkY61WFsOP1q22dNFyBp9nOYGhwG/Ra8N EZr+AVAZqjqV/vYpcMbgpHAPYTLfI+I9+1lHm2kxzVYJTGGD9V+wdXtKrNJBtKl8+oAZ NJoAoImjUMgGvdzRQkMpgpWOApbwubgnJ8QLr2w60Y3Lhnl3zzJwC6BLeq8Me3GSFC6U vj1PPRjKAsqIJrBClepkDv4oSwf9xyscn921sGwVHZkUXhyQzP3N2IpdY4GZURn0RwYq W5eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JpFtLpwI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e2-20020a654782000000b00565f0e91894si7984172pgs.394.2023.11.20.09.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:42:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JpFtLpwI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 634718069253; Mon, 20 Nov 2023 09:41:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233862AbjKTRkP (ORCPT + 99 others); Mon, 20 Nov 2023 12:40:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234004AbjKTRju (ORCPT ); Mon, 20 Nov 2023 12:39:50 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9E5110 for ; Mon, 20 Nov 2023 09:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700501952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bhXhhVOgQcwszvCir7ZuwIMT/79o9ZyKYko3EUjNwGA=; b=JpFtLpwIqh3H39y0REmRUnnGqQIVT7LSSvKV17Qw0KwPXtFCOUO1IfsIEJ/dl1hY7wRAw5 5genqXe9VrHHLWUKQyJpUZPSU5OKSyxU5sEb5NU2ov739gn0Z3HbzColp/RUpiBWFjrmpJ 5b4Z4SULWUbPEsnRUOAWDvDIEQef2Hw= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-596-5Q5syEyOMsOlFs7vmUlwwA-1; Mon, 20 Nov 2023 12:39:11 -0500 X-MC-Unique: 5Q5syEyOMsOlFs7vmUlwwA-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-421af801578so48570791cf.3 for ; Mon, 20 Nov 2023 09:39:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700501951; x=1701106751; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bhXhhVOgQcwszvCir7ZuwIMT/79o9ZyKYko3EUjNwGA=; b=IK8ospyvqln2VyF5QGPxUVIbRLZE9Tnfva6DZ9hyCjPQd46HOxkRokL+ptYUQYRbio +mIkTFpTJ7Zb3LyCjPAvYyMNRx40vSPz4tsDdbp58BbIk07cnA0WQUkjbc451Tkj017w wIi/bLRivQNJ0atkDJM6dtttZJwRlrwTolGrBYWLkb4Vn6/Q9X9xAQ9lpaVOSCVCGQ59 6Az52XaZZePplK5txVjQaxpKE9VqyTgx3kofsdpCDtlh/WyJDWoDWyc6XNON9+0SP1+P AXZO19ncJZsz0qfIUdYkPg0Yg9d9V+CqEl/bWXrpepiIsF92kXzgE8qab0CEvqFHsemH DQ/g== X-Gm-Message-State: AOJu0YwGMr1FHIykbtQgIErbKDB14KJpm5P3JUsy7yWIEeBKHN7C8WH2 /oU9gSN4G7S/7huo3x8PnXN4LEOas7/lSvH9a1EDzvhX2g4xXonWOKPHFxO73G3Nz48axnVuovQ QUQCyY+DxTPiT0XBkEgMGWtGy X-Received: by 2002:a05:622a:120f:b0:418:1c96:8ae9 with SMTP id y15-20020a05622a120f00b004181c968ae9mr7303266qtx.11.1700501950855; Mon, 20 Nov 2023 09:39:10 -0800 (PST) X-Received: by 2002:a05:622a:120f:b0:418:1c96:8ae9 with SMTP id y15-20020a05622a120f00b004181c968ae9mr7303241qtx.11.1700501950580; Mon, 20 Nov 2023 09:39:10 -0800 (PST) Received: from fedora ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id u7-20020ac87507000000b00419b9b1b0b0sm2790034qtq.56.2023.11.20.09.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:39:10 -0800 (PST) Date: Mon, 20 Nov 2023 11:39:07 -0600 From: Andrew Halaney To: Johan Hovold Cc: Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Wesley Cheng , Krishna Kurapati PSSNV , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/3] USB: dwc3: qcom: fix wakeup after probe deferral Message-ID: References: <20231120161607.7405-1-johan+linaro@kernel.org> <20231120161607.7405-3-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120161607.7405-3-johan+linaro@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 09:41:10 -0800 (PST) On Mon, Nov 20, 2023 at 05:16:06PM +0100, Johan Hovold wrote: > The Qualcomm glue driver is overriding the interrupt trigger types > defined by firmware when requesting the wakeup interrupts during probe. > > This can lead to a failure to map the DP/DM wakeup interrupts after a > probe deferral as the firmware defined trigger types do not match the > type used for the initial mapping: > > irq: type mismatch, failed to map hwirq-14 for interrupt-controller@b220000! > irq: type mismatch, failed to map hwirq-15 for interrupt-controller@b220000! > > Fix this by not overriding the firmware provided trigger types when > requesting the wakeup interrupts. This series looks good to me and makes sense except for one point that I'm struggling to understand. What exactly is the relationship with this failure and probe deferral? Thanks, Andrew > > Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver") > Cc: stable@vger.kernel.org # 4.18 > Signed-off-by: Johan Hovold > --- > drivers/usb/dwc3/dwc3-qcom.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 10fb481d943b..82544374110b 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -549,7 +549,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_ONESHOT, > "qcom_dwc3 HS", qcom); > if (ret) { > dev_err(qcom->dev, "hs_phy_irq failed: %d\n", ret); > @@ -564,7 +564,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_ONESHOT, > "qcom_dwc3 DP_HS", qcom); > if (ret) { > dev_err(qcom->dev, "dp_hs_phy_irq failed: %d\n", ret); > @@ -579,7 +579,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_ONESHOT, > "qcom_dwc3 DM_HS", qcom); > if (ret) { > dev_err(qcom->dev, "dm_hs_phy_irq failed: %d\n", ret); > @@ -594,7 +594,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_ONESHOT, > "qcom_dwc3 SS", qcom); > if (ret) { > dev_err(qcom->dev, "ss_phy_irq failed: %d\n", ret); > -- > 2.41.0 > >