Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp736902imw; Wed, 13 Jul 2022 07:09:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUvWj7U0LQRBY0JeSZe7Lv04mf3c7h3PmptWcLYv6U34ELLCA+59GeagEjuhJFXAezmo+n X-Received: by 2002:a17:906:9b89:b0:72b:3b1e:b7e5 with SMTP id dd9-20020a1709069b8900b0072b3b1eb7e5mr3684282ejc.199.1657721341831; Wed, 13 Jul 2022 07:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657721341; cv=none; d=google.com; s=arc-20160816; b=nCsrRinYdsGUKRcksY/6CrGj6CtBiFEWUUFB8TwzeJ0gOlyy3S95Uiav3F2+hc5IIU cUdzdvhvAdejupFWDLvucZpr8gZ6zF/w40T6GDeyuqRi/oS0GwrJANqZo8nPw7Ns96l1 c8UIirrYMuCAQbygQrQOtY++udwg05zaqF1cMd26Fx3QVqEd029pEeLTzQp4sw1xOK5q 00wQvksSLm0heMtYd++bWYLtKLNOS7FWAZSYy5wm1VyW/He/Gy4oPFZUs9TsHI5srFj5 i6VFNUrk5bAeX1ALXdn3cy5W5cMHTdN53iwknz9fzFo+AR73cxhH6+iBxjg2EuyoGU7n +cAQ== 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=LVM/9+bL0Plqw8a52QPl3k4n9Q1+GAafg2rUTujh0Gc=; b=dmSzL2zLjFp0fW8AFok9G4nkNwXVDK4R0CgJpg2jOGOOpmIdL/CLfVdk9n9fMYDUrP ysrHfytd4T93TTUQFRl/QgO0ELEhIutba/213GFwK7mfU1VOtLVIOhbIIh7Ze48Brrak H8HLjglPgUl+m0l/+kiCvS0frtaRYYuD7uXJbA4uvoY75hqOMssXxqjkKfM3MzlkYLrq d2ooLRDdLcx7Y7COjekpP1omJ3C1argzKkkkDOLfKWgKxa+1IFzTdnoNxnkmWRSp7jCY +acTOcR1nZThHTjJ+GaMSuSTTB8ANLsAWlQrXE6nHLt7H82yBs1RqyeN5PCAQT9Q5nZ7 k7eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C7MeA/4C"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a1709063e4a00b0072a6d845d91si15135104eji.159.2022.07.13.07.08.35; Wed, 13 Jul 2022 07:09:01 -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=@redhat.com header.s=mimecast20190719 header.b="C7MeA/4C"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbiGMOAO (ORCPT + 99 others); Wed, 13 Jul 2022 10:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236252AbiGMOAN (ORCPT ); Wed, 13 Jul 2022 10:00:13 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 834FC2CE22 for ; Wed, 13 Jul 2022 07:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657720810; 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=LVM/9+bL0Plqw8a52QPl3k4n9Q1+GAafg2rUTujh0Gc=; b=C7MeA/4Cvzux7KlM9poxwLLOphu8PWeg/WjqbwGM9Gufr63eGbZBsoRhWvCslo6Z+EpLod 2VRMFcy9MGUROEnhQrxLp2+sSev16rE5TS32z7p5kLa+9bnRHqe+H6/5jpCUoAa6O2y/WE ztIGCHspJ+JGWN8iOAQD0YOPaHvpvZc= Received: from mail-oa1-f72.google.com (mail-oa1-f72.google.com [209.85.160.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-53-bVFDepwbPdegTMuD_8Ckkw-1; Wed, 13 Jul 2022 10:00:08 -0400 X-MC-Unique: bVFDepwbPdegTMuD_8Ckkw-1 Received: by mail-oa1-f72.google.com with SMTP id 586e51a60fabf-10c071638bbso5942024fac.15 for ; Wed, 13 Jul 2022 07:00:08 -0700 (PDT) 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=LVM/9+bL0Plqw8a52QPl3k4n9Q1+GAafg2rUTujh0Gc=; b=AvbkIedOsUt0cWtMO4/61rdpTt4d8VWsSwifgwW/ZJHkcBWc5l0pGg8p5pJd/gj4Gp k5QmxAqZZW//H9gWAy7kL3tXMoIyrP+644WfllBH1DGs3ZDndWpg9NExqqNNuVBaiTN7 /2oFmqfpNOc1xfGx100SIPXwyR/W6cqh2t41u8RdXbgdoUPwDFQv7+WDMRLLFETSVRze sV6XM1KjD6y4xI+k0uhZXIXyeym475uNeEidxXeCms+pgaXx4nVI587Ls3ACXWxZwHwz Hcb+bLOO+KDWO80F8zZvTsl4ET4kgSSl/fKw6FG2vp80dDYZBd9oBMafBasgzeOy52ja gzzA== X-Gm-Message-State: AJIora9DNiYSW9fUoMvdpesb1wXMuFwNkocMbZay6B/U6pZtViFZSjVh f1HGMrigGiw9+vhdbOREyqHlpFKOCfLn/y3psjEwpvt2l52ak5x84blYY+yQvRoVpGqUlDjWcdE afW9rBZwg2oiFOByq+w2FXRVH X-Received: by 2002:a05:6870:f149:b0:de:e873:4a46 with SMTP id l9-20020a056870f14900b000dee8734a46mr1710710oac.286.1657720807873; Wed, 13 Jul 2022 07:00:07 -0700 (PDT) X-Received: by 2002:a05:6870:f149:b0:de:e873:4a46 with SMTP id l9-20020a056870f14900b000dee8734a46mr1710691oac.286.1657720807684; Wed, 13 Jul 2022 07:00:07 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::2e]) by smtp.gmail.com with ESMTPSA id h82-20020aca3a55000000b00339ff117f38sm3726085oia.53.2022.07.13.07.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 07:00:07 -0700 (PDT) Date: Wed, 13 Jul 2022 09:00:05 -0500 From: Andrew Halaney To: Johan Hovold Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Bjorn Andersson , Andy Gross , Konrad Dybcio , Wesley Cheng , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] usb: dwc3: qcom: fix missing optional irq warnings Message-ID: <20220713140005.qw3nhjlin4vobhvd@halaneylaptop> References: <20220713131340.29401-1-johan+linaro@kernel.org> <20220713131340.29401-4-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220713131340.29401-4-johan+linaro@kernel.org> X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 13, 2022 at 03:13:36PM +0200, Johan Hovold wrote: > Not all platforms have all of the four currently supported wakeup > interrupts so use the optional irq helpers when looking up interrupts to > avoid printing error messages when an optional interrupt is not found: > > dwc3-qcom a6f8800.usb: error -ENXIO: IRQ hs_phy_irq not found > > Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver") > Signed-off-by: Johan Hovold > --- > 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 77036551987a..c5e482f53e9d 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -490,9 +490,9 @@ static int dwc3_qcom_get_irq(struct platform_device *pdev, > int ret; > > if (np) > - ret = platform_get_irq_byname(pdev_irq, name); > + ret = platform_get_irq_byname_optional(pdev_irq, name); > else > - ret = platform_get_irq(pdev_irq, num); > + ret = platform_get_irq_optional(pdev_irq, num); > > return ret; > } > -- > 2.35.1 > Reviewed-by: Andrew Halaney