Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2010 20:10:24 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 177569 for review
Message-ID:  <201005012010.o41KAOls067559@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@177569?ac=10

Change 177569 by mav@mav_mavtest on 2010/05/01 20:10:13

	Count devices in partial/slumber as connected.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_pmp.c#35 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_pmp.c#35 (text+ko) ====

@@ -653,14 +653,16 @@
 		    (done_ccb->ataio.res.lba_mid << 16) +
 		    (done_ccb->ataio.res.lba_low << 8) +
 		    done_ccb->ataio.res.sector_count;
-		if ((res & 0xf0f) == 0x103 && (res & 0x0f0) != 0) {
+		if (((res & 0xf0f) == 0x103 && (res & 0x0f0) != 0) ||
+		    (res & 0x600) != 0) {
 			if (bootverbose) {
 				printf("%s%d: port %d status: %08x\n",
 				    periph->periph_name, periph->unit_number,
 				    softc->pm_step, res);
 			}
-			/* Report device speed. */
-			if (xpt_create_path(&dpath, periph,
+			/* Report device speed if it is online. */
+			if ((res & 0xf0f) == 0x103 &&
+			    xpt_create_path(&dpath, periph,
 			    xpt_path_path_id(periph->path),
 			    softc->pm_step, 0) == CAM_REQ_CMP) {
 				bzero(&cts, sizeof(cts));



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