1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 20:20:39 +02:00

qi-add-warn-on-timeouts.patch

Just let us know if we ever have a timeout situation

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:41 +00:00 committed by Andy Green
parent 38ccc50783
commit 4e7afacaef

View File

@ -379,14 +379,15 @@ static void check_dma_int (void)
if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x0002) { if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x0002) {
HS_DMA_END = 1; HS_DMA_END = 1;
s3c_hsmmc_writew(s3c_hsmmc_readw(HM_NORINTSTS) | 0x0002, HM_NORINTSTS); s3c_hsmmc_writew(s3c_hsmmc_readw(HM_NORINTSTS) | 0x0002, HM_NORINTSTS);
break; return;
} }
if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x8000) { if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x8000) {
puts("error found: "); puts("error found: ");
print32(s3c_hsmmc_readw(HM_ERRINTSTS)); print32(s3c_hsmmc_readw(HM_ERRINTSTS));
break; return;
} }
} }
puts("check_dma_int: timeout\n"); puts("check_dma_int: timeout\n");
} }