DragonFly users List (threaded) for 2009-09
DragonFly BSD
DragonFly users List (threaded) for 2009-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Realtek NIC issue


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Thu, 10 Sep 2009 09:39:14 +0800

On Wed, Sep 9, 2009 at 1:23 AM, Saifi Khan <saifi.khan@datasynergy.org> wrote:
> Hi all:
>
> Installed DragonFlyBSD 2.3.2.750.g517f2e-DEVELOPMENT (Sep 2
> snapshot) on my Compaq 301TU laptop.
>
> The Realtek NIC card does not seem to be working,
> although the following lines are seen in dmesg output
>
> rl0: <Realtek 8139 10/100BaseTX> port 0x2000-0x20ff mem
> 0xd0100000-0xd01000ff irq 11 at device 8.0 at pci8
> rl0: unknown device ID: fff
> device_probe_and_attach: rl0 attach returned 6

Does the attached patch work for you?

Best Regards,
sephe

-- 
Live Free or Die
diff --git a/sys/dev/netif/rl/if_rl.c b/sys/dev/netif/rl/if_rl.c
index 638b123..4f79b5b 100644
--- a/sys/dev/netif/rl/if_rl.c
+++ b/sys/dev/netif/rl/if_rl.c
@@ -812,24 +812,10 @@ rl_attach(device_t dev)
 	 */
 	rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0);
 
-	if (rl_did == PCI_PRODUCT_REALTEK_RT8139 ||
-	    rl_did == PCI_PRODUCT_ACCTON_MPX5030 ||
-	    rl_did == PCI_PRODUCT_DELTA_8139 ||
-	    rl_did == PCI_PRODUCT_ADDTRON_8139 ||
-	    rl_did == PCI_PRODUCT_DLINK_DFE530TXPLUS ||
-	    rl_did == PCI_PRODUCT_REALTEK_RT8139B ||
-	    rl_did == PCI_PRODUCT_DLINK_DFE690TXD || 
-	    rl_did == PCI_PRODUCT_COREGA_CB_TXD ||
-	    rl_did == PCI_PRODUCT_COREGA_2CB_TXD ||
-	    rl_did == PCI_PRODUCT_PLANEX_FNW_3800_TX)
-		sc->rl_type = RL_8139;
-	else if (rl_did == PCI_PRODUCT_REALTEK_RT8129)
+	if (rl_did == PCI_PRODUCT_REALTEK_RT8129)
 		sc->rl_type = RL_8129;
-	else {
-		device_printf(dev, "unknown device ID: %x\n", rl_did);
-		error = ENXIO;
-		goto fail;
-	}
+	else
+		sc->rl_type = RL_8139;
 
 	error = rl_dma_alloc(sc);
 	if (error)


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]