]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci_am654: Add tuning algorithm for delay chain
authorJudith Mendez <jm@ti.com>
Wed, 20 Mar 2024 22:38:31 +0000 (17:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:41 +0000 (13:39 +0200)
commitb2d13473d0913e5e8ec70860badcb9c16259ee24
tree15dd300d71434993b16a7db9c58d2c3213c7cd59
parentf23f82b42556304eda2e20da9e1b116776d1fdc9
mmc: sdhci_am654: Add tuning algorithm for delay chain

[ Upstream commit 6231d99dd4119312ad41abf9383e18fec66cbe4b ]

Currently the sdhci_am654 driver only supports one tuning
algorithm which should be used only when DLL is enabled. The
ITAPDLY is selected from the largest passing window and the
buffer is viewed as a circular buffer.

The new algorithm should be used when the delay chain
is enabled. The ITAPDLY is selected from the largest passing
window and the buffer is not viewed as a circular buffer.

This implementation is based off of the following paper: [1].

Also add support for multiple failing windows.

[1] https://www.ti.com/lit/an/spract9/spract9.pdf

Fixes: 13ebeae68ac9 ("mmc: sdhci_am654: Add support for software tuning")
Signed-off-by: Judith Mendez <jm@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240320223837.959900-2-jm@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci_am654.c