tree 7e4cf471d0db37af60e13f9461ff5008caeeceec
parent 88ff29a4a5a8c4e0ecf375f783be071d1e7e264d
author Hannes Reinecke <[EMAIL PROTECTED]> Thu, 04 Aug 2005 09:16:59 +0200
committer James Bottomley <[EMAIL PROTECTED](none)> Fri, 05 Aug 2005 03:39:55 
-0500

[SCSI] aic79xx: fixup DT setting

this patch is just a cross-port of the 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 caught by ahd_find_syncrate()
anyway.

Signed-off-by: James Bottomley <[EMAIL PROTECTED]>

 drivers/scsi/aic7xxx/aic79xx_osm.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c 
b/drivers/scsi/aic7xxx/aic79xx_osm.c
--- a/drivers/scsi/aic7xxx/aic79xx_osm.c
+++ b/drivers/scsi/aic7xxx/aic79xx_osm.c
@@ -2440,6 +2440,7 @@ static void ahd_linux_set_dt(struct scsi
        unsigned 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 
*/
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to