Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2010 19:53: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: r203895 - stable/8/sys/dev/ata
Message-ID:  <201002141953.o1EJr9pd069032@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Feb 14 19:53:09 2010
New Revision: 203895
URL: http://svn.freebsd.org/changeset/base/203895

Log:
  MFC r203445:
  Report to CAM unit number of underlying ataX bus device, instead of this
  atapicamX. It is more apropriate and useful together with "ata" name.

Modified:
  stable/8/sys/dev/ata/atapi-cam.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/dev/ata/atapi-cam.c
==============================================================================
--- stable/8/sys/dev/ata/atapi-cam.c	Sun Feb 14 19:51:39 2010	(r203894)
+++ stable/8/sys/dev/ata/atapi-cam.c	Sun Feb 14 19:53:09 2010	(r203895)
@@ -201,7 +201,7 @@ atapi_cam_attach(device_t dev)
     scp->parent = device_get_parent(dev);
     scp->ata_ch = device_get_softc(scp->parent);
     TAILQ_INIT(&scp->pending_hcbs);
-    unit = device_get_unit(dev);
+    unit = device_get_unit(device_get_parent(dev));
 
     if ((devq = cam_simq_alloc(16)) == NULL) {
 	error = ENOMEM;



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