Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5474503rdb; Wed, 13 Dec 2023 09:34:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVam42C2DMYNhEQeLMNlfFwDQKTBNddau+GsoWcR6GhbugpVj3iScreEukZAva4ta5QauW X-Received: by 2002:a05:6a20:13c6:b0:18f:97c:4f63 with SMTP id ho6-20020a056a2013c600b0018f097c4f63mr4461967pzc.111.1702488884034; Wed, 13 Dec 2023 09:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702488884; cv=none; d=google.com; s=arc-20160816; b=XQxZMQf9veXnSpmu5j4usXF+bzu2cxVldI3Vz1JA64MfJQDQcI+6BcLZtE2txPyI7L ZzqaePDP3VAIl3sRaBaOZP5MXHSEGB7cAXLadOsr2DPbKXUk4pJoc7T3rcVbo2p5WvO2 yotp/aUA8SPWTVAv8vgTr6YkUJdiEnNAU89NRDL+d/UVuRsG+ht1ocmWoXk/c/SCuvvF 6kGq5MJof86Ka8R/hhfXQvDWpLAdSV7GX9Faj4F09A+GDD4FZljv8k6YTLzECat/DhKT ecVQcoQjPg8CzUphF6b1QDw0meOMu6yjUYF/GgUAxXBhPgvvyMatPPWVD4fZT74aTvdA N0Zw== 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=6G4HhTYCgAW82ve0Ur3jREjYxJnJDgZwQEDmCQml3AY=; fh=Hxb5gUnNV+bWwtcQ/Tj2DtiG8sgxTPNybXy8WwmdxRk=; b=0y5gDV8zDmULcridMhuDuQIHLtdyQENzI0TWrHMkSoAvl8ZiJ5FaOwVAb+pn0DR8VM qrB1yzE51MwXghFcB2tZkhF5IfWv6wUUvxbkeQZruBJDIDuxhpmnIIBPwM0vS8ufyStY tcJyV2YOprGd6Mv55kMc+iGRTivYVSHtS/8Juc2EiBRDb0i5pFbSFYuQ0RZdcXH7PGSa gPRNXTEappKe6/iVRqUAlz75o+SXteAjDSd5aeq5qylnc+eCqPXFGPfV89jDmy0pYEIN SzPvUw/r11zIsL3drxao51/Vt+0Ltzv7uTSzk6oFuiD+/ZzYRq9hCZK3hndUMF3N7Vah yVQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RflLWpvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bv186-20020a632ec3000000b005c65d99187asi9804770pgb.140.2023.12.13.09.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:34:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RflLWpvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 30838828FAE7; Wed, 13 Dec 2023 09:34:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441905AbjLMReT (ORCPT + 99 others); Wed, 13 Dec 2023 12:34:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379453AbjLMReQ (ORCPT ); Wed, 13 Dec 2023 12:34:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC8A118 for ; Wed, 13 Dec 2023 09:34:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C45AC433CB; Wed, 13 Dec 2023 17:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702488859; bh=XMvKivJJGzO03vWy8f4JjDdEsuRHzx4sclqP12DcobU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RflLWpvdFlrwNM2Cxcaeoua4o+aUm/Dx4x+WLZCrIy4ySPNKwJtykD+StIkD8bVp2 BoJvs4rWoo+C4r87vHwDnJHwx1N72ytA6gAoRF/OT/zCOdrh7JHQWZolSNmgxzPwiP Ap+5emmCCjRaXb+h/bNxpW8UQGONLrelWTexEtVtWUI9wq0htjLPOuZ/MY3gcWearA oja53QjLKYwSymzUlxaacsCE2Y07JT6lBoaRwmVdDTV883S78jV/nq247LiOGlM6UD QpTYHDXbJZfKOzoGmPwMsdbbX6lLMqvOR5jJoRf49yHUJHRLnzvwGkC/QypF9dEYHC jUNl6SLdw0AKA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDT7h-0007gw-1J; Wed, 13 Dec 2023 18:34:17 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Kurapati PSSNV , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Vinod Koul Subject: [PATCH 1/5] arm64: dts: qcom: sc8180x: fix USB DP/DM HS PHY interrupts Date: Wed, 13 Dec 2023 18:33:59 +0100 Message-ID: <20231213173403.29544-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231213173403.29544-1-johan+linaro@kernel.org> References: <20231213173403.29544-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 09:34:38 -0800 (PST) The USB DP/DM HS PHY interrupts need to be provided by the PDC interrupt controller in order to be able to wake the system up from low-power states and to be able to detect disconnect events, which requires triggering on falling edges. A recent commit updated the trigger type but failed to change the interrupt provider as required. This leads to the current Linux driver failing to probe instead of printing an error during suspend and USB wakeup not working as intended. Fixes: 0dc0f6da3d43 ("arm64: dts: qcom: sc8180x: fix USB wakeup interrupt types") Fixes: b080f53a8f44 ("arm64: dts: qcom: sc8180x: Add remoteprocs, wifi and usb nodes") Cc: stable@vger.kernel.org # 6.5 Cc: Vinod Koul Reported-by: Konrad Dybcio Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 7a9cb0418ac1..8f95779c75fa 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2548,10 +2548,10 @@ gem_noc: interconnect@9680000 { usb_prim: usb@a6f8800 { compatible = "qcom,sc8180x-dwc3", "qcom,dwc3"; reg = <0 0x0a6f8800 0 0x400>; - interrupts = , - , - , - ; + interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 8 IRQ_TYPE_EDGE_BOTH>, + <&pdc 9 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hs_phy_irq", "ss_phy_irq", "dm_hs_phy_irq", @@ -2622,10 +2622,10 @@ usb_sec: usb@a8f8800 { "xo"; resets = <&gcc GCC_USB30_SEC_BCR>; power-domains = <&gcc USB30_SEC_GDSC>; - interrupts = , - , - , - ; + interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 487 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 10 IRQ_TYPE_EDGE_BOTH>, + <&pdc 11 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hs_phy_irq", "ss_phy_irq", "dm_hs_phy_irq", "dp_hs_phy_irq"; -- 2.41.0