Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 22:13:05 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188958 - head/sys/dev/ata/chipsets
Message-ID:  <200902232213.n1NMD5fn041006@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902232213.n1NMD5fn041006>