1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

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

@ -28,7 +28,7 @@
#define CONSOLE_FG_COL 0xa0
/* Try using the small font */
#define CONFIG_VIDEO_FONT_SMALL
//#define CONFIG_VIDEO_FONT_SMALL
/*
* Graphic Data Format (GDF) bits for VIDEO_DATA_FORMAT

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)