1 Jun 2005 01:35
[PATCH] update spi transport class so that u320 Domain Validation works
James Bottomley <James.Bottomley <at> SteelEye.com>
2005-05-31 23:35:39 GMT
2005-05-31 23:35:39 GMT
There are several extra things that have to be considered when running
Domain Validation on a u320 target (notably how you fall back).
Hopefully this should help us when someone adds this transport class to
aic79xx.
I've tested this on the lsi1030, so I know it works correctly up to
u320.
James
--- a/drivers/scsi/scsi_transport_spi.c
+++ b/drivers/scsi/scsi_transport_spi.c
<at> <at> -669,6 +669,7 <at> <at> spi_dv_retrain(struct scsi_request *sreq
{
struct spi_internal *i = to_spi_internal(sreq->sr_host->transportt);
struct scsi_device *sdev = sreq->sr_device;
+ struct scsi_target *starget = sdev->sdev_target;
int period = 0, prevperiod = 0;
enum spi_compare_returns retval;
<at> <at> -682,24 +683,40 <at> <at> spi_dv_retrain(struct scsi_request *sreq
break;
/* OK, retrain, fallback */
+ if (i->f->get_iu)
+ i->f->get_iu(starget);
+ if (i->f->get_qas)
+ i->f->get_qas(starget);
if (i->f->get_period)
(Continue reading)
RSS Feed