From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32FB1C25B08 for ; Wed, 17 Aug 2022 21:08:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234937AbiHQVIm (ORCPT ); Wed, 17 Aug 2022 17:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242320AbiHQVIh (ORCPT ); Wed, 17 Aug 2022 17:08:37 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [5.144.164.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9D6275D1; Wed, 17 Aug 2022 14:08:30 -0700 (PDT) Received: from [192.168.1.101] (abxi168.neoplus.adsl.tpnet.pl [83.9.2.168]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 81E4D1F635; Wed, 17 Aug 2022 23:08:27 +0200 (CEST) Message-ID: <6d630619-80de-b36f-7405-d1f0f0b028fa@somainline.org> Date: Wed, 17 Aug 2022 23:08:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [RFT PATCH 04/12] hwspinlock: qcom: correct MMIO max register for newer SoCs Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Lee Jones , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220817131415.714340-1-krzysztof.kozlowski@linaro.org> <20220817131415.714340-5-krzysztof.kozlowski@linaro.org> From: Konrad Dybcio In-Reply-To: <20220817131415.714340-5-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.08.2022 15:14, Krzysztof Kozlowski wrote: > Newer ARMv8 Qualcomm SoCs using 0x1000 register stride have maximum > register 0x20000 (32 mutexes * 0x1000). > > Fixes: 7a1e6fb1c606 ("hwspinlock: qcom: Allow mmio usage in addition to syscon") > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Konrad Dybcio Konrad > drivers/hwspinlock/qcom_hwspinlock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c > index 80ea45b3a815..9734e149d981 100644 > --- a/drivers/hwspinlock/qcom_hwspinlock.c > +++ b/drivers/hwspinlock/qcom_hwspinlock.c > @@ -121,7 +121,7 @@ static const struct regmap_config tcsr_mutex_config = { > .reg_bits = 32, > .reg_stride = 4, > .val_bits = 32, > - .max_register = 0x40000, > + .max_register = 0x20000, > .fast_io = true, > }; >