From 9281ec2e42d2262923c5241135c10034d2897216 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 26 Oct 2024 17:12:24 -0400 Subject: Fix red in 3951fbf9d2 ...Toshiba Gigabeat S is the only user of the ATA driver with UDMA>2 Change-Id: Ifb854da1c6a8ff1f696b908cc7c1f11d7d10be3f --- firmware/drivers/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index cb857158ca..c995f6de85 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1118,7 +1118,7 @@ static int set_features(void) if (identify_info[53] & (1<<2)) { int max_udma = ATA_MAX_UDMA; #if ATA_MAX_UDMA > 2 - if (!(ata_identify_data[93] & BIT(13))) + if (!(identify_info[93] & (1<<13))) max_udma = 2; #endif /* Ultra DMA mode info present, find a mode */ -- cgit v1.2.3