Skip to content

Commit c3bb9d6

Browse files
[UNIATA] UniataChipDetect(): Workaround AHCI detection (reactos#8184)
Fix AHCI support regression. Disable a "new" code block, which is broken. Reverts a part of commit 1afae58 (r69699). CORE-13346
1 parent ddbe971 commit c3bb9d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/storage/ide/uniata/id_init.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,18 @@ UniataChipDetect(
658658
}
659659
break;
660660
default:
661+
#ifdef __REACTOS__
662+
/* I assume:
663+
* - RangeStart == 0LL, "always". (CORE-13346)
664+
* - It will be updated by UniataAhciDetect() a few lines below...
665+
*/
666+
#else
661667
if(!ScsiPortConvertPhysicalAddressToUlong((*ConfigInfo->AccessRanges)[5].RangeStart)) {
662668
KdPrint2((PRINT_PREFIX "No BAR5, try BM\n"));
663669
ChipFlags &= ~UNIATA_AHCI;
664670
deviceExtension->HwFlags &= ~UNIATA_AHCI;
665671
}
672+
#endif
666673
break;
667674
}
668675
}

0 commit comments

Comments
 (0)