summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-10-26 17:12:24 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-10-26 17:13:38 -0400
commit9281ec2e42d2262923c5241135c10034d2897216 (patch)
treeafd48915d4c4fa61c632261753891904260cfa4e /firmware/drivers
parent3951fbf9d2b5609b44aa639f6c24e0d970cbf931 (diff)
downloadrockbox-9281ec2e42d2262923c5241135c10034d2897216.tar.gz
rockbox-9281ec2e42d2262923c5241135c10034d2897216.zip
Fix red in 3951fbf9d2
...Toshiba Gigabeat S is the only user of the ATA driver with UDMA>2 Change-Id: Ifb854da1c6a8ff1f696b908cc7c1f11d7d10be3f
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
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)
1118 if (identify_info[53] & (1<<2)) { 1118 if (identify_info[53] & (1<<2)) {
1119 int max_udma = ATA_MAX_UDMA; 1119 int max_udma = ATA_MAX_UDMA;
1120#if ATA_MAX_UDMA > 2 1120#if ATA_MAX_UDMA > 2
1121 if (!(ata_identify_data[93] & BIT(13))) 1121 if (!(identify_info[93] & (1<<13)))
1122 max_udma = 2; 1122 max_udma = 2;
1123#endif 1123#endif
1124 /* Ultra DMA mode info present, find a mode */ 1124 /* Ultra DMA mode info present, find a mode */