[parisc-linux-cvs] Re: DIFF 2.4.18-pa54 sym53c8xx_2 pci_set_dma_mask()

Grant Grundler grundler@dsl2.external.hp.com
Wed, 10 Jul 2002 00:41:23 -0600


Grant Grundler wrote:
> Log message:
> 2.4.18-pa54 fix sym53c8xx_2 DMA test
> enable usage of CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
> usage of pci_set_dma_mask() is wrong for the 32-bit case.


Index: drivers/scsi/sym53c8xx_2/sym_glue.c
===================================================================
RCS file: /var/cvs/linux/drivers/scsi/sym53c8xx_2/sym_glue.c,v
retrieving revision 1.3
diff -u -p -r1.3 sym_glue.c
--- drivers/scsi/sym53c8xx_2/sym_glue.c	2002/01/03 22:37:19	1.3
+++ drivers/scsi/sym53c8xx_2/sym_glue.c	2002/07/09 20:27:07
@@ -1890,7 +1890,7 @@ static int sym_setup_bus_dma_mask(hcb_p 
 					sym_name(np));
 		}
 		else {
-			if (!pci_set_dma_mask(np->s.device, 0xffffffffUL))
+			if (pci_set_dma_mask(np->s.device, 0xffffffffUL))
 				goto out_err32;
 		}
 	}