From a6f0044d4078cb6be44d271fb618e8d8e7ce5bb7 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 16 Jul 2024 13:26:41 -0400 Subject: [PATCH] Revert "ata: Use PIO0 when ATA_SET_PIO_TIMING is not defined" This reverts commit 95d6c74627c7a27fe9f5244fcdd9265722c80268. --- firmware/drivers/ata.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 93d53cbfce..d82fb173cc 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1102,10 +1102,8 @@ static int set_features(void) { 82, 6, 0xaa, 0 }, /* enable read look-ahead */ }; int i; - int pio_mode = 0; + int pio_mode = 2; /* Lowest */ -#ifdef ATA_SET_PIO_TIMING - pio_mode = 2; /* Find out the highest supported PIO mode */ if (identify_info[53] & (1<<1)) { /* Is word 64 valid? */ if (identify_info[64] & 2) @@ -1113,7 +1111,6 @@ static int set_features(void) else if(identify_info[64] & 1) pio_mode = 3; } -#endif /* Update the table: set highest supported pio mode that we also support */ features[0].parameter = 8 + pio_mode;