[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2182b484-9ccc-4ebf-89f4-519646958413@oss.qualcomm.com>
Date: Wed, 23 Jul 2025 12:37:02 +0200
From: Konrad Dybcio <konrad.dybcio@....qualcomm.com>
To: Ram Prakash Gupta <quic_rampraka@...cinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Sachin Gupta <quic_sachgupt@...cinc.com>
Cc: Ulf Hansson <ulf.hansson@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley
<conor+dt@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Bhupesh Sharma <bhupesh.sharma@...aro.org>, linux-mmc@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, quic_cang@...cinc.com,
quic_nguyenb@...cinc.com, quic_bhaskarv@...cinc.com,
quic_mapa@...cinc.com, quic_narepall@...cinc.com,
quic_nitirawa@...cinc.com, quic_sartgarg@...cinc.com
Subject: Re: [PATCH V3 3/4] mmc: sdhci-msm: Add Device tree parsing logic for
DLL settings
On 7/23/25 12:14 PM, Ram Prakash Gupta wrote:
>
> On 6/10/2025 5:47 PM, Ram Prakash Gupta wrote:
>> Hi Dmitry,
>>
>> As updated in [PATCH V3 2/2] of this series, I have started now to continue
>> this work. Will address your comment next.
>>
>> Thanks,
>> Ram
[...]
>>> And the pointer to dll_table is lost, lingering for the driver lifetime.
>>> Please drop the devm_ part and kfree() it once it is not used anymore.
>
> ok, I ll allocate memory using kzalloc in function sdhci_msm_dt_get_array
> and kfree() after copying data in this function.
You can use __free() nowadays (see e.g. drivers/soc/qcom/mdt_loader.c :
mdt_load_split_segment), which will dispose of the memory when it goes
out of scope, limiting the need to clean it up every error path
separately
Konrad
Powered by blists - more mailing lists