summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAshok Reddy Soma <[email protected]>2022-02-23 15:13:30 +0100
committerMichal Simek <[email protected]>2022-03-07 08:55:14 +0100
commitc252b2774782360fd8785230072bb6c262a06709 (patch)
treeb06418ab131e0ac73ba70d89c5f519f91b77712e /include/linux
parent03a8e826e0a05e7d255074d2c1a53feb84ca6b26 (diff)
mmc: zynq_sdhci: Fix timeout issue
In the workaround added with 'commit b6f44082d5cd ("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 <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/61fc1160ada0dd622cd29e381a74af7bf3d9a200.1645625609.git.michal.simek@xilinx.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions