svn commit: r215775 - stable/8/sys/cam/ata

[ Available lists | Index of svn-src-stable-8 | Month of Nov 2010 | Week of 23 Nov 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Alexander Motin <mav@FreeBSD.org>
Date
23 Nov 2010 21:36:57
Subject
svn commit: r215775 - stable/8/sys/cam/ata
Message-ID
201011232136.oANLavgl044862@svn.freebsd.org


[ Hide this part ]
Author: mav
Date: Tue Nov 23 21:36:56 2010
New Revision: 215775
URL: http://svn.freebsd.org/changeset/base/215775

Log:
MFC r215454:
If HBA doesn't report user-enabled SATA capabilies (like ATA_CAM wrapper) -
handle all of them as disabled.

Modified:
stable/8/sys/cam/ata/ata_xpt.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)

Modified: stable/8/sys/cam/ata/ata_xpt.c
==============================================================================
--- stable/8/sys/cam/ata/ata_xpt.c Tue Nov 23 21:36:53 2010 (r215774)
+++ stable/8/sys/cam/ata/ata_xpt.c Tue Nov 23 21:36:56 2010 (r215775)
@@ -963,6 +963,8 @@ noerror:
xpt_action((union ccb *)&cts);
if (cts.xport_specific.sata.valid & CTS_SATA_VALID_CAPS)
caps &= cts.xport_specific.sata.caps;
+ else
+ caps = 0;
/* Store result to SIM. */
bzero(&cts, sizeof(cts));
xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE);
@@ -1103,6 +1105,8 @@ notsata:
xpt_action((union ccb *)&cts);
if (cts.xport_specific.sata.valid & CTS_SATA_VALID_CAPS)
caps &= cts.xport_specific.sata.caps;
+ else
+ caps = 0;
/* Store result to SIM. */
bzero(&cts, sizeof(cts));
xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE);


Elapsed time: 0.095 seconds