mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- a/drivers/sd/sd.c
 | 
						|
+++ b/drivers/sd/sd.c
 | 
						|
@@ -560,11 +560,11 @@ static int bm_sd_read(int lba, uintptr_t buf, size_t size)
 | 
						|
 			} else {
 | 
						|
 				udelay(1);
 | 
						|
 				timeout++;
 | 
						|
 			}
 | 
						|
 
 | 
						|
-			if (timeout >= 10000) {
 | 
						|
+			if (timeout >= 100000) {
 | 
						|
 				printf("sdhci read data timeout\n");
 | 
						|
 				goto timeout;
 | 
						|
 			}
 | 
						|
 		}
 | 
						|
 
 |