dw_mmc: reduce max polling wait to one second

Under high memory pressure, SDIO interrupts are missed triggering card
resets and link monitor failures.  This is combated by reducing the
maximum time between polling loops to one second.  This commit also
fixes the increasing backoff time between loops.  The wait time is
checked after the calculation to verify it is not longer than 1 second.

BUG=chromium:468342
TEST=Multiple runs of the loaded network test script that maintains high
memory pressure while performing curl requests - watched for link
monitor failures and card resets.

Change-Id: I0149366044377f63586a6696a86c7f65b3cb686e
Signed-off-by: Rebecca Silberstein <silberst@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/264492
Reviewed-by: Douglas Anderson <dianders@chromium.org>
(cherry picked from commit 38b89697c8d236231098046e953920f70e10c2d7)
Reviewed-on: https://chromium-review.googlesource.com/265036
Tested-by: Douglas Anderson <dianders@chromium.org>
1 file changed