Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2364342lqp; Sun, 24 Mar 2024 15:58:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6ys4/xGZzkLIeY/yG/5xttGudTRurBDmTuUzGDsZIgLgnwgqupnJi3zZbTkv0otQcHPNnspjhGk9R1WlSnK7srZ9Ni/9yOPj3GWDilQ== X-Google-Smtp-Source: AGHT+IE3LzjAo7Oepbf7VY8Zp8jJJzwI1GYXTmzhNqTLkfuXOXYRU/czjbRS9MQqZ6y9bgK2oK56 X-Received: by 2002:a05:6870:d8cf:b0:21e:6732:76bb with SMTP id of15-20020a056870d8cf00b0021e673276bbmr6545967oac.39.1711321083971; Sun, 24 Mar 2024 15:58:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711321083; cv=pass; d=google.com; s=arc-20160816; b=h2dJBgvuIVlMgjkCS4t9MStvlORHcyw2ZxeFZ/8CmP54okUlh6JiWM0SkRYNe7PoHk 5QAEsMaHkkcTAUlbWMlj0N1mwfo0nwoyAZIfdHqT5Z6w0ArUdjKT1NiUE6mVldYvkeLW uWk4f+3a6ACiNut4zbnQ0qRtmmwF4qdL85SpgGBmO0SER70+ramPOvjG4zOh5D6RR/Ls fh7FxtpCrsteU/wIkDT1xyFbFcATNV/5SuGrsiRX8uZ/EoczQLnM81agb5sZJHQqHtVO ec/5QP232nFykznsUxascE7id+zZbJSYC6cVr2WHQyEDXS1cNnrwT6vhcNxQFV1Qnk8t PnZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3ToNWCZ/WrYaznNzKJOyTn3jmF47XpxSfd3XMMxMqT8=; fh=MpXZuH2d0NeDXeBD60sRqyENXm9+1isBU1kX16y8of4=; b=dx8HjscZZwrcO55aSbNud3HfBF6rCM5Ti7KfHJaRBDBxuEbk/UucDZTW1WNfiyr1WB RFRjl2Hx/UqTCtFEK75aZi2jUSITjSFV43MxsXCdQiqaxwMNNYjPvN+vwiEMejktkq68 xJxUauQpUgGworBum8EPvoM8fl99N2NTa9TbtmLksYbPp2d7sy+6BivfWrWKaGDJIahI FH1Lx0VbijcL9yKbIf+wxxG2dVUx72aDeoeDOcaErMHUAtQY8g312n8NY1p4tVcCWtvj dSP6zTr2ta7Yi3UbIOwaCsT2DYreBZVzav6YllXjgAqU4UHYW+bSl3fNzP23Z2O7V/7U PhCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tR60MWxl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k16-20020aa79990000000b006e628ededf8si3971165pfh.74.2024.03.24.15.58.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tR60MWxl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 942A1280F66 for ; Sun, 24 Mar 2024 22:58:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84FFA48CCC; Sun, 24 Mar 2024 22:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tR60MWxl" 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 98CA812CDA6; Sun, 24 Mar 2024 22:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319796; cv=none; b=OtyuODrnjs5cJz8JqkCeG5WNI2N6Jq/mlZ3cQh6Mvxdenr2P4/ts7Gv7QQGFGs9DNvc2oKgWVST6X2XeCMUjjiEtJs01uKl8NNP64E/gFzrRR0ONgs0v0wGR0GI6yMx8AzBcyhYbdKXmq7qzRfGIkyBPoJ5V9lTr8Mxz4BaowJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319796; c=relaxed/simple; bh=RBVPrMoX2IbuTed5Qqc5/hGraWjdBztCcc693+RJwvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OaEOQnH8BROClMlsrHpkwJV+PMZiMbDHvFPDv0tK0ftiAShKgj9QxGjfg4nouJZ76DVHYC2QnhYBc9Hk8CxndBwPXpNZmKxTCvrWNfK7lySPgkyQq1AzTUJ0LxyA36w+Df/z3076C2P5mqnwwCj4kJ+HfRwmOKRQCIkzhc3wudc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tR60MWxl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D68CEC43394; Sun, 24 Mar 2024 22:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319796; bh=RBVPrMoX2IbuTed5Qqc5/hGraWjdBztCcc693+RJwvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tR60MWxlq0foMvpyADuoqyZ889GTWU9c4iWbVvAl6mpHS4dzRzCpVsB/+crRiQKsd gq4rmMZniWFViOnVWRQqAO2mvJ1t1whRvKOGlE+bNidISyoVrFaECr13dVcjPYapTX nxQchKfJZtFkjxvAc/HBy2HjlB14ETJH7ooESM+ueSkHhGeZuvf8ePSO52UbuKudFh OLzFrvrMBm/jii9SEQMRFBUUlBlp/agKpdzjvNeMCONpb1bki2DeXuRf3NGmpHPwrJ rms/jfuHCoGGgNDd4/xLhhZ2LVKisxem8D1B+ViGlm3Lu/30TtFLa5jxwM7DxjGOJm YumI4DVSuyQaw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luca Weiss , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.8 097/715] arm64: dts: qcom: sc7280: Add static properties to cryptobam Date: Sun, 24 Mar 2024 18:24:36 -0400 Message-ID: <20240324223455.1342824-98-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Luca Weiss [ 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: d488f903a860 ("arm64: dts: qcom: sc7280: add QCrypto nodes") Signed-off-by: Luca Weiss Link: https://lore.kernel.org/r/20231229-sc7280-cryptobam-fixup-v1-1-bd8f68589b80@fairphone.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 83b5b76ba1794..ce0d24ee7eedb 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2345,6 +2345,8 @@ cryptobam: dma-controller@1dc4000 { <&apps_smmu 0x4e6 0x0011>; qcom,ee = <0>; qcom,controlled-remotely; + num-channels = <16>; + qcom,num-ees = <4>; }; crypto: crypto@1dfa000 { -- 2.43.0