mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
mmc: sdhci: Start status timeout after command issue
The status polling timeout in sdhci_send_command() should measure the time spent waiting for the command interrupt after the command has been issued. Do not initialize the timer at function entry, since the command inhibit wait and setup path can consume time before SDHCI_COMMAND is written. Start the timer immediately after issuing the command instead. Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
committed by
Peng Fan
parent
88338f9d14
commit
731a875ae7
@@ -215,7 +215,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
|
||||
u32 mask, flags, mode = 0;
|
||||
unsigned int time = 0;
|
||||
int mmc_dev = mmc_get_blk_desc(mmc)->devnum;
|
||||
ulong start = get_timer(0);
|
||||
ulong start;
|
||||
|
||||
host->start_addr = 0;
|
||||
/* Timeout unit - ms */
|
||||
|
||||
Reference in New Issue
Block a user