1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00
Files
u-boot-megous/drivers/mmc
Raul Benet b1125802a5 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>
2019-09-06 18:16:59 +02:00
..
2019-07-31 09:07:30 +08:00
2019-06-23 14:18:42 +08:00
2019-08-23 16:42:38 -04:00
2019-07-15 10:30:08 +08:00
2019-07-31 15:31:36 +08:00
2019-08-20 12:20:32 -04:00
2019-07-15 10:16:49 +08:00