If HBA doesn't report user-enabled SATA capabilies (like ATA_CAM wrapper) -

handle all of them as disabled. This was original cause of the problem,
workarounded by r215453.

MFC after:	1 week
This commit is contained in:
Alexander Motin 2010-11-18 13:38:33 +00:00
parent 5c2a4ae217
commit c2b82f3e61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215454

View File

@ -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);