On Fri, 21 Apr 2006 23:42:43 +0200 (CEST) Guennadi Liakhovetski wrote: > On Wed, 19 Apr 2006, Randy.Dunlap wrote: > > > I have a patch that seems to work for the data-in phase of the > > aha152x (_cs) driver. However, the data-out phase is causing > > data corruption. (I'm only using it on a test target, so no big > > deal.) > > Could you provide some detail? Your current patch? Maybe try to debug the > data corruption if it is reproducible / predictable? I think I see the problem. If the data-out phase terminates early (due to some chip interrupt), the driver (datao_end) needs to set the sg, residual, etc., fields to cause another data-out phase at the correct buffer address, but my modifications don't quite maintain that buffer address, residual, etc., so that datao_end can back up to them. I hope to have a fix for that soon. My current (ugly, debug) patch is at http://www.xenotime.net/linux/patches/aha152x-sg-pio.patch --- ~Randy - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html