From 4e7afacaef74677cff86b1654b899cc37f58dd89 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Nov 2008 10:16:41 +0000 Subject: [PATCH] qi-add-warn-on-timeouts.patch Just let us know if we ever have a timeout situation Signed-off-by: Andy Green --- qiboot/src/cpu/s3c6410/hs_mmc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qiboot/src/cpu/s3c6410/hs_mmc.c b/qiboot/src/cpu/s3c6410/hs_mmc.c index 2224a38..c87a1f7 100644 --- a/qiboot/src/cpu/s3c6410/hs_mmc.c +++ b/qiboot/src/cpu/s3c6410/hs_mmc.c @@ -379,14 +379,15 @@ static void check_dma_int (void) if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x0002) { HS_DMA_END = 1; s3c_hsmmc_writew(s3c_hsmmc_readw(HM_NORINTSTS) | 0x0002, HM_NORINTSTS); - break; + return; } if (s3c_hsmmc_readw(HM_NORINTSTS) & 0x8000) { puts("error found: "); print32(s3c_hsmmc_readw(HM_ERRINTSTS)); - break; + return; } } + puts("check_dma_int: timeout\n"); }