fusee sdmmc: don't time out on long reads

This commit is contained in:
Kate J. Temkin
2018-05-18 07:42:35 -06:00
parent 9424510f8f
commit 7bfdf63a71
2 changed files with 5 additions and 1 deletions

View File

@@ -1157,6 +1157,10 @@ static int sdmmc_wait_for_interrupt(struct mmc *mmc,
// Finally, EOI the relevant interrupt.
mmc->regs->int_status |= fault_conditions;
// Reset the timebase, so it applies to the next
// DMA interval.
timebase = get_time();
}
if (mmc->regs->int_status & target_irq)