svn commit: r188958 - head/sys/dev/ata/chipsets

Alexander Motin mav at FreeBSD.org
Mon Feb 23 14:13:08 PST 2009


Author: mav
Date: Mon Feb 23 22:13:05 2009
New Revision: 188958
URL: http://svn.freebsd.org/changeset/base/188958

Log:
  Fix non-AHCI channels detection on combined JMicron controllers,
  broken by r188694.

Modified:
  head/sys/dev/ata/chipsets/ata-jmicron.c

Modified: head/sys/dev/ata/chipsets/ata-jmicron.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-jmicron.c	Mon Feb 23 21:19:18 2009	(r188957)
+++ head/sys/dev/ata/chipsets/ata-jmicron.c	Mon Feb 23 22:13:05 2009	(r188958)
@@ -132,6 +132,8 @@ ata_jmicron_chipinit(device_t dev)
 
 	/* set the number of HW channels */ 
 	ctlr->channels = ctlr->chip->cfg1 + ctlr->chip->cfg2;
+	ctlr->ichannels |= ((0xffffffffU >> (32 - ctlr->chip->cfg2))
+	    << ctlr->chip->cfg1);
     }
     return 0;
 }


More information about the svn-src-head mailing list