Skip to content

Commit

Permalink
arm64: dts: qcom: sc7280: Add static properties to cryptobam
Browse files Browse the repository at this point in the history
[ Upstream commit 40ec6a2817d927367461fb0335b42b0d494ff927 ]

When the properties num-channels & qcom,num-ees are not specified, the
driver tries to read the values from registers, but this read fails and
resets the device if the interconnect from the qcom,qce node is not
already active when that happens.

Add the static properties to not touch any registers during probe, the
rest of the time when the BAM is used by QCE then the interconnect will
be active already.

Fixes: d488f90 ("arm64: dts: qcom: sc7280: add QCrypto nodes")
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20231229-sc7280-cryptobam-fixup-v1-1-bd8f68589b80@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
lweiss-fairphone authored and Sasha Levin committed Mar 26, 2024
1 parent 0901889 commit 8b3f6b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7280.dtsi
Expand Up @@ -2345,6 +2345,8 @@
<&apps_smmu 0x4e6 0x0011>;
qcom,ee = <0>;
qcom,controlled-remotely;
num-channels = <16>;
qcom,num-ees = <4>;
};

crypto: crypto@1dfa000 {
Expand Down

0 comments on commit 8b3f6b0

Please sign in to comment.