summaryrefslogtreecommitdiff
path: root/include/power/max8998_pmic.h
diff options
context:
space:
mode:
authorRaul Benet <raul.benet@kaptivo.com>2019-06-13 14:59:57 +0100
committerMatthias Brugger <mbrugger@suse.com>2019-09-06 18:16:59 +0200
commitb1125802a524641ad1ac803b4a617756d26f007d (patch)
treeb5253cac4e72e90a72b04ed1fabe40a49ce9d555 /include/power/max8998_pmic.h
parent49822442edd910efdf12eb8070a9c9cc7c48037d (diff)
mmc: bcm2835-host: Fix wait_transfer_complete
Function bcm_2835_wait_transfer_complete() is not waiting long enough. The previous code was claiming to wait for ~1 seconds, but as it depends on register reads it's time actually varies. Some cards require wait times of up to ~56 ms to perform the command 'saveenv' on an EXT4 partition. Re-implement the loop exit condition to use get_timer() which allows to specify the wait time in more reliable manner. Set the maximum wait time to the originally intended 1 second. Signed-off by: Raul Benet <raul.benet_at_kaptivo.com> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'include/power/max8998_pmic.h')
0 files changed, 0 insertions, 0 deletions