[Midnightbsd-cvs] src [7669] trunk/sys/dev/ahci/ahci.c: fix the ahci 1.2 version check

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Aug 6 21:26:43 EDT 2016


Revision: 7669
          http://svnweb.midnightbsd.org/src/?rev=7669
Author:   laffer1
Date:     2016-08-06 21:26:42 -0400 (Sat, 06 Aug 2016)
Log Message:
-----------
fix the ahci 1.2 version check

Modified Paths:
--------------
    trunk/sys/dev/ahci/ahci.c

Modified: trunk/sys/dev/ahci/ahci.c
===================================================================
--- trunk/sys/dev/ahci/ahci.c	2016-08-07 01:01:28 UTC (rev 7668)
+++ trunk/sys/dev/ahci/ahci.c	2016-08-07 01:26:42 UTC (rev 7669)
@@ -489,7 +489,7 @@
 	/* Get the HW capabilities */
 	version = ATA_INL(ctlr->r_mem, AHCI_VS);
 	ctlr->caps = ATA_INL(ctlr->r_mem, AHCI_CAP);
-	if (version >= 0x00010020)
+	if (version >= 0x00010200)
 		ctlr->caps2 = ATA_INL(ctlr->r_mem, AHCI_CAP2);
 	if (ctlr->caps & AHCI_CAP_EMS)
 		ctlr->capsem = ATA_INL(ctlr->r_mem, AHCI_EM_CTL);



More information about the Midnightbsd-cvs mailing list