AMD PCscsi broken by 2.1.0

Philip Blundell (Philip.Blundell@pobox.com)
Wed, 25 Sep 1996 18:51:53 +0100 (BST)


Hi guys.

The AM53C974 SCSI driver broke with kernel 2.1.0. The following tiny
patch fixes that problem (but not the various other problems that this
version of the driver has).

phil

--
--- clean-linux/linux/drivers/scsi/AM53C974.c	Mon May 13 23:56:40 1996
+++ linux/drivers/scsi/AM53C974.c	Wed Sep 25 18:45:18 1996
@@ -2005,7 +2015,7 @@
 AM53C974_write_8(STCMREG, (unsigned char)((length & 0xff00) >> 8));
 AM53C974_write_8(STCHREG, (unsigned char)((length & 0xff0000) >> 16));
 AM53C974_write_32(DMASTC, length & 0xffffff);
-AM53C974_write_32(DMASPA, (unsigned long)data);
+AM53C974_write_32(DMASPA, virt_to_bus((unsigned long)data));
 AM53C974_write_8(CMDREG, CMDREG_IT | CMDREG_DMA);
 AM53C974_write_8(DMACMD, (dir << 7) | DMACMD_INTE_D | DMACMD_START);
 }