All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] use PCI_DMA_*BIT in ioc3-eth.c
@ 2006-01-05 23:11 Eric Sesterhenn / snakebyte
  2006-01-05 23:24 ` Tobias Klauser
  2006-01-05 23:34 ` Eric Sesterhenn / snakebyte
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2006-01-05 23:11 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

hi,

this changes the 0xfff.. constants used for pci_set_dma* to
defines in the ioc3 driver.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>


--- linux-2.6.15-eric/drivers/net/ioc3-eth.c.orig	2006-01-06 00:02:54.000000000 +0100
+++ linux-2.6.15-eric/drivers/net/ioc3-eth.c	2006-01-06 00:07:14.000000000 +0100
@@ -1195,17 +1195,17 @@ static int ioc3_probe(struct pci_dev *pd
 	int err, pci_using_dac;
 
 	/* Configure DMA attributes. */
-	err = pci_set_dma_mask(pdev, 0xffffffffffffffffULL);
+	err = pci_set_dma_mask(pdev, PCI_DMA_64BIT);
 	if (!err) {
 		pci_using_dac = 1;
-		err = pci_set_consistent_dma_mask(pdev, 0xffffffffffffffffULL);
+		err = pci_set_consistent_dma_mask(pdev, PCI_DMA_64BIT);
 		if (err < 0) {
 			printk(KERN_ERR "%s: Unable to obtain 64 bit DMA "
 			       "for consistent allocations\n", pci_name(pdev));
 			goto out;
 		}
 	} else {
-		err = pci_set_dma_mask(pdev, 0xffffffffULL);
+		err = pci_set_dma_mask(pdev, PCI_DMA_32BIT);
 		if (err) {
 			printk(KERN_ERR "%s: No usable DMA configuration, "
 			       "aborting.\n", pci_name(pdev));



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-05 23:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05 23:11 [KJ] [PATCH] use PCI_DMA_*BIT in ioc3-eth.c Eric Sesterhenn / snakebyte
2006-01-05 23:24 ` Tobias Klauser
2006-01-05 23:34 ` Eric Sesterhenn / snakebyte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.