[PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence

Ram Prakash Gupta posted 5 patches 6 hours ago
.../devicetree/bindings/mmc/sdhci-msm.yaml    |   5 +
arch/arm64/boot/dts/qcom/qdu1000.dtsi         |   4 +-
drivers/mmc/host/sdhci-msm.c                  | 324 +++++++++++++++++-
3 files changed, 314 insertions(+), 19 deletions(-)
[PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence
Posted by Ram Prakash Gupta 6 hours ago
With the current DLL sequence stability issues are seen in
HS400 and HS200 mode for data transfers.

Rectify the DLL programming sequence as per latest hardware
programming guide and also incorporate support for HS200 and
HS400 DLL settings using the device tree.

Changes from v5:
1. Addressed Adrian Hunter's comments:
   a. SDHCI_HS400_TUNING flag handling
   b. Use of readl_relaxed_poll_timeout api instead of loop.
   c. Reording of variables.
2. Krzysztof's request for DTS user.

Changes from v4:
1. Addressed Rob Herrirng & Konrad Dybcio comments:
   a. Regarding naming of dt entry.
2. Addressed Adrian Hunter comments:
   a. Regarding parsing of dt and storing variable in driver.
3. Additional change:
   a. Changes in patch 4/4 according to parsing change.

Changes from v3:
1. Addressed Dmitry Baryshkov comments:
   a. Regarding clk division by in V2 patchset
2. Addressed Konrad Dybcio comments:
   a. Renaming of parameters
   b. Memory allocation
   c. couldn't address __free, as didn't fit here
3. Addressed Krzysztof Kozlowsk comment:
   a. Regarding the dt binding
   b. commit message to reflect the need of dt
4. Additional change:
   a. DT parsing logic
   b. Maintain backward compatibility

Changes from v2:
1. Addressed Dmitry Baryshkov comments:
   a. Regarding TCXO frequency.
   b. Regarding clock rate.
   c. regarding checkpatch.

Changes from v1:
1. Addressed Tengfei Fan comment, added missing semicolocon
   in sdhci_msm_host structure.

Ram Prakash Gupta (1):
  arm64: dts: qcom: Add sdhc dll-presets

Sachin Gupta (4):
  dt-bindings: mmc: Add dll-presets values for HS400 and HS200 modes
  mmc: sdhci-msm: Add core_major, minor to msm_host structure
  mmc: sdhci-msm: Add Device tree parsing logic for DLL settings
  mmc: sdhci-msm: Rectify DLL programming sequence for SDCC

 .../devicetree/bindings/mmc/sdhci-msm.yaml    |   5 +
 arch/arm64/boot/dts/qcom/qdu1000.dtsi         |   4 +-
 drivers/mmc/host/sdhci-msm.c                  | 324 +++++++++++++++++-
 3 files changed, 314 insertions(+), 19 deletions(-)

-- 
2.34.1
Re: [PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence
Posted by Krzysztof Kozlowski 4 hours ago
On 15/12/2025 13:00, Ram Prakash Gupta wrote:
> With the current DLL sequence stability issues are seen in
> HS400 and HS200 mode for data transfers.
> 
> Rectify the DLL programming sequence as per latest hardware
> programming guide and also incorporate support for HS200 and
> HS400 DLL settings using the device tree.
> 

Please trim your CC list. You cc-ed 4 internal Qualcomm addresses and
also internal mailing list (kernel@oss) which you are not suppose to mix
with upstream!

Best regards,
Krzysztof