Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 02:18: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: r245446 - head/sys/dev/ata
Message-ID:  <201301150218.r0F2I5Sb024940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Jan 15 02:18:04 2013
New Revision: 245446
URL: http://svnweb.freebsd.org/changeset/base/245446

Log:
  In case somebody still use it, fix legacy ataraid(4) to work on combined
  PATA+AHCI controllers, such as JMicron JMB363.
  
  PR:		kern/159271
  MFC after:	1 week

Modified:
  head/sys/dev/ata/ata-raid.c

Modified: head/sys/dev/ata/ata-raid.c
==============================================================================
--- head/sys/dev/ata/ata-raid.c	Tue Jan 15 01:33:19 2013	(r245445)
+++ head/sys/dev/ata/ata-raid.c	Tue Jan 15 02:18:04 2013	(r245446)
@@ -1351,10 +1351,11 @@ static int
 ata_raid_read_metadata(device_t subdisk)
 {
     devclass_t pci_devclass = devclass_find("pci");
+    devclass_t atapci_devclass = devclass_find("atapci");
     devclass_t devclass=device_get_devclass(GRANDPARENT(GRANDPARENT(subdisk)));
 
     /* prioritize vendor native metadata layout if possible */
-    if (devclass == pci_devclass) {
+    if (devclass == pci_devclass || devclass == atapci_devclass) {
 	switch (pci_get_vendor(GRANDPARENT(device_get_parent(subdisk)))) {
 	case ATA_HIGHPOINT_ID: 
 	    if (ata_raid_hptv3_read_meta(subdisk, ata_raid_arrays))



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