[PATCH] Fix e100 for non coherent arches

From: Matt Porter
Date: Tue May 18 2004 - 17:37:54 EST


Corrects pci_map_single() direction arg.

-Matt

===== drivers/net/e100.c 1.11 vs edited =====
--- 1.11/drivers/net/e100.c Tue Apr 20 15:55:32 2004
+++ edited/drivers/net/e100.c Tue May 18 15:25:01 2004
@@ -1397,7 +1397,7 @@
skb_reserve(rx->skb, rx_offset);
memcpy(rx->skb->data, &nic->blank_rfd, sizeof(struct rfd));
rx->dma_addr = pci_map_single(nic->pdev, rx->skb->data,
- RFD_BUF_LEN, PCI_DMA_FROMDEVICE);
+ RFD_BUF_LEN, PCI_DMA_BIDIRECTIONAL);

/* Link the RFD to end of RFA by linking previous RFD to
* this one, and clearing EL bit of previous. */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/