Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5474541rdb; Wed, 13 Dec 2023 09:34:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7HU4SsieApqQJbx6qk9WNyYha2D9RulcmZD54VqTR67r2M3hHpCe7XXq7Wn73/mi524Bi X-Received: by 2002:a17:902:f68b:b0:1cf:cd35:f823 with SMTP id l11-20020a170902f68b00b001cfcd35f823mr9606835plg.65.1702488889014; Wed, 13 Dec 2023 09:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702488889; cv=none; d=google.com; s=arc-20160816; b=k7BBpxEcjAz2MlPUio7/0Gfr+sY9ZAwBInYYNTz0J9urnwoh5fSBxN9byeFXDdLOLz xTczEC/rrXm8fc14IAQvCktGsCcpYQ0DyesREmlCfJ+3WHDeuR+P76YKglsqIGtv2KvS 2N5/gH4I++8PgetNjSTLtFv4QyyLI6StLuZYfB06YN8UlKWRib52bhyGFbYDTgWrtnJy eEjGr0mEm8MIvUTGsMPxz7FBc8qJY4o33V971ZRDpiHa3YCWeOvcXGr4gofnpTaP6z02 xFWTokkOs6cZSfBf1zxVI5PU05cQF0+Mrehwtk5GBh2W6p+1REzmWh/YgcaU6wCYR9ao /GLg== 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=PnANu+p4Ca1TG+bjcEDJgmJyDgQNM7SAqaFt1NTsHGw=; fh=W0vwo+G1jZ0dBT5Mul4bPyEkDBn0Et30sNu4+Wwm3do=; b=dHUn4ma3jf4Jx4+TMMdPiTBgb6rvaIScPUC4J3Hn64lav2wxdK04HPTtyIoEutkoDk NyWIqh4C6I4K043QrvMvHKgjG8ZhFxXS6OfW8P+vhhe3r2pMnN5XdZiOKYxzpPyrEV03 SPyaNH5NY0csRVubgZDTMZkobgPb1jU3zpOt7EE/wTqAaJZ+L4aTVmLhaHr5LbFVbOtR nTCLd5kEk/x0QTDbAMKzBkCslQn51gWCS5IIADVrm5Qrw6ZMfaoM+5S/ChJpyMtgvO33 o251Goe+MJImuweUiDyu6mPV73QIHHAd4CwXy+2er0w2IBlhdepYOE5llV0CEH0+qVKh +zrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X/vsPDIJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m5-20020a170902db0500b001d015cec684si10214466plx.238.2023.12.13.09.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:34:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X/vsPDIJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 72606822B709; Wed, 13 Dec 2023 09:34:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442031AbjLMRe0 (ORCPT + 99 others); Wed, 13 Dec 2023 12:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379471AbjLMReQ (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 EA8B2109 for ; Wed, 13 Dec 2023 09:34:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC4BC433C8; 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=z5vRF5xTB2DyU68YJt7eopt5kMmuIX3FIrosJmZo00o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X/vsPDIJdBvT0W9Nu6dz9a57imxvUncs9l5zIGABdEQpyYkMQdJgI2BTGLD5RfLUz 3/e4t0euMXGVnZh/5UzbJd0kPBArG+Y60/uJ5Z2qu49gHRARCNMwVoV+fmGTNjuEQC k3zfR8GCtH3kWTkzE+M3Bu7fPJEIB/mgZOWxOtD6h4jlcAje6BZyV3Uwkqb8uzKGfd M0B8THnNIJAPmVGJZ5+G7rWWrkVrtGYKaWqlyFdgmSDHZ1GTqjb4yUL1mdRnMjNvLN GHI+El/PyoJujlkTfG8VvcL5w/tw3VvaGQePlawcoSxLg5jcYh+A8e+Rhxvgref/1/ N1I2FcHD8mJjg== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDT7h-0007gy-1Z; 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 Subject: [PATCH 2/5] arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts Date: Wed, 13 Dec 2023 18:34:00 +0100 Message-ID: <20231213173403.29544-3-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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 09:34:46 -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: 84ad9ac8d9ca ("arm64: dts: qcom: sdm845: fix USB wakeup interrupt types") Fixes: ca4db2b538a1 ("arm64: dts: qcom: sdm845: Add USB-related nodes") Cc: stable@vger.kernel.org # 4.20 Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0d2be706505a..97ee02469d69 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4053,10 +4053,10 @@ usb_1: usb@a6f8800 { <&gcc GCC_USB30_PRIM_MASTER_CLK>; assigned-clock-rates = <19200000>, <150000000>; - interrupts = , - , - , - ; + interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>, + <&pdc_intc 8 IRQ_TYPE_EDGE_BOTH>, + <&pdc_intc 9 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hs_phy_irq", "ss_phy_irq", "dm_hs_phy_irq", "dp_hs_phy_irq"; @@ -4104,10 +4104,10 @@ usb_2: usb@a8f8800 { <&gcc GCC_USB30_SEC_MASTER_CLK>; assigned-clock-rates = <19200000>, <150000000>; - interrupts = , - , - , - ; + interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 487 IRQ_TYPE_LEVEL_HIGH>, + <&pdc_intc 10 IRQ_TYPE_EDGE_BOTH>, + <&pdc_intc 11 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hs_phy_irq", "ss_phy_irq", "dm_hs_phy_irq", "dp_hs_phy_irq"; -- 2.41.0