Skip to contentSkip to conversation

Fix e100 for non coherent arches

PATCH New Matt Porter 1 participant 1 message May 18, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix e100 for non coherent arches

Corrects pci_map_single() direction arg.

-Matt

===== drivers/net/e100.c 1.11 vs edited =====

drivers/net/e100.c +1 -1
@@ -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.  */