drivers/scsi/sata_vsc: Use the DMA_{64,
Subsystems (3)
PATCH 19/19 drivers/scsi/sata_vsc: Use the DMA_{64,
Hello,
Description: Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/sata_vsc.c +2 -2
@@ -280,10 +280,10 @@ static int __devinit vsc_sata_init_one (/* * Use 32 bit DMA mask, because 64 bit address support is poor. */ - rc =pci_set_dma_mask (pdev,0xFFFFFFFFULL ); + rc =pci_set_dma_mask (pdev,DMA_32BIT_MASK );if (rc) goto err_out_regions; - rc =pci_set_consistent_dma_mask (pdev,0xFFFFFFFFULL ); + rc =pci_set_consistent_dma_mask (pdev,DMA_32BIT_MASK );if (rc) goto err_out_regions;
Jeff Garzik
AppliedApplied patch #4 and #19 to libata.
Please do not include "Hello," or "Description:" in your patch description, as I must hand-edit these out manually.
Jeff
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 19/19 drivers/scsi/sata_vsc: Use the
In reply to Tobias KlauserThe previous patch did not compile cleanly on all architectures so here's a fixed one.
Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()
This patch includes dma-mapping.h explicitly because it caused errors on some architectures otherwise.
See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/sata_vsc.c +3 -2
@@ -21,6 +21,7 @@#include <linux/blkdev.h> #include <linux/delay.h> #include <linux/interrupt.h> +#include <linux/dma-mapping.h> #include "scsi.h" #include <scsi/scsi_host.h> #include <linux/libata.h>
@@ -285,10 +286,10 @@ static int __devinit vsc_sata_init_one (/* * Use 32 bit DMA mask, because 64 bit address support is poor. */ - rc =pci_set_dma_mask (pdev,0xFFFFFFFFULL ); + rc =pci_set_dma_mask (pdev,DMA_32BIT_MASK );if (rc) goto err_out_regions; - rc =pci_set_consistent_dma_mask (pdev,0xFFFFFFFFULL ); + rc =pci_set_consistent_dma_mask (pdev,DMA_32BIT_MASK );if (rc) goto err_out_regions;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors