[Top] [All Lists]

Re: [patch 2/3] drivers/net/wireless/prism54/islpci_hotplug: Use the DMA

To: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxxxx>
Subject: Re: [patch 2/3] drivers/net/wireless/prism54/islpci_hotplug: Use the DMA_{64, 32}BIT_MASK constants
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Mon, 07 Mar 2005 12:24:24 -0500
Cc: domen@xxxxxxxxxxxx, prism54-private@xxxxxxxxxxx, netdev@xxxxxxxxxxx, tklauser@xxxxxxxxxxx
In-reply-to: <20050307171418.GT3936@xxxxxxxxxxxxxxxxxx>
References: <20050306222355.6686C1ED3D@xxxxxxxxxxxxxxxxxxx> <20050307171418.GT3936@xxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Luis R. Rodriguez wrote:
On Sun, Mar 06, 2005 at 11:23:55PM +0100, domen@xxxxxxxxxxxx wrote:

Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h
when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()

Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>

kj-domen/drivers/net/wireless/prism54/islpci_hotplug.c |    2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN 
       2005-03-05 16:12:02.000000000 +0100
+++ kj-domen/drivers/net/wireless/prism54/islpci_hotplug.c      2005-03-05 
16:12:02.000000000 +0100
@@ -125,7 +125,7 @@ prism54_probe(struct pci_dev *pdev, cons

        /* enable PCI DMA */
-       if (pci_set_dma_mask(pdev, 0xffffffff)) {
+       if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) {

Is this 2.4 backward compatible? If not we'll have to add to 2.4 compat
file on prism54.

Not compatible, but it is preferred to patch the file and add that definition to a compat header.

For pci_module_init(), it is preferred to keep pci_module_init() rather than adding compat gunk.


<Prev in Thread] Current Thread [Next in Thread>