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>
This commit is contained in:
Marek Vasut 2024-02-24 23:32:10 +01:00 committed by Jaehoon Chung
parent d1343522e5
commit 8c22089788
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -736,6 +736,7 @@ struct mmc {
* accessing the boot partitions
*/
u32 quirks;
bool tuning:1;
bool hs400_tuning:1;
enum bus_mode user_speed_mode; /* input speed mode from user */