summaryrefslogtreecommitdiffstats
path: root/sys/dev/ahci
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-06-10 11:17:14 +0000
committermav <mav@FreeBSD.org>2012-06-10 11:17:14 +0000
commit6450bdd899dc9e0889a213594c315c02d32661a9 (patch)
tree4f90398a8395bb59a5f344340bcde94006c67ed6 /sys/dev/ahci
parent454415d4a3bf1756ec95bc6dcd75647abb11126f (diff)
downloadFreeBSD-src-6450bdd899dc9e0889a213594c315c02d32661a9.zip
FreeBSD-src-6450bdd899dc9e0889a213594c315c02d32661a9.tar.gz
Partially revert r236666:
Return PROTO_ATA protocol in response to XPT_PATH_INQ. smartmontools uses it to identify ATA devices and I don't know any other place now where it is important. It could probably use XPT_GDEV_TYPE instead for more accurate protocol information, but let it live for now. Reported by: matthew MFC after: 3 days
Diffstat (limited to 'sys/dev/ahci')
-rw-r--r--sys/dev/ahci/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c
index ccbce37..481fe0a 100644
--- a/sys/dev/ahci/ahci.c
+++ b/sys/dev/ahci/ahci.c
@@ -2970,7 +2970,7 @@ ahciaction(struct cam_sim *sim, union ccb *ccb)
cpi->unit_number = cam_sim_unit(sim);
cpi->transport = XPORT_SATA;
cpi->transport_version = XPORT_VERSION_UNSPECIFIED;
- cpi->protocol = PROTO_UNSPECIFIED;
+ cpi->protocol = PROTO_ATA;
cpi->protocol_version = PROTO_VERSION_UNSPECIFIED;
cpi->maxio = MAXPHYS;
/* ATI SB600 can't handle 256 sectors with FPDMA (NCQ). */
OpenPOWER on IntegriCloud