From patchwork Thu Dec 14 07:43:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 753974 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 475F513AC5; Thu, 14 Dec 2023 07:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="osFoWmK9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BECA3C433C8; Thu, 14 Dec 2023 07:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702539819; bh=OEMk/nxMTR+a3ksA2UJ1yTut+dCnmQnWva7ppIneGCc=; h=From:To:Cc:Subject:Date:From; b=osFoWmK9rwckrPYfephyKYoWACTfSb/oyYSpzZ71wSgHuVd5F+y0II14i2SQ4SLRQ 3N3GPkj7/NQMtXu/JbC+z8gFSjlBufcTnavtSou6wrB1CutW29Jk8d6axLfuMgreFF I5qVRxdgkmgnCq9IHdiGWWZ01QuQM5hz+bcax6GrPzuDWqjuSl+nROJPBj+RixWP97 QRGQBObLS7S7G77H4+hBMxkNvNyrwgKzc2WOtNVchvG7wcGYUPzJO78UST0I3oWVb+ OG2GEkef9Cz32wddWMrqn0aV4eXSYK8ihOlCGMX1kAvBfr2XZLCXuNrQLyLKCQzVTJ ODq5tQBWGGOpA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDgNe-0002s4-1A; Thu, 14 Dec 2023 08:43:39 +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/3] arm64: dts: qcom: fix USB wakeup interrupts again (pt 2) Date: Thu, 14 Dec 2023 08:43:16 +0100 Message-ID: <20231214074319.11023-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 and Krishna for providing the sdm670 PDC interrupts numbers. The sc8180x SS PHY vectors I inferred from sdm670/sdm845/sm8150 which appear to use the name configuration. After this series, only sm6375 remains to be fixed and I believe Bjorn is trying to dig out the corresponding vectors. Also note that these patches have only been compile tested. Johan Johan Hovold (3): arm64: dts: qcom: sdm670: fix USB DP/DM HS PHY interrupts arm64: dts: qcom: sdm670: fix USB SS wakeup arm64: dts: qcom: sc8180x: fix USB SS wakeup arch/arm64/boot/dts/qcom/sc8180x.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sdm670.dtsi | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) Tested-by: Richard Acayan