Skip to content

Commit

Permalink
MX28: DMA: Prolong the DMA timeout
Browse files Browse the repository at this point in the history
Load from SPI flash can create a long DMA chain, which can take long
time to transfer. Change the DMA timeout to roughly 10s to prevent
such long chains misreporting errors.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Otavio Salvador <[email protected]>
Cc: Stefano Babic <[email protected]>
  • Loading branch information
Marek Vasut authored and albert-aribaud-u-boot committed Sep 1, 2012
1 parent 615a4ad commit 1375f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/apbh_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan)
*/
int mxs_dma_go(int chan)
{
uint32_t timeout = 10000;
uint32_t timeout = 10000000;
int ret;

LIST_HEAD(tmp_desc_list);
Expand Down

0 comments on commit 1375f04

Please sign in to comment.