Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2924807rwb; Mon, 15 Aug 2022 14:09:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Vj27jVGoa8eQg5ZxMsbNq7i6hdc/zWFl2NkYxyjKGTb261kdOBCAf7b1MmKsqT2PZ9r+Q X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr16552313eda.38.1660597786647; Mon, 15 Aug 2022 14:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597786; cv=none; d=google.com; s=arc-20160816; b=hlOHVcAfr8t+DHJTq7s/Ed3Ijn7de42dNWvLCEpRe2itblOJUndQ0XZuyezbOysql2 AXmJPlbiqMcZTVAZGXMHyb5dSZpLGaMcP2X8aWdM0KZS54jqjuVos+obMJa5DRRIvwIv kRKZUUqjUJFPTKDa02qJ3E680MURvU92kbcUIc9NdOQuNJQZfjvS9o54PC9D52cLRTSv suNyI8bd4uRE3zIkHQdOr0NcpS2KNbv8ck51u6+t5rBqXr5DCcPo6ZadBiiDJYBELfeu q5Vzpowqshd2eDfdTbTfqDdSVfEopxNM6kwUpGaBA8mebq5hW3/KEky1dkftAM8B0xLe zbvw== 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=/RL03F1TQWzrNw3+0GNdGg752G1Lv7KgP7BYqK+/Rrc=; b=jAfo5Tip1O52behh5fqDzlsdHri1F+D7pWbgCUiCWuY+VrEQoM0bDM7jAGLM4CBw58 EXPHuuUP1TZo5a2IrqXGQdGktQBRTHqyoefSBQlJPwer/CF5FBaRBVqAxJchS3JIJQPo ZoHiuLoaaAFvpyoXKBkNFD+vgLr0tVYm6lL8kuBOTsp7F+EzIfcb1nZLsolJqi2pGIJI 4nVL1h6ZsJkBwiIY1wo1C7ZxfVg7Qb9FbjFoCcajrN4JaTlN5qrfBV6UjYbJTDqfFI2X Jgka2X4bBJ8S1kZqAP/Zt1WS/0UOawRiU9CsO9YhtLlSa+EfNY+Kjg3JOsbZl8weRat1 9eQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ah28mLwN; 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 dm12-20020a170907948c00b0073056870528si8278784ejc.888.2022.08.15.14.09.21; Mon, 15 Aug 2022 14:09:46 -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=Ah28mLwN; 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 S244128AbiHOTYH (ORCPT + 99 others); Mon, 15 Aug 2022 15:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344714AbiHOTV3 (ORCPT ); Mon, 15 Aug 2022 15:21:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2246A2A42C; Mon, 15 Aug 2022 11:40:26 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6450AB81082; Mon, 15 Aug 2022 18:40:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96E4EC433D6; Mon, 15 Aug 2022 18:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588823; bh=aYrQtE/WimhVTbkxIpPXoPN1X7OpyaVXaJOaKkmQQ0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ah28mLwNZ/59TcJ9sI4Sey+EKyY4oYqoVRoemh5WFwRihGXWTrImMAdIQkT2F/9l2 Y0x/5teXKPF37ZSU29RFGCu+wLgaVOdP3K/4AkuWpwmGtujTnQz8QSVpVSIIh/PCW/ TnCbvIBOS/0j1RNUu1/vx18z4DlABPBvScFb03Zo= 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.15 494/779] usb: dwc3: qcom: fix missing optional irq warnings Date: Mon, 15 Aug 2022 20:02:18 +0200 Message-Id: <20220815180358.396095189@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 b81a9e1c1315..873bf5041117 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