Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5474610rdb; Wed, 13 Dec 2023 09:34:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWkJ0FTDCGzstxiKwTWI5kjCEsrO08Jebv+UcgknZAl5RH3qpoMzEl30hQuehRjR+bIRYa X-Received: by 2002:a17:90a:4588:b0:28a:dfa7:3aa4 with SMTP id v8-20020a17090a458800b0028adfa73aa4mr718786pjg.87.1702488895328; Wed, 13 Dec 2023 09:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702488895; cv=none; d=google.com; s=arc-20160816; b=BJIXpCwu76r76UH35oiD5yGwDZt7ltS5GNhFCFCSuDZixc3+lt/ifjNuxD50IuFqTF 68M/qfPNum6exzdMoiKfabeoeVrdgnJEGJftmqyCyDsGN+sbhle4VSc1Knqo5ACSiCUH tZJlC0n1H3XsUuJ6Diffsv1/Py4M2MvospLKe7PJYR9q2KtzUsim7504+SOukCqVxS8x 49taboDw5S2aqR6yofRy+OOUvG+nRwC+U30GHg0sWvmRj+m1aox36IvYbcgwyXGy5JdT bUeHrWTGW1gkah1RdfHS9FlJqIfyIpoi5OhxLirUBtGm1CjgbrVHWj6qwTSIDSgwxLwZ p9PQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pZGK4tZ6KjAf/GSPzMIdz+Le2BT//WGx3EycfcNERW4=; fh=Jl5dRdmfI3xIjXWQ5Oa2rck7kh8r3TTSqefbBaNh7UA=; b=zhl+qg8d0ZHqMyOOl8z42JvDF+ne3HyIxLUxcHJBW13T/9RTMgA58B9yhX8oa78aB4 jwEXZqAU/d4wYS7Oyr3WVHXT8gXBuk4CB26H0zm28sBkeMnvja9so5uKmOAWfYRfA6yV LTt0yDtPdxFqHV74sETb2f/QWXZ4WSZpInWzHE3HAqTnRpjMnaEV1vpjGwWdMXCLtX34 t16Znz8cYeMmoXQxwQ+kIP5qEPJyzvlE5/x+wYs7FzuaKVim8cZCM0LUMf5LXgKkSPAc rh6SYuvQ+4LjVApsntjzdzg1UPtMhCeOTLjB/OcyrhzDn2AxRjsvFIIaGQo+S4qocy8h d4dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h8oCRKep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d9-20020a17090a114900b0028ac6190f03si2720447pje.8.2023.12.13.09.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h8oCRKep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 23E858039D34; Wed, 13 Dec 2023 09:34:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442055AbjLMRe3 (ORCPT + 99 others); Wed, 13 Dec 2023 12:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379454AbjLMReR (ORCPT ); Wed, 13 Dec 2023 12:34:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3BD9DB for ; Wed, 13 Dec 2023 09:34:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 916ECC433CC; 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=NKdFm0dpgumWF6a9vHnaczsLx7HZHodkaXNcxMTtQdQ=; h=From:To:Cc:Subject:Date:From; b=h8oCRKepJGRSe+bxbKuzY6Owt0Lw+V20bQv0j4OEGVi6cnhila9yei5P+Bh37eREW //4bvfSmtUy5/jvM+cxXh4G9nX0N0/sfdh6L0mpuJkcPvHspXpzSofHtUKVnnokFBe lCbC2NReNH/F1/36LQ1ZmtIiD0laJKjUPicRBDl/AnjZJYbobb9i6RcdMD1lWJOGXu D1QQRk2971zijY7HW3NAC71gL2mnHU5ykEF0OzMSRpZH7dwRs2Dka7w7Q+MuRshkiA E1R0p5GRf8x6LbRgdktAk+A6j0gQ0aZUWdGnc8MHzWmn1M0EdNGWj2vbZq0t9BVj1Y ro0t0f1lUV6xg== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDT7h-0007gu-0z; 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 Subject: [PATCH 0/5] arm64: dts: qcom: fix USB wakeup interrupts again Date: Wed, 13 Dec 2023 18:33:58 +0100 Message-ID: <20231213173403.29544-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 09:34:52 -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. While at it, fix also the SS PHY interrupt so that it too can be used to wakeup the system up. Thanks to Konrad for reporting the probe failure on sc8180x and providing the corresponding PDC interrupts and to Krishna for providing the remaining PDC interrupts. The exception is for the second controller on sm8150 whose PDC vectors I inferred from sdm845. Note sdm670 and sm6375 need similar fixes and I believe Bjorn is trying to dig out the corresponding vectors. The SS PHY interrupt on sc8180x should also be fixed. Also note that these patches have only been compile tested. Johan Johan Hovold (5): arm64: dts: qcom: sc8180x: fix USB DP/DM HS PHY interrupts arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts arm64: dts: qcom: sdm845: fix USB SS wakeup arm64: dts: qcom: sm8150: fix USB DP/DM HS PHY interrupts arm64: dts: qcom: sm8150: fix USB SS wakeup arch/arm64/boot/dts/qcom/sc8180x.dtsi | 16 ++++++++-------- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++-------- arch/arm64/boot/dts/qcom/sm8150.dtsi | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) -- 2.41.0