From: Eric Sesterhenn / snakebyte <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] use PCI_DMA_*BIT in ioc3-eth.c
Date: Thu, 05 Jan 2006 23:11:52 +0000 [thread overview]
Message-ID: <1136502712.9683.2.camel@alice> (raw)
[-- 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
next reply other threads:[~2006-01-05 23:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-05 23:11 Eric Sesterhenn / snakebyte [this message]
2006-01-05 23:24 ` [KJ] [PATCH] use PCI_DMA_*BIT in ioc3-eth.c Tobias Klauser
2006-01-05 23:34 ` Eric Sesterhenn / snakebyte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1136502712.9683.2.camel@alice \
--to=snakebyte@gmx.de \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.