[PATCH 2.6.9-rc1-mm1 1/1] r8169: DAC support fix

STALE8021d

2 messages, 2 authors, 2004-08-31 · open the first message on its own page

[PATCH 2.6.9-rc1-mm1 1/1] r8169: DAC support fix

From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2004-08-30 22:00:45

Wrong unit for sizeof().

diff -puN drivers/net/r8169.c~r8169-120 drivers/net/r8169.c
--- linux-2.6.9-rc1/drivers/net/r8169.c~r8169-120	2004-08-30 23:39:04.000000000 +0200
+++ linux-2.6.9-rc1-fr/drivers/net/r8169.c	2004-08-30 23:39:20.000000000 +0200
@@ -1152,7 +1152,7 @@ rtl8169_init_board(struct pci_dev *pdev,
 
 	dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
 
-	if ((sizeof(dma_addr_t) > 32) && !pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {
+	if ((sizeof(dma_addr_t) > 4) && !pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {
 		tp->cp_cmd |= PCIDAC;
 		dev->features |= NETIF_F_HIGHDMA;
 	} else {
_

Re: [PATCH 2.6.9-rc1-mm1 1/1] r8169: DAC support fix

From: Jeff Garzik <hidden>
Date: 2004-08-31 07:19:49

applied
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help