[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ebed24aa-e190-4735-b618-7d74fadd900c@linaro.org>
Date: Mon, 22 Jan 2024 16:28:15 +0100
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Odelu Kukatla <quic_okukatla@...cinc.com>, georgi.djakov@...aro.org,
Bjorn Andersson <andersson@...nel.org>, Georgi Djakov <djakov@...nel.org>,
linux-arm-msm@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [2/4] interconnect: qcom: sc7280: enable qos programming
On 22.01.2024 15:30, Odelu Kukatla wrote:
> Enable QoS for the master ports with predefined values
> for priority and urgency.
>
> Change-Id: I1c4515402bcd6df8eed814be096aa5e1fc16cef6
> Signed-off-by: Odelu Kukatla <quic_okukatla@...cinc.com>
> ---
> drivers/interconnect/qcom/sc7280.c | 250 +++++++++++++++++++++++++++++
> 1 file changed, 250 insertions(+)
>
> diff --git a/drivers/interconnect/qcom/sc7280.c b/drivers/interconnect/qcom/sc7280.c
> index 7d33694368e8..719844c34894 100644
> --- a/drivers/interconnect/qcom/sc7280.c
> +++ b/drivers/interconnect/qcom/sc7280.c
> @@ -1,6 +1,7 @@
> // SPDX-License-Identifier: GPL-2.0
> /*
> * Copyright (c) 2021, The Linux Foundation. All rights reserved.
> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
> *
> */
>
> @@ -16,29 +17,59 @@
> #include "icc-rpmh.h"
> #include "sc7280.h"
>
> +static const struct regmap_config icc_regmap_config = {
> + .reg_bits = 32,
> + .reg_stride = 4,
> + .val_bits = 32,
If you don't bother having .max_register, perhaps it could be defined
in a common file?
Also, do you really need locking between each access? If not, add
fast_io = true
Konrad
Powered by blists - more mailing lists