]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: Add quirk to disable DDR50 tuning
authorErick Shepherd <erick.shepherd@ni.com>
Mon, 31 Mar 2025 22:13:37 +0000 (17:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:32 +0000 (11:07 +0100)
commitbe42e85091ca1776ca16c3da7c5ecaf28f04a4c6
tree42350b3b225c419cb09f487f48621285c97820f7
parentc28421685ca06e18943eeb3ad2edac11c5d39a3f
mmc: Add quirk to disable DDR50 tuning

[ Upstream commit 9510b38dc0ba358c93cbf5ee7c28820afb85937b ]

Adds the MMC_QUIRK_NO_UHS_DDR50_TUNING quirk and updates
mmc_execute_tuning() to return 0 if that quirk is set. This fixes an
issue on certain Swissbit SD cards that do not support DDR50 tuning
where tuning requests caused I/O errors to be thrown.

Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20250331221337.1414534-1-erick.shepherd@ni.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/card.h
drivers/mmc/core/quirks.h
drivers/mmc/core/sd.c
include/linux/mmc/card.h