summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-06-06 06:52:51 +0000
committermav <mav@FreeBSD.org>2012-06-06 06:52:51 +0000
commitee6412e858b4f4494d4ed0593871b67016382659 (patch)
tree4a291a92409c3b2f5d1945f6fcc0dde4efa2df88 /sys/dev/ata
parent691dfc2d38f86af8b930db40efa6e0ec1a6e455d (diff)
downloadFreeBSD-src-ee6412e858b4f4494d4ed0593871b67016382659.zip
FreeBSD-src-ee6412e858b4f4494d4ed0593871b67016382659.tar.gz
ATA/SATA controllers have no idea about protocol of the connected device
until transport will do some probe actions (at least soft reset). Make ATA/SATA SIMs to not report bogus and confusing PROTO_ATA protocol. Make ATA/SATA transport to fill that gap by reporting protocol to SIM with XPT_SET_TRAN_SETTINGS and patching XPT_GET_TRAN_SETTINGS results if needed.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 6bee48d..73e32dd 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -1787,7 +1787,7 @@ ataaction(struct cam_sim *sim, union ccb *ccb)
d = &ch->curr[ccb->ccb_h.target_id];
else
d = &ch->user[ccb->ccb_h.target_id];
- cts->protocol = PROTO_ATA;
+ cts->protocol = PROTO_UNSPECIFIED;
cts->protocol_version = PROTO_VERSION_UNSPECIFIED;
if (ch->flags & ATA_SATA) {
cts->transport = XPORT_SATA;
@@ -1875,7 +1875,7 @@ ataaction(struct cam_sim *sim, union ccb *ccb)
else
cpi->transport = XPORT_ATA;
cpi->transport_version = XPORT_VERSION_UNSPECIFIED;
- cpi->protocol = PROTO_ATA;
+ cpi->protocol = PROTO_UNSPECIFIED;
cpi->protocol_version = PROTO_VERSION_UNSPECIFIED;
cpi->maxio = ch->dma.max_iosize ? ch->dma.max_iosize : DFLTPHYS;
if (device_get_devclass(device_get_parent(parent)) ==
OpenPOWER on IntegriCloud