]> git.hungrycats.org Git - linux/commit
mmc: sdhci-xenon: fix PHY init clock stability
authorElad Nachman <enachman@marvell.com>
Thu, 22 Feb 2024 20:09:30 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:49 +0000 (14:38 +0000)
commit5f6e8930ca963921f6b9be636b51a579a02af892
treeeca8bdcb04ce088119181ec5d0b456de34a3ae0b
parentf4fae0a76ee208e91424e03bf72e1b7c1ad11a7b
mmc: sdhci-xenon: fix PHY init clock stability

commit 8e9f25a290ae0016353c9ea13314c95fb3207812 upstream.

Each time SD/mmc phy is initialized, at times, in some of
the attempts, phy fails to completes its initialization
which results into timeout error. Per the HW spec, it is
a pre-requisite to ensure a stable SD clock before a phy
initialization is attempted.

Fixes: 06c8b667ff5b ("mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC")
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Elad Nachman <enachman@marvell.com>
Link: https://lore.kernel.org/r/20240222200930.1277665-1-enachman@marvell.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-xenon-phy.c