From patchwork Wed Nov 8 17:50:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nia Espera X-Patchwork-Id: 742659 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 68AA032C75; Wed, 8 Nov 2023 17:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="ZFHaG5AU" Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B5E41FF6; Wed, 8 Nov 2023 09:50:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hqS3Xb8zxQKiAcPlqwtp/fc9T8jT+De7Oynf6zktYA8=; b=ZFHaG5AUSipcpRii9rfZlhmRcB /ctme7NUmduwjYKRheCbQQu5FegffppHWJAb+w82yLEf/3vNgBwsaQBjotiKZJZcnCt6apjzsoN0k 0MCIM5tm28Peha6d1D3/6Sq41TX6bOOPYVCZ11okLL7zw9Ij/rZdFGk2qenVBAXIO6k+hwH6/sa6n twrXWg0HK3TtLTqz9jqfBXfkgN/FB8iGKZxXs88sBU0ITgXPYQxuQjR7icnDBml3s+W0xb9kUeDLd K61xDm6tg+VSQtDjUjRMFa5MggxAWi3v0USrTlpS2nDTrdOmBk/dsPnz6F5ByLbyCQN+Xq9SfyO9z DZssGpYg==; Received: from i73190.upc-i.chello.nl ([62.195.73.190] helo=[192.168.68.111]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1r0mhG-000vX4-II; Wed, 08 Nov 2023 18:50:34 +0100 From: Nia Espera Date: Wed, 08 Nov 2023 18:50:28 +0100 Subject: [PATCH v3 4/6] arm64: dts: qcom: sm8350: Fix remoteproc interrupt type Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231108-nia-sm8350-for-upstream-v3-4-18a024b5c74c@igalia.com> References: <20231108-nia-sm8350-for-upstream-v3-0-18a024b5c74c@igalia.com> In-Reply-To: <20231108-nia-sm8350-for-upstream-v3-0-18a024b5c74c@igalia.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Vinod Koul , Krzysztof Kozlowski , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Rob , Clayton Craft , Caleb Connolly , Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, Nia Espera X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2332; i=nespera@igalia.com; h=from:subject:message-id; bh=TP6Qt/wFuV5FNgiSUkAeQOpv15rthluHHEVgMBNHlOM=; b=owEB7QES/pANAwAIAfIkzsI3VuKtAcsmYgBlS8pkj9ajhK5XaF//j9m379+tcQfbZgBjNAbrp WJWIn0L5oiJAbMEAAEIAB0WIQSBPDomug3slDJEnubyJM7CN1birQUCZUvKZAAKCRDyJM7CN1bi rVivC/9KHuZ9PGZKIDKsDJFOPrIwoRc4by8G4gcthzOfdfV9BY8zYiBVXCbphaENVZ9C124/C/2 72Rz+WVyA2Ulvyeb0DD1AU98YR4bp/xcRFOqrHMMrx3zR2EYwAGJLfwJQ6mFutWakDyzCpwAflS ndBOSg7yMufnZ5l20HNcC18ppCA9xhAzViiqAVVRN1+I+nKInEYPhTE7iSsjnJyjumKqZWiPanE k071S/ejb6wQBaIcB6davCkA2keqUNgxDWUPG7jc69ds5BTAl4CXWpdgfgkUb8L9mAc8kQmZ3rQ L5c4Rl4TzNwdMvSe6dNgAp6kGDh0KIP9ms20UIn9HQ7xB8zsRAtzCNFG5F5Hheq70kapRmKFcAW oN1Bu949VRo2/NAdwUExRz0hLA+24AwRgoABb0G6+Dw+Ka578CymBWZF6m5zgvJLwXtxOCI7OHS /CUzBPmNJYiqHwycX3t2ztSVn+YHMqqdzWyUlN8n4yZOU27NaBk6zKIPI6DMM24wgdN0o= X-Developer-Key: i=nespera@igalia.com; a=openpgp; fpr=813C3A26BA0DEC9432449EE6F224CEC23756E2AD In a similar vein to https://lore.kernel.org/lkml/20220530080842.37024-3-manivannan.sadhasivam@linaro.org/, the remote processors on sm8350 fail to initialize with the 'correct' (i.e., specified in downstream) IRQ type. Change this to EDGE_RISING. Signed-off-by: Nia Espera --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 6d12066389fa..7d5ea338a870 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2020,7 +2020,7 @@ mpss: remoteproc@4080000 { compatible = "qcom,sm8350-mpss-pas"; reg = <0x0 0x04080000 0x0 0x4040>; - interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>, + interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, @@ -2062,7 +2062,7 @@ slpi: remoteproc@5c00000 { compatible = "qcom,sm8350-slpi-pas"; reg = <0 0x05c00000 0 0x4000>; - interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>, + interrupts-extended = <&pdc 9 IRQ_TYPE_EDGE_RISING>, <&smp2p_slpi_in 0 IRQ_TYPE_EDGE_RISING>, <&smp2p_slpi_in 1 IRQ_TYPE_EDGE_RISING>, <&smp2p_slpi_in 2 IRQ_TYPE_EDGE_RISING>, @@ -3206,7 +3206,7 @@ adsp: remoteproc@17300000 { compatible = "qcom,sm8350-adsp-pas"; reg = <0 0x17300000 0 0x100>; - interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, @@ -3511,7 +3511,7 @@ cdsp: remoteproc@98900000 { compatible = "qcom,sm8350-cdsp-pas"; reg = <0 0x98900000 0 0x1400000>; - interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>, + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>,