More realtek pci id patches.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 22 Oct 2009 17:44:58 +0000 (19:44 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 22 Oct 2009 17:44:58 +0000 (19:44 +0200)
lfs/r8101
src/patches/r8101_add_missing_pciids.patch [new file with mode: 0644]
src/patches/r8169_add_missing_pciids.patch

index 57509b6..6b58250 100644 (file)
--- a/lfs/r8101
+++ b/lfs/r8101
@@ -79,6 +79,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/r8101_add_missing_pciids.patch
        cd $(DIR_APP) && make -C /lib/modules/$(KVER)-$(VERSUFIX)/build/ SUBDIRS=$(DIR_APP)/src modules
        cd $(DIR_APP)/src && install -m 644 r8101.ko /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net 
        @rm -rf $(DIR_APP)
diff --git a/src/patches/r8101_add_missing_pciids.patch b/src/patches/r8101_add_missing_pciids.patch
new file mode 100644 (file)
index 0000000..a065493
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Naur r8101-1.013.00.org/src/r8101_n.c r8101-1.013.00/src/r8101_n.c
+--- r8101-1.013.00.org/src/r8101_n.c   2009-07-14 09:10:53.000000000 +0200
++++ r8101-1.013.00/src/r8101_n.c       2009-10-22 18:19:07.000000000 +0200
+@@ -103,6 +103,7 @@
+ static struct pci_device_id rtl8101_pci_tbl[] = {
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8136), },
++      { 0x0001, 0x8168, PCI_ANY_ID, 0x2410, },
+       {0,},
+ };
index 592ba9a..dab3af0 100644 (file)
@@ -1,15 +1,15 @@
 diff -Naur r8169-6.011.00.org/src/r8169_n.c r8169-6.011.00/src/r8169_n.c
 --- r8169-6.011.00.org/src/r8169_n.c   2009-07-14 08:39:25.000000000 +0200
-+++ r8169-6.011.00/src/r8169_n.c       2009-10-21 23:24:26.000000000 +0200
++++ r8169-6.011.00/src/r8169_n.c       2009-10-22 19:18:42.000000000 +0200
 @@ -114,6 +114,11 @@
  static struct pci_device_id rtl8169_pci_tbl[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8167), 0, 0, RTL_CFG_0 },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8169), 0, 0, RTL_CFG_0 },
 +      { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8129), 0, 0, RTL_CFG_0 },
-+      { 0x1186,0x4300, 0, 0, RTL_CFG_0 },
-+      { 0x1737,0x1032, 0, 0, RTL_CFG_0 },
-+      { 0x1259,0xC107, 0, 0, RTL_CFG_0 },
-+      { 0x16EC,0x8129, 0, 0, RTL_CFG_0 },
++      { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), 0, 0, RTL_CFG_0 },
++      { PCI_DEVICE(PCI_VENDOR_ID_AT,          0xC107), 0, 0, RTL_CFG_0 },
++      { PCI_DEVICE(0x16EC,                    0x0116), 0, 0, RTL_CFG_0 },
++      { PCI_VENDOR_ID_LINKSYS, 0x1032, PCI_ANY_ID, 0x0024, 0, 0, RTL_CFG_0 },
        {0,},
  };