mmc: omap_hsmmc: fix timeout for cmd and data soft reset
authorJianpeng Ma <majianpeng@gmail.com>
Sun, 20 Oct 2013 18:55:20 +0000 (00:25 +0530)
committerChris Ball <cjb@laptop.org>
Thu, 31 Oct 2013 00:26:19 +0000 (20:26 -0400)
commit1e881786c9038cd78dfa325b012f4a00ce1bcfd4
treed4f412b8c8e9f87dbebab949514ccb446f81c023
parent0a82e06e6183a252608df48cc4793b83e2d73dfd
mmc: omap_hsmmc: fix timeout for cmd and data soft reset

With HSMMC_HAS_UPDATED_RESET reset of cmd/data (SRC/SRD) can be to
quick and can be missed resulting in wait for software timeout.
With cpu_relax timeout can be long and unpredictable. Use udelay
instead for timeout implementation.

Reported-by: Yuzheng Ma <mayuzheng@kedacom.com>
Tested-by: Yuzheng Ma <mayuzheng@kedacom.com>
Reviewed-by: Hein Tibosch <hein_tibosch@yahoo.es>
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c