Commit ace4e718 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

[SCSI] aic7xxx: fix boot hang with Fujitsu drives

Apparently these are the only drives that try to negotiate IU and QAS
at u160 speeds.  The aic7xxx driver can't cope with this.  The fix is
to eliminate the IU and QAS setting routines.  I've #if 0'd them out,
just in case we ever get the sequencer documentation out of Adaptec,
since we'd then be able to fix the driver.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent b4687ca4
...@@ -2633,6 +2633,11 @@ static void ahc_linux_set_dt(struct scsi_target *starget, int dt) ...@@ -2633,6 +2633,11 @@ static void ahc_linux_set_dt(struct scsi_target *starget, int dt)
ahc_unlock(ahc, &flags); ahc_unlock(ahc, &flags);
} }
#if 0
/* FIXME: This code claims to support IU and QAS. However, the actual
* sequencer code and aic7xxx_core have no support for these parameters and
* will get into a bad state if they're negotiated. Do not enable this
* unless you know what you're doing */
static void ahc_linux_set_qas(struct scsi_target *starget, int qas) static void ahc_linux_set_qas(struct scsi_target *starget, int qas)
{ {
struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
...@@ -2688,6 +2693,7 @@ static void ahc_linux_set_iu(struct scsi_target *starget, int iu) ...@@ -2688,6 +2693,7 @@ static void ahc_linux_set_iu(struct scsi_target *starget, int iu)
ppr_options, AHC_TRANS_GOAL, FALSE); ppr_options, AHC_TRANS_GOAL, FALSE);
ahc_unlock(ahc, &flags); ahc_unlock(ahc, &flags);
} }
#endif
static struct spi_function_template ahc_linux_transport_functions = { static struct spi_function_template ahc_linux_transport_functions = {
.set_offset = ahc_linux_set_offset, .set_offset = ahc_linux_set_offset,
...@@ -2698,10 +2704,12 @@ static struct spi_function_template ahc_linux_transport_functions = { ...@@ -2698,10 +2704,12 @@ static struct spi_function_template ahc_linux_transport_functions = {
.show_width = 1, .show_width = 1,
.set_dt = ahc_linux_set_dt, .set_dt = ahc_linux_set_dt,
.show_dt = 1, .show_dt = 1,
#if 0
.set_iu = ahc_linux_set_iu, .set_iu = ahc_linux_set_iu,
.show_iu = 1, .show_iu = 1,
.set_qas = ahc_linux_set_qas, .set_qas = ahc_linux_set_qas,
.show_qas = 1, .show_qas = 1,
#endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment