]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ARM: dts: imx: Set default tuning step for imx7d usdhc
authorXiaolei Wang <xiaolei.wang@windriver.com>
Mon, 24 Jul 2023 15:45:10 +0000 (23:45 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:22 +0000 (12:00 +0100)
commitaa2bf93ad35db4aeffd54674aa47ec13a56a0516
treeab868ea600e6e1e8dad574d731ff9f7de50d28a5
parent4f65f500286fc025a9b9cde7aa0882d0852704d6
ARM: dts: imx: Set default tuning step for imx7d usdhc

BugLink: https://bugs.launchpad.net/bugs/2039110
[ Upstream commit be18293e47cbca7c6acee9231fc851601d69563a ]

If the tuning step is not set, the tuning step is set to 1.
For some sd cards, the following Tuning timeout will occur.

Tuning failed, falling back to fixed sampling clock
mmc0: Tuning failed, falling back to fixed sampling clock

So set the default tuning step. This refers to the NXP vendor's
commit below:

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/
arch/arm/boot/dts/imx7s.dtsi#L1216-L1217

Fixes: 1e336aa0c025 ("mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting")
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/boot/dts/imx7s.dtsi