]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita1307bbaf894b146e1bfbf869c85f8c31ce9c96f
tree0728df045096f3afb750e95b772b3dbb391b0e8d
parenta2f62b816c2167fd1ab5deaed60c5d7f2fa1ced8
[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