Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2013 17:21:09 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r245802 - stable/8/sys/dev/ata
Message-ID:  <201301221721.r0MHL9Mm045860@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Jan 22 17:21:08 2013
New Revision: 245802
URL: http://svnweb.freebsd.org/changeset/base/245802

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

Modified:
  stable/8/sys/dev/ata/ata-raid.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/ata/   (props changed)

Modified: stable/8/sys/dev/ata/ata-raid.c
==============================================================================
--- stable/8/sys/dev/ata/ata-raid.c	Tue Jan 22 17:19:44 2013	(r245801)
+++ stable/8/sys/dev/ata/ata-raid.c	Tue Jan 22 17:21:08 2013	(r245802)
@@ -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?201301221721.r0MHL9Mm045860>