mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
16072bc718
commit
eb586bd9ee
4 changed files with 4 additions and 4 deletions
|
|
@ -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). */
|
||||
|
|
|
|||
|
|
@ -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_UNSPECIFIED;
|
||||
cpi->protocol = PROTO_ATA;
|
||||
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)) ==
|
||||
|
|
|
|||
|
|
@ -2385,7 +2385,7 @@ mvsaction(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;
|
||||
if ((ch->quirks & MVS_Q_SOC) == 0) {
|
||||
|
|
|
|||
|
|
@ -1960,7 +1960,7 @@ siisaction(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;
|
||||
cpi->hba_vendor = pci_get_vendor(parent);
|
||||
|
|
|
|||
Loading…
Reference in a new issue