diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2005-08-03 14:25:10 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-08-03 14:36:52 -0400 |
commit | 3f40d7d6eaadecd48f6d1c0c4a5ad414b992260e (patch) | |
tree | 0728df045096f3afb750e95b772b3dbb391b0e8d /drivers/scsi/aic7xxx/aic79xx_proc.c | |
parent | a4b53a11806f5c0824eb4115b1de8206ed7bb89a (diff) |
[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>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_proc.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_proc.c b/drivers/scsi/aic7xxx/aic79xx_proc.c index 2058aa9b5c80..cffdd104f9e4 100644 --- a/drivers/scsi/aic7xxx/aic79xx_proc.c +++ b/drivers/scsi/aic7xxx/aic79xx_proc.c | |||
@@ -178,9 +178,9 @@ ahd_dump_target_state(struct ahd_softc *ahd, struct info_str *info, | |||
178 | copy_info(info, "\tUser: "); | 178 | copy_info(info, "\tUser: "); |
179 | ahd_format_transinfo(info, &tinfo->user); | 179 | ahd_format_transinfo(info, &tinfo->user); |
180 | starget = ahd->platform_data->starget[target_offset]; | 180 | starget = ahd->platform_data->starget[target_offset]; |
181 | targ = scsi_transport_target_data(starget); | 181 | if (starget == NULL) |
182 | if (targ == NULL) | ||
183 | return; | 182 | return; |
183 | targ = scsi_transport_target_data(starget); | ||
184 | 184 | ||
185 | copy_info(info, "\tGoal: "); | 185 | copy_info(info, "\tGoal: "); |
186 | ahd_format_transinfo(info, &tinfo->goal); | 186 | ahd_format_transinfo(info, &tinfo->goal); |