Skip to content

Commit 682bc2a

Browse files
committed
sdhci-bcm2708: raise DMA sync timeout
Commit d64b84c by accident reduced the maximum overall DMA sync timeout. The maximum overall timeout was reduced from 100ms to 30ms, which isn't enough for many cards. Increase it to 150ms, just to be extra safe. According to commit 872a8ff in the MMC subsystem, some cards require crazy long timeouts (3s), but as we're busy-waiting, and shouldn't delay for such a long time, let's hope 150ms will be enough for most cards.
1 parent 598d872 commit 682bc2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mmc/host/sdhci-bcm2708.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static void sdhci_bcm2708_dma_complete_irq(struct sdhci_host *host,
840840
We get CRC and DEND errors unless we wait for
841841
the SD controller to finish reading/writing to the card. */
842842
u32 state_mask;
843-
int timeout=1000;
843+
int timeout=5000;
844844

845845
DBG("PDMA over - sync card\n");
846846
if (data->flags & MMC_DATA_READ)

0 commit comments

Comments
 (0)