sd_card_drv: increase multiblock transfer timeout

Disconnecting a client and connecting an other to the sd_card_drv
on imx6 results in a "Completion host signal timed out" error in
the newly connected client.

Fixes #3272
This commit is contained in:
Pirmin Duss 2019-04-03 07:10:13 +02:00 committed by Christian Helmuth
parent 93ba870b2d
commit 642c2ab4bc
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ void Driver::_handle_irq()
* done with other controllers - isn't sufficient. Instead, both "Transfer
* Complete" and "Command Complete" must be gathered.
*/
try { wait_for(_delayer, Irqstat::Cc::Equal(1), Irqstat::Tc::Equal(1)); }
try {
wait_for(Attempts(1000), Microseconds(1000), _delayer,
Irqstat::Cc::Equal(1), Irqstat::Tc::Equal(1)); }
catch (Polling_timeout) {
error("Completion host signal timed out");
throw -1;