[SCSI] aic79xx: fix up transport settings
authorJames Bottomley <James.Bottomley@steeleye.com>
Wed, 3 Aug 2005 18:25:10 +0000 (13:25 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Wed, 3 Aug 2005 18:36:52 +0000 (13:36 -0500)
commit3f40d7d6eaadecd48f6d1c0c4a5ad414b992260e
tree0728df045096f3afb750e95b772b3dbb391b0e8d
parenta4b53a11806f5c0824eb4115b1de8206ed7bb89a
[SCSI] aic79xx: fix up transport settings

There's a slight problem in the way you've done the transport
parameters; reading from the variables actually produces the current
settings, not the ones you just set (and there's usually a lag because
devices don't renegotiate until the next command goes over the bus).  If
you set the bit immediately, you get into the situation where the
transport parameters report something as being set even if the drive
cannot support it.

I patched the driver to do it this way and also corrected a panic in the
proc routines.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic79xx_proc.c