From: Ram Prakash Gupta <quic_rampraka@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>
Cc: <linux-mmc@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<dmitry.baryshkov@oss.qualcomm.com>, <quic_pragalla@quicinc.com>,
<quic_sayalil@quicinc.com>, <quic_nitirawa@quicinc.com>,
<quic_bhaskarv@quicinc.com>, <kernel@oss.qualcomm.com>,
Sachin Gupta <quic_sachgupt@quicinc.com>
Subject: Re: [PATCH v6 4/5] mmc: sdhci-msm: Add Device tree parsing logic for DLL settings
Date: Thu, 18 Dec 2025 17:02:15 +0530 [thread overview]
Message-ID: <3a1a566f-4237-4b77-acf5-030e6d5364c1@quicinc.com> (raw)
In-Reply-To: <a6c2236e-a7cd-405c-89a3-6124a588f450@oss.qualcomm.com>
On 12/16/2025 7:59 PM, Konrad Dybcio wrote:
> On 12/15/25 1:00 PM, Ram Prakash Gupta wrote:
>> From: Sachin Gupta <quic_sachgupt@quicinc.com>
>>
>> This update introduces the capability to configure HS200
>> and HS400 DLL settings via the device tree and parsing it.
>>
>> Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
>> Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
>> ---
> [...]
>
>> +#define DLL_SIZE 10
>> +static int sdhci_msm_dt_parse_dll_info(struct device *dev, struct sdhci_msm_host *msm_host)
>> +{
>> + u32 *dll_table = &msm_host->dll[0].dll_config;
>> + int ret;
>> +
>> + msm_host->artanis_dll = false;
>> +
>> + ret = of_property_read_variable_u32_array(dev->of_node,
>> + "qcom,dll-presets",
>> + dll_table, DLL_SIZE, DLL_SIZE);
>> + if (ret == DLL_SIZE)
>> + msm_host->artanis_dll = true;
> This feels backwards.. can we first somehow determine whether this
> platform has the artanis_dll (whatever that is since you didn't explain)
> and then make decisions on what to retrieve from the DT & how to
> interpret it?
I checked document and with hardware designers, currently there is no
distinguishable hardware configuration which can be used, will have to
rely on dt only.
>
>> + return ret;
>> +}
>> +
>> static int sdhci_msm_probe(struct platform_device *pdev)
>> {
>> struct sdhci_host *host;
>> @@ -2580,6 +2612,15 @@ static int sdhci_msm_probe(struct platform_device *pdev)
>>
>> msm_host->saved_tuning_phase = INVALID_TUNING_PHASE;
>>
>> + /*
>> + * Parse HSR dll only when property is present in DT.
>> + */
> /* Parse ... */, it's short enough
>
> Probably also "DLL"
>
> Konrad
sure, will update.
Thanks,
Ram
next prev parent reply other threads:[~2025-12-18 11:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 12:00 [PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 1/5] dt-bindings: mmc: Add dll-presets values for HS400 and HS200 modes Ram Prakash Gupta
2025-12-15 12:06 ` Krzysztof Kozlowski
2025-12-15 12:11 ` Krzysztof Kozlowski
2025-12-16 12:51 ` Ram Prakash Gupta
2025-12-16 16:03 ` Krzysztof Kozlowski
2025-12-15 12:00 ` [PATCH v6 2/5] arm64: dts: qcom: Add sdhc dll-presets Ram Prakash Gupta
2025-12-15 12:05 ` Krzysztof Kozlowski
2025-12-15 12:07 ` Krzysztof Kozlowski
2025-12-16 12:41 ` Ram Prakash Gupta
2025-12-16 16:02 ` Krzysztof Kozlowski
2025-12-15 12:00 ` [PATCH v6 3/5] mmc: sdhci-msm: Add core_major, minor to msm_host structure Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 4/5] mmc: sdhci-msm: Add Device tree parsing logic for DLL settings Ram Prakash Gupta
2025-12-16 14:29 ` Konrad Dybcio
2025-12-18 11:32 ` Ram Prakash Gupta [this message]
2025-12-18 13:32 ` Bjorn Andersson
2026-01-22 13:37 ` Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 5/5] mmc: sdhci-msm: Rectify DLL programming sequence for SDCC Ram Prakash Gupta
2025-12-17 4:06 ` kernel test robot
2025-12-18 14:18 ` Bjorn Andersson
2026-01-22 13:29 ` Ram Prakash Gupta
2025-12-15 13:58 ` [PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence Krzysztof Kozlowski
2025-12-16 12:52 ` Ram Prakash Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a1a566f-4237-4b77-acf5-030e6d5364c1@quicinc.com \
--to=quic_rampraka@quicinc.com \
--cc=adrian.hunter@intel.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=kernel@oss.qualcomm.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=quic_bhaskarv@quicinc.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_pragalla@quicinc.com \
--cc=quic_sachgupt@quicinc.com \
--cc=quic_sayalil@quicinc.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®