Bug 7239 - r8169 driver - Corega support patch
Summary: r8169 driver - Corega support patch
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Network (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Francois Romieu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-30 17:59 UTC by Hidetoshi
Modified: 2006-10-21 14:30 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.17-9
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Hidetoshi 2006-09-30 17:59:22 UTC
Most recent kernel where this bug did not occur:
Distribution:
Hardware Environment:
Software Environment:
Problem Description:

Steps to reproduce:

Package: linux-2.6
Version: 2.6.17-9
Severity: important

Kernel can't found driver for Corega Gigabit Network card.
This card have RTL-8169 chip and r8169.ko make good.
Cause of this trouble is r8169.c have not PCI Vender ID.
Please include next PCI Vender ID to r8169.c .

--- linux-source-2.6.17/drivers/net/r8169.c.orig        2006-06-18
10:49:35.000000000 +0900
+++ linux-source-2.6.17/drivers/net/r8169.c     2006-09-23 08:52:16.000000000 +0900
@@ -187,6 +187,7 @@ static struct pci_device_id rtl8169_pci_
        { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), },
        { PCI_DEVICE(0x16ec,                    0x0116), },
        { PCI_VENDOR_ID_LINKSYS,                0x1032, PCI_ANY_ID,
0x0024, },
+       { PCI_DEVICE(0x1259,                    0xc107), },     /*
Corega LAPCIGT */
        {0,},
 };

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388870
Comment 1 Andrew Morton 2006-10-01 17:45:54 UTC
I added this to -mm, but had to change it quite a lot
due to recent changes in this driver.   Please test the change
which I made and let us know?
Comment 2 Francois Romieu 2006-10-01 23:38:31 UTC
I have not reviewed Andrew's change but I guess that it looks like the addition
of the line below to the PCI table of the r8169 driver:

{ PCI_DEVICE(0x1259, 0xc107), 0, 0, RTL_CFG_0 },
Comment 3 Andrew Morton 2006-10-01 23:51:28 UTC
Yup, this is the patch:

From: <hchacha@users.sourceforge.net>

Taken from http://bugzilla.kernel.org/show_bug.cgi?id=7239

Addresses http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388870

Kernel can't finf driver for Corega Gigabit Network card.  This card have
RTL-8169 chip and r8169.ko works correctly with this change.

Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/net/r8169.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/net/r8169.c~r8169-driver-corega-support-patch drivers/net/r8169.c
--- a/drivers/net/r8169.c~r8169-driver-corega-support-patch
+++ a/drivers/net/r8169.c
@@ -215,6 +215,7 @@ static struct pci_device_id rtl8169_pci_
 	{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK,	0x8169), 0, 0, RTL_CFG_0 },
 	{ PCI_DEVICE(PCI_VENDOR_ID_DLINK,	0x4300), 0, 0, RTL_CFG_0 },
 	{ PCI_DEVICE(0x16ec,			0x0116), 0, 0, RTL_CFG_0 },
+	{ PCI_DEVICE(0x1259,                    0xc107), 0, 0, RTL_CFG_0 },
 	{ PCI_VENDOR_ID_LINKSYS,		0x1032,
 		PCI_ANY_ID, 0x0024, 0, 0, RTL_CFG_0 },
 	{0,},
_

Comment 4 Francois Romieu 2006-10-21 14:29:39 UTC
Patch pulled in mainline as 73f5e28b336772c4b08ee82e5bf28ab872898ee1.

-- 
Ueimor

Note You need to log in before you can comment on or make changes to this bug.