diff options
author | Matthew Wilcox <matthew@wil.cx> | 2005-11-30 07:08:44 +0300 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-14 04:11:45 +0300 |
commit | b37df48923b76155de2a728e1155ed263dba5f53 (patch) | |
tree | d66ce7b56be9df12a7c64521e931dc4925bf800f /drivers/scsi/sym53c8xx_2/sym_glue.c | |
parent | 33333bacf523bb4bb903058fec6041a5952c93c6 (diff) | |
download | linux-b37df48923b76155de2a728e1155ed263dba5f53.tar.xz |
[SCSI] sym2: Allow NVRAM settings to limit speed and width
The NVRAM for both Tekram and Symbios boards allows the user to set the
speed and width for individual targets. I took that code out in March
2004 when we introduced Domain Validation, but it seems there's still
a legitimate need for it in some configurations.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_glue.c')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index bb90ef9659ab..cb3d195bdb94 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c @@ -1038,6 +1038,9 @@ static int sym53c8xx_slave_alloc(struct scsi_device *sdev) return -ENOMEM; tp->starget = sdev->sdev_target; + spi_min_period(tp->starget) = tp->usr_period; + spi_max_width(tp->starget) = tp->usr_width; + return 0; } |