diff options
author | kensmith <kensmith@FreeBSD.org> | 2009-08-21 01:00:15 +0000 |
---|---|---|
committer | kensmith <kensmith@FreeBSD.org> | 2009-08-21 01:00:15 +0000 |
commit | 2a42aee236ff2c0696783f6b0503b2c92d2656d9 (patch) | |
tree | 85e091a90adf7867bee35f576f83e6b5a2c63d6b /sys/dev/hptrr/hptrr_osm_bsd.c | |
parent | f00e60c6b2379e2575b65c7711080967f3b85594 (diff) | |
download | FreeBSD-src-2a42aee236ff2c0696783f6b0503b2c92d2656d9.zip FreeBSD-src-2a42aee236ff2c0696783f6b0503b2c92d2656d9.tar.gz |
Fix a boot hang for hptrr(4) caused by changes introduced in r195534.
It is necessary to make sure cpi->transport is set for xpt_scan_bus() to
work properly.
Submitted by: Bernhard Schmidt (scb+freebsd-current <at> techwires
<dot> net)
Reviewed by: scottl
Approved by: re (kib)
Diffstat (limited to 'sys/dev/hptrr/hptrr_osm_bsd.c')
-rw-r--r-- | sys/dev/hptrr/hptrr_osm_bsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/hptrr/hptrr_osm_bsd.c b/sys/dev/hptrr/hptrr_osm_bsd.c index 3872cde..eae952e 100644 --- a/sys/dev/hptrr/hptrr_osm_bsd.c +++ b/sys/dev/hptrr/hptrr_osm_bsd.c @@ -814,6 +814,10 @@ static void hpt_action(struct cam_sim *sim, union ccb *ccb) strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); strncpy(cpi->hba_vid, "HPT ", HBA_IDLEN); strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); + cpi->transport = XPORT_SPI; + cpi->transport_version = 2; + cpi->protocol = PROTO_SCSI; + cpi->protocol_version = SCSI_REV_2; cpi->ccb_h.status = CAM_REQ_CMP; break; } |