From patchwork Wed Feb 21 13:04:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 204208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1020974dyc; Wed, 21 Feb 2024 05:05:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhnFOlqsC9H9L3CgxmNQT0mk6mQ5i1tmJU+s0s8t8ItT+VuDLaXcnpbtS7aBoXCS9Azc4LmB6DnTxMu+OdI8iFdAXSDA== X-Google-Smtp-Source: AGHT+IH3iE4e40my6yBFn/S32qi1Mza84TPNz78j/4ynBJmEnFfz16OlZ7tpoC5E752aW2VUyRHC X-Received: by 2002:a17:906:4558:b0:a3f:c90:7240 with SMTP id s24-20020a170906455800b00a3f0c907240mr2895234ejq.36.1708520733521; Wed, 21 Feb 2024 05:05:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708520733; cv=pass; d=google.com; s=arc-20160816; b=j8+XhMn2tBuR9nCv+zpdXGyniJ2a5obi72eusVFKw2PYgclu+5N2thlvuHaJM4dy9x qo6c4AhW+2KDRI4+QFlm7d0nTajrZ/QUlDsoEWUWsVKvPSPFgdJ4JtlwHJU4aJBeM0iq P3LwplPnbR5DfQmHedQHe51GenJBqKp0tz2u6fWN1FVni7WTNVC0KXHB4PobAEUVeAfs rh/a68nuwI2xHQqfT+68fDnj5vYdgQEQx1atFkNf0bmzJCmrWOzeipjkFetR4UymJQcP yfD1Y8+e1e3xIMihZWpAm3M1NGGJrBwX821NSPnAfbMAQMXuD4CA9+NH9ftOO+1zNAVo O2+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=F8FGb9F1qERtrEowrAl1nfZPL70Ktg5wR2yYU4ZAKN4=; fh=++LXMlnr+mro2BAFcZSKC1Cj/2hldObGrmczjKPn4vo=; b=jyMwM06PEi3QtQCJiHcBppSilgQZN++6lL0Es2J6bmad7V14c3DgOy8zUfreUvQprf fWxRqsa9x4TfpfzrCv0s3he01G4COOmyJtma5SrEoX+oDE1nZV5jLmSogfKZ0groMi8A qV8gnvrMXqy2A37QGAm0oMS3LWKfzXHjQgb6IbCAxlQnsR79Tw3CFQ4CCdaGoTaHuNRZ +rzq0LoCjtch1kFPjD+YnvNLG1xtVM3t/bgW8Vbt5hEnO90gkAkre5eElqrFc3QWN4uv j+i6X7KsV8/RrZAfjKIHIyTqSfHrePdtUnwi1KYDgKazHD4uhpTb5fGi8sJXQX6dHUaC LPHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjqjIYri; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74752-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j13-20020a170906254d00b00a3e90feef5esi2866804ejb.559.2024.02.21.05.05.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjqjIYri; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74752-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74752-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 287271F23D3B for ; Wed, 21 Feb 2024 13:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E816A7764A; Wed, 21 Feb 2024 13:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EjqjIYri" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D38E69D09 for ; Wed, 21 Feb 2024 13:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708520684; cv=none; b=cKfonbshv2VpEmMduAR45s4LUhZ0msyqcC+RR4GXHO+P7FcCafYRPy720J9Aruu1JPSVQNZ+Vm97YQ51oMAnhH901NvT/Nmaxv+NNt3ew2EQJYJNQ+JCBX9NxOWTUhHsqQaoIwsRaa1CzvjhE+NireY6umAC9wCHwFW380VXDKo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708520684; c=relaxed/simple; bh=4mMz+Afj9+txFT9PWzXETYmqTBIiFL+7F4R5HJzfGME=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FvzZT2d5n+Dib/jo12b5tUMHHJ/cpcR2yZ5ugZukXNQBRG/EsiLvDHNtluZz9jGJ/1fsKzIaNpIM8DBmG85JK+dZUaTCM8Au8H84QkJZmtDzqrr8f/6Cq16KNb1oo8pNbJ+v3zew6tmUAq/lNq3iS7lPmxxEsZabJ1QZ1cizGsU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EjqjIYri; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5643eccad0bso5874373a12.1 for ; Wed, 21 Feb 2024 05:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708520680; x=1709125480; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=F8FGb9F1qERtrEowrAl1nfZPL70Ktg5wR2yYU4ZAKN4=; b=EjqjIYrigOfNpXFK6dT3FBRsP8P1sipssLXWpRFb+nilyd/WTQgBTKcrDQs9FX9tXf gcFtf7w773/W5LbgTBhABo2sgUQFxu708bngnypPS/9J7y15457OuWG2Vg97Vprp4//d ttMDPPrTYxuRLojb28lS57rZqFoviJI6LqnTsLjWGzAZ4ZD/Twz/uIzDCyisiM+TclDU qAy3El/mEuDL6mVMv6/vJdVQKXFXOf7qfvhH//IRyYur49+gVIWkm7UwvIry47AY3Qi6 kgc+esfEFa+bmDBHhbwIZRUdUYo9QUtEQyRY1Sr+z9rtNwnv4/tP+5cv0w9gXwb2it3i R+tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708520680; x=1709125480; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F8FGb9F1qERtrEowrAl1nfZPL70Ktg5wR2yYU4ZAKN4=; b=nQB/XCLx8GNfW3jVomazdJytQBHWl4Hd+NSpVW8TVhxHUvLRFVjqjWlCOczcwRbIq3 VN710EPJc+YiYncVtmSmLdEL+JO4Jfh0Cqr3PWGbE5L5TirFAML2YUzApI4Sfp7IAGn7 9l24UxT5yE3kG7ZVszmNYnI+rF77JPNj2anyVwGnIGSpKUzT/E83pVymzDAmbUn3eTl+ +XaD8BMNXU+Km12AK+xaG0LAaQeC1anC3pUm6HK4sk9uhKvcijfuw4rkMcRFPfG2B1ta B9IwjQJQddOLMEpMabboOyiTHWwx0L8xbAXqnh2ESVbUSlADxjmPQB+pafcOAwetXajD NpaQ== X-Forwarded-Encrypted: i=1; AJvYcCUKRYwx3TqAhANiPB6Q/DbGR7RG21vwnAXZPVzP3Lxbw9XfEEjM+jinX1bwyogBYWuCoDHL1SVrOh4fxjUine8Mmv0xe1PuQFIvn4XN X-Gm-Message-State: AOJu0YwRS18FmzodcLX2o2voR1l2CizVxr5dtoxr3BHiANVbsEsRiUSz yc0tjA5U7i3/8hSAwfMSYhBzqsTk5RU2e67awffrFOAycDVvU2M9CPzVLhv5S/0= X-Received: by 2002:a05:6402:1045:b0:561:cec7:cb1b with SMTP id e5-20020a056402104500b00561cec7cb1bmr12078500edu.32.1708520680636; Wed, 21 Feb 2024 05:04:40 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id a20-20020a50ff14000000b0056459eafc0asm1356178edu.17.2024.02.21.05.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:04:40 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 15:04:25 +0200 Subject: [PATCH v2 1/2] arm64: dts: qcom: sm8550: Fix SPMI channels size Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-1-72b5efd9dc4f@linaro.org> References: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-0-72b5efd9dc4f@linaro.org> In-Reply-To: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-0-72b5efd9dc4f@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1239; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=4mMz+Afj9+txFT9PWzXETYmqTBIiFL+7F4R5HJzfGME=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1fTjJmY54YBG0h842mLyJ2FThRB6eQ/tVf/kz e7JuJt9Jq6JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdX04wAKCRAbX0TJAJUV VqfZD/9ZlnOejk6reVs4etOcvOK+Bgxz6t98718QfBXGAAYf+n0mVXp4HuDKkurOo1mA8BMwqgy eovWD7Ttbf79SXTgd6N+tHSqgy6YUFAh0hIIUFtoL6KMaTkp2vpunMvEFDFa3CEFRAyd863mHGE s/XK8DnC2Otc1G83gkIjjG/5ydU+OtQQqgOuplzLxeuJMCa3a9CYDf6zrzxbbPB8dwvDi532Cud +irBLi1S7yxiphETdn0KhotXo4T5nv9LE5icSZ0rScp/oowGNGc1clWGKq7TUHD0I9c5wtdMzmA U8QjMARcpQtMHdrMyVyvbYdjzATcYFI6nJNHAkWP3yJtsAJDQ4t+5Q6SOvIrfKGHrTzKMFbOGNA xE2tjJUvih6ifiHWtxiupShkiZ7/AYfqs87SEy4t8ri2Na17Q6uyU5cyOt0YYrNTAjzFz8FlO5R vWPPJlUxylSazOb4XCL1IFsVI3APVcl8fjtpJIpK9j21Mvf7sVlVrbqDsxJ0jXwp55BUQJZxyGi C1aj3ndHIIMsdRfIWUvxLw4y2h0W5TlGNhxPQUtJEJZt32LVtBYRD9LU5C8cIaE/9UfSIVZVZxI TEnsOkKbI0jCKIEP+s0uXPeECR5cQwLYvT2P3/6sEz05FzJntlRkFqziEeyz9F1PQHlCH64Kmk5 Mh11jhpB2AtBVnw== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791513836732592250 X-GMAIL-MSGID: 1791513836732592250 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 --- 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 7474cddf7ad3..3904348075f6 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3318,7 +3318,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>; From patchwork Wed Feb 21 13:04:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 204209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1021077dyc; Wed, 21 Feb 2024 05:05:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWxUdDpa2dQxfgxk5UjeeRXtl9b1ZErXwf602eQ5/PkMc0h9oczPQ6h1w1Gt3WBkc7yo1ZyUrea1sMPjgrxsGD666Hag== X-Google-Smtp-Source: AGHT+IE6/IZhkHy/5Yu70Z21Gd8BGu9LPV2uPV7Pi8t55id1PIIbJUGO24dmwV0CYEwzo/u/xxGd X-Received: by 2002:a17:906:ad8c:b0:a3f:3e6f:88f2 with SMTP id la12-20020a170906ad8c00b00a3f3e6f88f2mr1137227ejb.54.1708520740808; Wed, 21 Feb 2024 05:05:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708520740; cv=pass; d=google.com; s=arc-20160816; b=mEXBCb0Yn2buMyvYdo8F3LDMRgJ/JqAAA/0tNPdblSJQwUm1/ajIFs8pqtd235+ENB hu7WuMKv/0XpjznN+q38V/VU8E5Wu1bwEmGYtifZgk0BLDZQIxmpPnK9SqZtsMomaeWF eBm9PHutBouc26HTbWBUlVMpQBW8v2r3mf7NlrArRrfW8Vx6PRLX+LSrhffBJGEHiD9d OUEDVtmcdfADfvmDWk3U7e0XyB3jdXDb1slCESthT86ffc4Tkim+1qZbUSA4ONJGX6pT LebxyBTJ1za0FH+Ualict/eiBC8Qr/oM+SfxYlfFhbSk+zZFlmV3njbmdHkiK1xfB+rh uNvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=WxgDZls4oUJUrfVi7cjKLWFxpNjiKDYYhQmE5hDFALM=; fh=kOHs+mGalN9cS1BD4YlRnhzU+ukrdwn3sLCAj+om70I=; b=zvWdOg5h27Dl/hHW6x5cfayAh3Dm6cEUMZ1XdJijhBm73bweiw4Y6Jzi8GZsoCm06U YbuwZRUbGcCiyjdG6sLOxuz3jwK6t3fG8fx8spMrTKzLr8Jm8iWqFbs8+Wy5SmGx0e3d 5D26+ybeQtEP2IDsOq8IPyNqdXCtFEm4Ch5gxCj1yQNNxp/LdmelP6on+srEFX9crCX/ +7eBnfU6GbIwnRc8n+493eP4kcL3Hh9Tz30OlY9PAeMM1D0MOjUKiCLxpSctCyP6bOwf rMmgIrgCrYSGaEz2qSFsXxFBfflBy1OzAdVMoosDn6XfiGEE0t+Fo8Fb7HWbcdbrPKOu 7zyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h44mdi4X; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74753-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74753-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qf38-20020a1709077f2600b00a3e745346efsi3312587ejc.987.2024.02.21.05.05.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74753-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h44mdi4X; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74753-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74753-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6EDBC1F24335 for ; Wed, 21 Feb 2024 13:05:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D25A969D09; Wed, 21 Feb 2024 13:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h44mdi4X" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54C6D4D5B7 for ; Wed, 21 Feb 2024 13:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708520684; cv=none; b=C0cRcg0u7OVbVh2Ck14IJ45joppLWSOlDCJMJ/dr91bboX6a4jREeBrOmPcdGtdG4Wk6Ca0j8rHX5OKhfbQB2I0moXzDVSLRlIFQ76abjCOJvCcQZuTDro8Iq+V/gsZkwI0vWaC/LoZYOT+mStIylFQOWRU1x7Kd+/8IrvfAqJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708520684; c=relaxed/simple; bh=TCLTQOaE9W3yz6211b4jg2MbG6D93HJgYpElaCnIFns=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tA7Wky0MLtXYEixacdxkc+e9lPL29OYHvk8yiAgdMNSr50MLd6Y+Wnl5KHAxW7rlija+WRgvdMYj9Z/821vVX3yzpp8N88Qdtm2/YWODBzMOkVGkMPprXatztk/4/+Cs9S7SJMd/R01o3qIl31mAgBGWYjXeycQOruxCbGAvHj0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h44mdi4X; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-55a8fd60af0so9734099a12.1 for ; Wed, 21 Feb 2024 05:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708520682; x=1709125482; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=WxgDZls4oUJUrfVi7cjKLWFxpNjiKDYYhQmE5hDFALM=; b=h44mdi4XsbKa7YqAdVZbKHY66yJ7lzSxQqYjIzSSWj9rWd4HHvcLcS1hT8jJaXZI4x +WDvlVwJNeRTXBYz7wvEok5GwWDoAuznhxBIRWd69Q8TFGiD7+Pz7aAaTH6JFIEzJrL/ oKFTs/5PIUZ69fhMe5RMSfrJ+XuLxX4w/Y28gAH6MwFGji/ZdfXxt+x8q/m5WcWHSkwg UQ8ST30gnRwLfaclJt6kys5s/BLczqsGCno51rWgrrkvOUUhlwiUTcJ4O6QJT8KO0WF6 +g0qiU3euwq5p3bIU2wGfdMBsUVZq8/40H5EDxrDueQM8CIlIPHvrAzdyMFZ+FC6mgax xQ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708520682; x=1709125482; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WxgDZls4oUJUrfVi7cjKLWFxpNjiKDYYhQmE5hDFALM=; b=prAEm8W5yBWEQhV8vwqQGNW6kGHOWXwnpiflvmFAytZxv9CPg64t/WPBw+ZM+ezjWf p7kzzsWhtw0Is9QxjXU5bKD86euR34hE6IaZvu26y+xcAFNsO1pQbl9p8/cTNG+iMMzK J/rrUDuJxOoe8f8VMCLN8+NykYKvL9h55CqSJbl2weYxzhp5v13q9kOBnIDHtOD9oy6f DPwAcG/BFYOHBP9BiKx1N9R4WsRliFj5PTj0GWFddqjp61UW3WR+PSfIGpdURLJxTeNB 4H6houPWziB0lMPaShrP/ZTrZ3crc/GjyksAYIcIDXZeaulWaOefeIKkXdAE7wcm3Wck 5BHg== X-Forwarded-Encrypted: i=1; AJvYcCW3sfZr9JTBPCH1sWEo53dsq3lalc32zzoL+IZHb12oQ4MaEO8T3KLaXWOX+7rAnCwe+INpWbt7mk4cnYJqNwSo33eEMQmPW+AZdbwF X-Gm-Message-State: AOJu0YzF2OnemDXpmGUABq84GL3QDPO7qvfcoL6OvRx2ayXivHzXzzc7 dFF24vNcAsZ2K9Wx5P0Wicj7JdoNDr6XZr/QbkBCZx4jYvBE5sIb2NK3jM+SYyjt5TJAs4Yajfm 7 X-Received: by 2002:aa7:d996:0:b0:565:10cd:835 with SMTP id u22-20020aa7d996000000b0056510cd0835mr565438eds.28.1708520681789; Wed, 21 Feb 2024 05:04:41 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id a20-20020a50ff14000000b0056459eafc0asm1356178edu.17.2024.02.21.05.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:04:41 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 15:04:26 +0200 Subject: [PATCH v2 2/2] arm64: dts: qcom: sm8650: Fix SPMI channels size Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-2-72b5efd9dc4f@linaro.org> References: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-0-72b5efd9dc4f@linaro.org> In-Reply-To: <20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-0-72b5efd9dc4f@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1266; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=TCLTQOaE9W3yz6211b4jg2MbG6D93HJgYpElaCnIFns=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1fTlmlDBAoOi4a1wTc8T3FnmjKuvTzlq2nrYy rhqMq1fj6uJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdX05QAKCRAbX0TJAJUV VpA0D/4l0Oe/tUNbtyU8rcwKmCq+ssGWNqDLo7ea9NnG8LdMDxyxaMmMs7lxyyAAx0r+YjOV5Vr xfERDmmzlZ3yHQo7of2nckeL0HG77oSyd1uRCuED8BVFBZyzZB833mIcqCLvU2Q1ugX1kXLznmf 4Yj0l8zl+zucNarlSaG1JsXslH/O1K15L/aLHWUE12NFo316/hwUWPZ2SHk8LucDiFsbqvgbQCI Z/xyNMvtVGtCmhm+Fi+1J5Kg3Zdn7SB86ksTLFLo67uoVzYFA8HYgAy3+X0MEdPYzgUb8Fi6ZM2 IamM7HKvMurdE84T6NOI3ry3Gkn/XMnTflObdemMqlXubJHMpt/sji+Gs5Eh0HADpOvrSenmErv p4z10ipZsRDl3pi/BQzwUEquXkvLrY7f0RE2EmTmZyBReT9aloro6bLZkVUb19XBIjh4/N+q5HO 0s/VAkSL5FNsEyutDm0LQRO0h/Gdk1XXBa/GAKF/CACXiTdSMurZC+Yb8U2s0wtp7nXFYUbTpxD QSXt6q2Ox1HuIxoOFvDKuem0r+yoCXuLMDnQf+HlJYWhHFhv1eIwO8gfA2lKTFgTjLWdZ2J7+RK Ei13iXAVlr/FMxZXoRS6JMsaW7X2i0aGwuqxIg5Xy8rY6gBSqvnpxkJpHqqpLqruEC92wlOh/eU 5+m7R6llTySyc2Q== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791513844294539604 X-GMAIL-MSGID: 1791513844294539604 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: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes") Reviewed-by: Neil Armstrong Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio Tested-by: Neil Armstrong # on SM8650-QRD --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index d488b3b3265e..260eda81b743 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -3747,7 +3747,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>;