Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp687857imw; Wed, 13 Jul 2022 06:20:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vY+B0LPNC31FtPcmsKhN49s7npwoSNIm7Sgau7SIRtVuUnJCO+Y5LYUqW2O87sP+Lc49nl X-Received: by 2002:a17:903:22c5:b0:16b:f00c:3361 with SMTP id y5-20020a17090322c500b0016bf00c3361mr3110897plg.32.1657718447835; Wed, 13 Jul 2022 06:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657718447; cv=none; d=google.com; s=arc-20160816; b=FgVzafbvb8mRvhFr32j7MnvpBk608NOmZGEuxzQprzUGmjr2xPLhk5Ee7YAqg1YuFE Oq/ockaqVNjzyxouqO7YhfgDSBEHxzE6YS1lWCbGM9f90MyDwzwtNVNqPcZMg+npGSAD QoQMPw8ElP6Ck5GwOQj6n6hbjPsj8bsAAlTEDS9wSDtw4ULBSiXsG+3aP/PFjkPYS9Bo E/B2Rk9/jWE5DZICYrp7pGNUtkcbsA2eBiDkZtKm/0j80Yz3Fd5BcEJndJEqkCvsVK9z NLJwQKSV0D3AJbNGgSdTsRb9kR+FLdzyctrsNJMkVpgJUMC82Mutf4xqt18ovoxax1iO IiYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V3etzRstme6sIrr4b4sfpKWVKBRNV13Aai7fLmyaROY=; b=ULW2TJuoCGpDi1Opri2yC6V/plVj4I1h+Yw+LMkl+mUH+ItTpo9qnotxUCO3XFdNzv 31oAtsiloJ+B1WB4ZPcsTAxIU9/4+AIPiUQ4BoFJyAd8goc3bqjdUVDnnoMDDfOEPH5B mfdCL/Tun1Glrk9xPsLkcffTB0TMNlbfBBAQsFpLnRZ3BwwjlPj0OOvDFfA2rL3gxZ3L ugrnsRUryrj8/qC2II8XgOAlSt8w9tI7tQsEzPWU6/3Sy6CBpyA0C5J3vCefzMWM8Ubv L+bI5y5+7CzKNtFj5+5H+zjuZKTu592p0Ah77QJaVWm40vdgc7VlXq1+z7+5Ulckr62Q N3Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lPs2ZZ9z; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902ba8300b0016bd99a3e47si17181341pls.136.2022.07.13.06.20.35; Wed, 13 Jul 2022 06:20:47 -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=@kernel.org header.s=k20201202 header.b=lPs2ZZ9z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236245AbiGMNSB (ORCPT + 99 others); Wed, 13 Jul 2022 09:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbiGMNR7 (ORCPT ); Wed, 13 Jul 2022 09:17:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF508C53; Wed, 13 Jul 2022 06:17:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4AECB61C3A; Wed, 13 Jul 2022 13:17:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93B78C36AE2; Wed, 13 Jul 2022 13:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657718277; bh=nRLINNBJCDhGmMGFzIpD64NSda4uc+7Z5ulu67uURFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lPs2ZZ9zlkPigTxao1+C0Q7yCwqxv6bTj4xx7OD0pHxChls3CAhqpo4rhlCzUjo8I NW4fq86qpr+hZumufZlkHlxWIHILzEbnuIle/rRRoV8CAdGUj1R/xBOge9tfoOtc8I Ng2Mv51o/Lj3VlG1vr8ZAMIkHVZgjyRIh8I2v1KPyW3QZ5M8Qw3VTOBg+++05LbGGw 0etcV7ganfD+8aCuXK2zw0w+euwHQvyi3gGT1hJWlVCfSkTp+wzLZZh7D4ppZGfv6+ shIr8xEgasIgz4qd4T/2R+8JxYXneQZBVxQaR+6SF+sfSij2/LYZUmSz1qkxHJju1K fxz7neoaea+Vw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oBcFd-0007gK-8m; Wed, 13 Jul 2022 15:18:01 +0200 From: Johan Hovold To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Bjorn Andersson Cc: 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, Johan Hovold Subject: [PATCH 3/7] usb: dwc3: qcom: fix missing optional irq warnings Date: Wed, 13 Jul 2022 15:13:36 +0200 Message-Id: <20220713131340.29401-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220713131340.29401-1-johan+linaro@kernel.org> References: <20220713131340.29401-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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