]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] tmscsim: set max_sectors
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 5 Oct 2006 22:11:17 +0000 (00:11 +0200)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 25 Oct 2006 22:12:03 +0000 (15:12 -0700)
AM53C974A's Start Transfer Counter register has 24 bits, thus
maximum transfer length is 16MiB. But the maximum I can test
is 8MiB, so use that until somebody tests 16MiB.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/tmscsim.c

index d03aa6ce8fe8afef715018917d257daad01b31ab..fa5382e354be71edcd50437386d446979283283b 100644 (file)
@@ -2304,6 +2304,7 @@ static struct scsi_host_template driver_template = {
        .sg_tablesize           = SG_ALL,
        .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
+       .max_sectors            = 0x4000, /* 8MiB = 16 * 1024 * 512 */
 };
 
 /***********************************************************************