lkml.org 
[lkml]   [2023]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] soc: qcom: llcc: Fix dis_cap_alloc and retain_on_pc configuration
From


On 11/3/2023 4:47 PM, Mukesh Ojha wrote:
>
>
> On 11/3/2023 4:27 PM, Atul Dhudase wrote:
>> While programming dis_cap_alloc and retain_on_pc, set a bit
>> corresponding to a specific SCID without disturbing the
>> previously configured bits.
>>
>> Fixes: c14e64b46944 ("soc: qcom: llcc: Support chipsets that can write
>> to llcc")
>> Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
>> ---
>>   drivers/soc/qcom/llcc-qcom.c | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
>> index 674abd0d6700..509d972c1bd9 100644
>> --- a/drivers/soc/qcom/llcc-qcom.c
>> +++ b/drivers/soc/qcom/llcc-qcom.c
>> @@ -941,15 +941,15 @@ static int _qcom_llcc_cfg_program(const struct
>> llcc_slice_config *config,
>>           u32 disable_cap_alloc, retain_pc;
>>
>>           disable_cap_alloc = config->dis_cap_alloc << config->slice_id;
>> -        ret = regmap_write(drv_data->bcast_regmap,
>> -                LLCC_TRP_SCID_DIS_CAP_ALLOC, disable_cap_alloc);
>> +        ret = regmap_update_bits(drv_data->bcast_regmap,
>> LLCC_TRP_SCID_DIS_CAP_ALLOC,
>> +                BIT(config->slice_id), disable_cap_alloc);
>>           if (ret)
>>               return ret;
>>
>>           if (drv_data->version < LLCC_VERSION_4_1_0_0) {
>>               retain_pc = config->retain_on_pc << config->slice_id;
>> -            ret = regmap_write(drv_data->bcast_regmap,
>> -                    LLCC_TRP_PCB_ACT, retain_pc);
>> +            ret = regmap_update_bits(drv_data->bcast_regmap,
>> LLCC_TRP_PCB_ACT,
>> +                    BIT(config->slice_id), retain_pc);
>
> Good catch, LGTM

Forgot to tell.,
Please tag this to stable as well.

Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>

-Mukesh

>
>  Thanks
> -Mukesh
>
>>               if (ret)
>>                   return ret;
>>           }
>> --
>> 2.25.1
>>

\
 
 \ /
  Last update: 2023-11-20 13:48    [W:0.142 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site