Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2376292lqp; Sun, 24 Mar 2024 16:36:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVA82STR7HtuX9h1PWh7zO8+ORISfxM4pRCji5Ikk/9rV5vmSGpY0PrU/w0qJHkk8+O8ULrFJXm8pT2L74Zhbyz3u5oeyXWZWZSKoTJ7w== X-Google-Smtp-Source: AGHT+IGAbVuPG26QFnOOa3iti5dibHdiTSQHAofC6vdSJxZr7NawldROKxE4LadDN3U82HayWlk4 X-Received: by 2002:a05:6214:1c87:b0:696:315e:4eeb with SMTP id ib7-20020a0562141c8700b00696315e4eebmr5811711qvb.8.1711323390327; Sun, 24 Mar 2024 16:36:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711323390; cv=pass; d=google.com; s=arc-20160816; b=DVz6bpQhgpZJ8+/VueX1fzUUezFSv2dLDghs/TjLtpYCQ2YlSFV44/K3x9wHbZjDkh uELHwNWjgbmckjNW0I/BmcrrBTtE2y+9M6pGfpAFHXzVT3s5hqSyNCcfPk6YROeh0nc+ goHOGDjKidLi7pkCQsoKhZ4588Dz+JaR/8HuqUJkOQZ7X6oguAuFaeBAhgyO2a4XEFPX mdrEHLmlKcPP7W0qbtWzFRZmtCn7GbeknebgIBEUipuIU7rUeln7O4wz/0dd4Jc2JxNV 33hdPpqNpMvFZ5ZTDs4dGO52AYDS7FTo7iUkZlAMawyGo/pYn0gWcGrQGn5y9Aq/jMPS UlLg== 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=wO6tCwobfwOzDqYFu7qihhqT7lmi4yHH3gF0P1Z+pNQ=; fh=+19fAqZSmTCNkPYWcddBqLBdXdwIVZYNBxxfQEiGXSU=; b=LjxAO+tmOo/pPx+DgzwGcjiUa33Sq1nApukd23Udo5CKbnzIHw75B5VBUxboVK9re/ VO+ouRALAuAPbX/mNzgwJxlaTK9h9LvKw9FDnOBaC3CrLbc6E4z3skYImQHyZJHJw/RR 8TBoYQn8WFSS0QH+lLtlHIS0ns+4oURkiJORVqV7RO0RhE+R/djUP1Pi/IvBDddDfQqr CnSIaKXuKGF0DbDz/ZvkHBKEx7n+Mh9NIQ067/6bJT2WhUliZdhF6WYg57L2clJKIgG8 p6DmZi5pvjB0+ziOVDk2DdfNASlfg33SxfnrjvQDTcxn2SRUNlh05Ci0MHOHFUQs+WrI NSVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kgwspFE0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id oo14-20020a05620a530e00b00789ee0124ccsi4240985qkn.151.2024.03.24.16.36.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kgwspFE0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113173-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0F1661C2236B for ; Sun, 24 Mar 2024 23:36:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96F9F175C9B; Sun, 24 Mar 2024 22:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kgwspFE0" 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 ADAF2174945; Sun, 24 Mar 2024 22:39:35 +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=1711319975; cv=none; b=q4wGAFr6bsTnXILdRBMhojt35gjgDTv9SpnFy/5WjP0vdkXLKEMNn7gdpwOgDPH6N5sJdL9q2oQ9ZjKy2jLA76V81DfehgNSua4JnipEMX/en17/zsElgZPchViXgsSCHyuC+eriX5ryV0G4ViwOxnWb7WccUnkDeRqUFPS5MAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319975; c=relaxed/simple; bh=syZ7zM0ZQCpE2wuH6W5pZKG769FBlLja+iwHGtXJ1Ww=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XcQMsOIwV33Vf0gJ6Wlhstb72gQl8h29kqTlSAoJCPoaxaHTJ5CbTsvYt31QHHXOF15YH6XsU/0b1a1LMlmm+TE70gUd5c3Mwr/PJxu2uPztUyNvK8HtzWVNCH9BvuJFVgQHb6qaQDgkGgSt2lTLuA4hcihK0MOgCIdG/5X19pc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kgwspFE0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87C32C43390; Sun, 24 Mar 2024 22:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319975; bh=syZ7zM0ZQCpE2wuH6W5pZKG769FBlLja+iwHGtXJ1Ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kgwspFE0k2R40Z8fdN1q+enl9S3XYs/8igsXhwuEJG2FpPIrXd4baHj6qmA5wJakk bYtkSHujcJW+rCgu75pbYrE3A80z49SyMXwAJVbZtjndhttVAL8lbnP2dcgDCAH7vL QlMZhk6IzwQCeq4fHGb6MlZrWRbC1EGK1AkAk1Ya0JdTBF6csSfyTucMHGD0iemC7o Bd2jBtUFc0HiH/xqqa5MDWOA96Z1kJNwEq3NE0aULjaBIvc67fnnKs/m2TygyP47hE XJ0/uglhWA2YFNnbzQol4j8R2qVKaSD+GDpzeGZcejZi6fuWUJgoSSpE+kJk0PTpSX SxKY6Z20FTC9w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Abel Vesa , Neil Armstrong , Konrad Dybcio , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.8 282/715] arm64: dts: qcom: sm8550: Fix SPMI channels size Date: Sun, 24 Mar 2024 18:27:41 -0400 Message-ID: <20240324223455.1342824-283-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: Abel Vesa [ Upstream commit 77dd1e50ffcba33c3195ae4fc78f354368ddacb2 ] The actual size of the channels registers region is 4MB, according to the documentation. This issue was not caught until now because the driver was supposed to allow same regions being mapped multiple times for supporting multiple buses. Thie driver is using platform_get_resource_byname() and devm_ioremap() towards that purpose, which intentionally avoids devm_request_mem_region() altogether. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Reviewed-by: Neil Armstrong Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio Tested-by: Neil Armstrong # on SM8550-QRD Link: https://lore.kernel.org/r/20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-1-72b5efd9dc4f@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index ee1ba5a8c8fc2..90acdf16b8307 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3248,7 +3248,7 @@ sram@c3f0000 { spmi_bus: spmi@c400000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c400000 0 0x3000>, - <0 0x0c500000 0 0x4000000>, + <0 0x0c500000 0 0x400000>, <0 0x0c440000 0 0x80000>, <0 0x0c4c0000 0 0x20000>, <0 0x0c42d000 0 0x4000>; -- 2.43.0