Skip to content
Snippets Groups Projects
Commit e776cb30 authored by Sam Protsenko's avatar Sam Protsenko Committed by Troy Kisky
Browse files

mmc: Fix timeout values passed to mmc_wait_dat0()


mmc_wait_dat0() expects timeout argument to be in usec units. But some
overlying functions operate on timeout in msec units. Convert timeout
from msec to usec when passing it to mmc_wait_dat0().

This fixes 'avb' commands on BeagleBoard X15, because next chain was
failing:

    get_partition() -> mmc_switch_part() -> __mmc_switch() ->
    mmc_wait_dat0()

when passing incorrect timeout from __mmc_switch() to mmc_wait_dat0().

Fixes: bb98b8c5c06a ("mmc: During a switch, poll on dat0 if available and check the final status")
Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarEugeniu Rosca <rosca.eugeniu@gmail.com>
Tested-by: default avatarEugeniu Rosca <rosca.eugeniu@gmail.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Tested-by: default avatarIgor Opaniuk <igor.opaniuk@gmail.com>
Reviewed-by: default avatarIgor Opaniuk <igor.opaniuk@gmail.com>
parent 07b1689a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment