]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: zynq_sdhci: Fix timeout issue
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Wed, 23 Feb 2022 14:13:30 +0000 (15:13 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Mar 2022 07:55:14 +0000 (08:55 +0100)
commit4f28d3e076a152634aff4669fba2dc8ea04b2382
treeb06418ab131e0ac73ba70d89c5f519f91b77712e
parent3d5358be9cdd1846fa88298af435b0ec00e0547b
mmc: zynq_sdhci: Fix timeout issue

In the workaround added with 'commit f00404e62f86 ("mmc: zynq_sdhci: Wait
till sd card detect state is stable")' the timeout variable has post
decrement. Whenever timeout happens, this post decrement is making
timeout=0xffffffff, so timeout error print and return statement are
never reached. Fix it by decrementing it inside the while loop.

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/61fc1160ada0dd622cd29e381a74af7bf3d9a200.1645625609.git.michal.simek@xilinx.com
drivers/mmc/zynq_sdhci.c