Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] tmscsim: set max_sectors

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>

authored by

Guennadi Liakhovetski and committed by
James Bottomley
75c28851 413f7327

+1
+1
drivers/scsi/tmscsim.c
··· 2304 2304 .sg_tablesize = SG_ALL, 2305 2305 .cmd_per_lun = 1, 2306 2306 .use_clustering = ENABLE_CLUSTERING, 2307 + .max_sectors = 0x4000, /* 8MiB = 16 * 1024 * 512 */ 2307 2308 }; 2308 2309 2309 2310 /***********************************************************************