aic79xx: fixup DT setting
Subsystems (2)
PATCH 1/1 aic79xx: fixup DT setting
Hi James,
this patch is just a cross-port of your fixup for aic7xxx DT settings. As the same restrictions apply for aic79xx also (DT requires wide transfers) the dt setting routine should be modified equivalently. And an invalid period setting will be catched by ahd_find_syncrate() anyway.
Cheers,
Hannes
Signature · 4 lines
Dr. Hannes Reinecke [email protected] SuSE Linux Products GmbH S390 & zSeries Maxfeldstraße 5 +49 911 74053 688 90409 Nürnberg http://www.suse.de
drivers/scsi/aic7xxx/aic79xx_osm.c +3 -2
@@ -2440,6 +2440,7 @@ static void ahd_linux_set_dt(struct scsiunsigned int ppr_options = tinfo->goal.ppr_options & ~MSG_EXT_PPR_DT_REQ ;unsigned int period = tinfo->goal.period; +unsigned int width = tinfo->goal.width;unsigned long flags;#ifdef AHD_DEBUG
@@ -2449,8 +2450,8 @@ static void ahd_linux_set_dt(struct scsi#endif if (dt) { ppr_options |=MSG_EXT_PPR_DT_REQ ; -if (period >9 ) - period =9 ;/* at least 12.5ns for DT */ +if (!width) +ahd_linux_set_width (starget,1 ); }else {if (period <=9 ) period =10 ;/* If resetting DT, period must be >= 25ns */