projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c252b27
)
mmc: zynq_sdhci: Change granularity of timeout to 1us
author
Ashok Reddy Soma
<ashok.reddy.soma@xilinx.com>
Wed, 23 Feb 2022 14:13:31 +0000
(15:13 +0100)
committer
Michal Simek
<michal.simek@xilinx.com>
Mon, 7 Mar 2022 07:55:14 +0000
(08:55 +0100)
The timeout used in 'commit
b6f44082d5cd
("mmc: zynq_sdhci: Wait
till sd card detect state is stable")' workaround is 1000ms at a
granularity of 1msec. Change it to 1usec, to not waste time incase the
cd is stable.
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link:
https://lore.kernel.org/r/f008d2bcf864702a01564789f14f9cdecb8acd45.1645625609.git.michal.simek@xilinx.com
drivers/mmc/zynq_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/zynq_sdhci.c
b/drivers/mmc/zynq_sdhci.c
index f4d69a2f709874adfec7008788b606fd94f00450..7d62d05eda71b6628bf96627eff847ac2985c992 100644
(file)
--- a/
drivers/mmc/zynq_sdhci.c
+++ b/
drivers/mmc/zynq_sdhci.c
@@
-770,11
+770,11
@@
static int arasan_sdhci_probe(struct udevice *dev)
* 1000msec till the card detect state gets stable.
*/
if (IS_ENABLED(CONFIG_ARCH_VERSAL)) {
- u32 timeout = 1000;
+ u32 timeout = 1000
000
;
while (((sdhci_readl(host, SDHCI_PRESENT_STATE) &
SDHCI_CARD_STATE_STABLE) == 0) && timeout) {
-
m
delay(1);
+
u
delay(1);
timeout--;
}
if (!timeout) {