Skip to content

Commit

Permalink
[SCSI] tmscsim: set max_sectors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guennadi Liakhovetski authored and James Bottomley committed Oct 25, 2006
1 parent 413f732 commit 75c2885
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/tmscsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};

/***********************************************************************
Expand Down

0 comments on commit 75c2885

Please sign in to comment.