Skip to content

Commit a5d8873

Browse files
committed
sdhci-bcm2807: Increase sync_after_dma timeout
The current timeout is being hit with some cards that complete successfully with a longer timeout. The timeout is not handled well, and is believed to be a code path that causes corruption. 872a8ff suggests that crappy cards can take up to 3 seconds to respond
1 parent f200c93 commit a5d8873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-bcm2708.c

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

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

0 commit comments

Comments
 (0)