[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <90296ab2-7531-8fd2-a541-ac6189f29988@quicinc.com>
Date: Thu, 25 Aug 2022 10:18:44 +0530
From: Sai Prakash Ranjan <quic_saipraka@...cinc.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
<bjorn.andersson@...aro.org>, <bp@...en8.de>, <mchehab@...nel.org>
CC: <james.morse@....com>, <rric@...nel.org>,
<linux-arm-msm@...r.kernel.org>, <linux-edac@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <quic_tsoni@...cinc.com>
Subject: Re: [PATCH v3 1/5] soc: qcom: llcc: Rename reg_offset structs to
reflect LLCC version
On 8/25/2022 10:08 AM, Manivannan Sadhasivam wrote:
> The register offsets used by the LLCC block retains its layout for multiple
> versions. For instance, starting from version v1.0.0 to v2.0.1 the offsets
> are same. And starting from v2.1.0, the offsets changed.
>
> But the current reg_offset naming convention is confusing. So to reflect
> this change correctly in driver, let's encode the start version from which
> the offsets got changed in reg_offset struct name. This will be
> llcc_v1_reg_offset for v1.0.0 and llcc_v2_1_reg_offset for v2.1.0.
> This will allow multiple SoCs to use the same reg_offset clearly.
>
> And in the future if the offsets got changed again, then that specific
> version could be encoded in the struct name.
>
> Suggested-by: Sai Prakash Ranjan <quic_saipraka@...cinc.com>
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
> ---
> drivers/soc/qcom/llcc-qcom.c | 26 ++++++++++++++------------
> 1 file changed, 14 insertions(+), 12 deletions(-)
Reviewed-by: Sai Prakash Ranjan <quic_saipraka@...cinc.com>
Thanks,
Sai
Powered by blists - more mailing lists