[SCSI] implement parameter limits in the SPI transport class
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 6 May 2005 23:05:20 +0000 (18:05 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 20 May 2005 20:54:32 +0000 (15:54 -0500)
commit62a8612972eaea804e1e42c63ee403cd4e14cc35
tree15411e03ce3030849bb99e5d89874bb4032e32e6
parent88d7bd8cb9eb8d64bf7997600b0d64f7834047c5
[SCSI] implement parameter limits in the SPI transport class

There's a basic need not to have parameters go under or over certain
values when doing domain validation.  The basic ones are

max_offset, max_width and min_period

This patch makes the transport class take and enforce these three
limits.  Currently they can be set by the user, although they could
obviously be read from the HBA's on-board NVRAM area during
slave_configure (if it has one).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_spi.c
include/scsi/scsi_transport_spi.h