summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_cd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index 3984f77..c5be698 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -2976,6 +2976,12 @@ cdsetspeed(struct cam_periph *periph, u_int32_t rdspeed, u_int32_t wrspeed)
ccb = cdgetccb(periph, /* priority */ 1);
csio = &ccb->csio;
+ /* Preserve old behavior: units in multiples of CDROM speed */
+ if (rdspeed < 177)
+ rdspeed *= 177;
+ if (wrspeed < 177)
+ wrspeed *= 177;
+
cam_fill_csio(csio,
/* retries */ 1,
/* cbfcnp */ cddone,
OpenPOWER on IntegriCloud