aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-02-24 23:32:10 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2024-04-15 15:19:12 +0900
commit8c2208978877bf6533d97bde97ee763322d6308f (patch)
tree499c657d5260895699b19d78510d6f09279dfcae /drivers/mmc
parentd1343522e509ea78dd53615846bd7b0a0049e97a (diff)
downloadu-boot-8c2208978877bf6533d97bde97ee763322d6308f.zip
u-boot-8c2208978877bf6533d97bde97ee763322d6308f.tar.gz
u-boot-8c2208978877bf6533d97bde97ee763322d6308f.tar.bz2
mmc: Add generic tuning flag
Set generic mmc->tuning flag when performing tuning to indicate this condition to drivers. Drivers may use this to bypass various checks during tuning. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc-uclass.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 3284568..304bd5e 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -124,7 +124,13 @@ static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode)
int mmc_execute_tuning(struct mmc *mmc, uint opcode)
{
- return dm_mmc_execute_tuning(mmc->dev, opcode);
+ int ret;
+
+ mmc->tuning = true;
+ ret = dm_mmc_execute_tuning(mmc->dev, opcode);
+ mmc->tuning = false;
+
+ return ret;
}
#endif