netdev
[Top] [All Lists]

Re: Dealing with buggy hardware (was: b44 and 4g4g)

To: Pekka Pietikainen <pp@xxxxxxxxxx>
Subject: Re: Dealing with buggy hardware (was: b44 and 4g4g)
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Sat, 5 Jun 2004 13:19:23 -0700
Cc: netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <20040605200643.GA2210@xxxxxxxxxx>
References: <20040531202104.GA8301@xxxxxxxxxx> <20040605200643.GA2210@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Sat, 5 Jun 2004 23:06:44 +0300
Pekka Pietikainen <pp@xxxxxxxxxx> wrote:

> +     if(virt_to_bus(skb->data) + skb->len > B44_PCI_DMA_MAX) {

You can't use this non-portable interface, you have to:

1) pci_map the data
2) test the dma_addr_t returned

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