Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3251047rwb; Mon, 15 Aug 2022 22:19:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fzPJ0TOosmmLZaIIlnzbTCIMgPeUSZptkV22Sd5weZa1pe/yFLIr+SCHIFa6oHyZwZh4W X-Received: by 2002:a17:90a:8009:b0:1f5:2e52:1e2d with SMTP id b9-20020a17090a800900b001f52e521e2dmr22552739pjn.29.1660627187530; Mon, 15 Aug 2022 22:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627187; cv=none; d=google.com; s=arc-20160816; b=ibU/chLHM9sLRFNCe33CA7Qy5tRxbKod1bqeeK4jF5lYpAnBtVSXUDMe0sQrNndZew wmGjoc0N66LleZqwMDIlJgO3Jf19xS1lwnTgYjawq+SSycjWhOd5fp4ihFoayzg0He3n OzzmFVF8rrr0mcWFPa/RxXAx4ERVFjLXfSw91tkR7EpzzxKg0ld2AMVvZNbAClk/Wzly LEQDMEIQGuoYSXGwMxXhSCQz9yGXwVcGWkM2XlN40VdcH7I0bIchDloxpyGQpL0BRw8l wfcIWf3JR7T7E3NqtADHbqAzJLHwvRRJRtRlSyM1YhjYIVhX38+VJBq55kFY9cv1oh6Q 5eCg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ulx/D51RfDgkNWrC6glyxK3WHi9t5jzpbJuIfLNOR7I=; b=UceM+AAbdSfgyMux0Yx9GD4WtmEtRMdPNR2l6hcx4QMX+u7xb1JXl7W9VtbdNg2hdI 5QKrNsaZHSwFDPtlJ1UoRBlDwnrsyBjSHl5+g7PNKdissK2cvfbRBkJkyxyDHgakuuK0 YMetAbpPNCtaGVlLfOZordxq+pIsb/rUk7rl7BxAjOVYC2LPeyJgw85PaPW07M1rwa0f 5nTx2iCT2DB+vD5l5OuqEmBs0v5MEQu0LaJphkexTK4j1lya9BAfJkfGO36JNFTnkVO7 Ok8A/O1JUJYOVs7bciArXtYdXjxiFOFxUjR9uwFqAklLpxGY/o7Inc9WfhunrQ6BFfQx PNyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VtCnKOoO; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a17090a461800b001f27babb6fbsi10931550pjg.56.2022.08.15.22.19.37; Mon, 15 Aug 2022 22:19: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=@linuxfoundation.org header.s=korg header.b=VtCnKOoO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232062AbiHPEmw (ORCPT + 99 others); Tue, 16 Aug 2022 00:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231802AbiHPEk0 (ORCPT ); Tue, 16 Aug 2022 00:40:26 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81983D1E07; Mon, 15 Aug 2022 13:33:18 -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 sin.source.kernel.org (Postfix) with ESMTPS id E1467CE12E8; Mon, 15 Aug 2022 20:33:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCD21C433C1; Mon, 15 Aug 2022 20:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595590; bh=V8H25ZulhY1oWUWS8KPaAgWDB8FzsNqGAGC4m5li3/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VtCnKOoOfJzVMqh20VZDYnwvuryYL4yFhSzzE0jUf+JaVFdozpbTCqjafuXrcq/tz rdGpZVht6o000hyqnDsxFHvx6khv+zQLXQ1N3+6cTrEht9/V3EdZdIKRTVuVfKwr+7 ouGv2ShKSGDlV3IF+ltencmCn5aDXZ2vYJeRXAj8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Halaney , Johan Hovold , Sasha Levin Subject: [PATCH 5.19 0812/1157] usb: dwc3: qcom: fix missing optional irq warnings Date: Mon, 15 Aug 2022 20:02:48 +0200 Message-Id: <20220815180511.979476499@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 From: Johan Hovold [ Upstream commit 69bb3520db7cecbccc9e497fc568fa5465c9d43f ] 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") Reviewed-by: Andrew Halaney Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20220713131340.29401-4-johan+linaro@kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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 6cba990da32e..3582fd6dfa14 100644 --- a/drivers/usb/dwc3/dwc3-qcom.c +++ b/drivers/usb/dwc3/dwc3-qcom.c @@ -443,9 +443,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