diff --git a/target/linux/rdc/patches-2.6.32/009-rdc321x_select_embedded.patch b/target/linux/rdc/patches-2.6.32/009-rdc321x_select_embedded.patch index 625dc653146..5b3bc24e349 100644 --- a/target/linux/rdc/patches-2.6.32/009-rdc321x_select_embedded.patch +++ b/target/linux/rdc/patches-2.6.32/009-rdc321x_select_embedded.patch @@ -1,6 +1,6 @@ --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig -@@ -400,6 +400,8 @@ config X86_RDC321X +@@ -405,6 +405,8 @@ config X86_RDC321X depends on X86_EXTENDED_PLATFORM select M486 select X86_REBOOTFIXUPS diff --git a/target/linux/rdc/patches-2.6.32/010-rdc_cpu_ident.patch b/target/linux/rdc/patches-2.6.32/010-rdc_cpu_ident.patch index 664d807e039..65cfc1eebde 100644 --- a/target/linux/rdc/patches-2.6.32/010-rdc_cpu_ident.patch +++ b/target/linux/rdc/patches-2.6.32/010-rdc_cpu_ident.patch @@ -72,7 +72,7 @@ + --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig -@@ -398,6 +398,7 @@ config X86_RDC321X +@@ -403,6 +403,7 @@ config X86_RDC321X bool "RDC R-321x SoC" depends on X86_32 depends on X86_EXTENDED_PLATFORM diff --git a/target/linux/rdc/patches-2.6.32/011-tune_lzma_options.patch b/target/linux/rdc/patches-2.6.32/011-tune_lzma_options.patch index adf59a7bb89..c636f3a2367 100644 --- a/target/linux/rdc/patches-2.6.32/011-tune_lzma_options.patch +++ b/target/linux/rdc/patches-2.6.32/011-tune_lzma_options.patch @@ -1,6 +1,6 @@ --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib -@@ -228,7 +228,7 @@ cmd_bzip2 = (cat $(filter-out FORCE,$^) +@@ -228,7 +228,7 @@ cmd_bzip2 = (cat $(filter-out FORCE,$^) quiet_cmd_lzma = LZMA $@ cmd_lzma = (cat $(filter-out FORCE,$^) | \ diff --git a/target/linux/rdc/patches-2.6.32/014-r6040_phylib_support.patch b/target/linux/rdc/patches-2.6.32/014-r6040_phylib_support.patch index b3e8c94f0ad..bb25302d7e0 100644 --- a/target/linux/rdc/patches-2.6.32/014-r6040_phylib_support.patch +++ b/target/linux/rdc/patches-2.6.32/014-r6040_phylib_support.patch @@ -223,7 +223,7 @@ /* Read/set MAC address routines */ static void r6040_mac_address(struct net_device *dev) -@@ -874,10 +782,6 @@ static int r6040_open(struct net_device +@@ -874,10 +782,6 @@ static int r6040_open(struct net_device napi_enable(&lp->napi); netif_start_queue(dev); @@ -234,7 +234,7 @@ return 0; } -@@ -1020,40 +924,22 @@ static void netdev_get_drvinfo(struct ne +@@ -1018,40 +922,22 @@ static void netdev_get_drvinfo(struct ne static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) { struct r6040_private *rp = netdev_priv(dev); @@ -278,7 +278,7 @@ }; static const struct net_device_ops r6040_netdev_ops = { -@@ -1072,6 +958,86 @@ static const struct net_device_ops r6040 +@@ -1070,6 +956,86 @@ static const struct net_device_ops r6040 #endif }; @@ -365,7 +365,7 @@ static int __devinit r6040_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) { -@@ -1082,6 +1048,7 @@ static int __devinit r6040_init_one(stru +@@ -1080,6 +1046,7 @@ static int __devinit r6040_init_one(stru static int card_idx = -1; int bar = 0; u16 *adrp; @@ -373,7 +373,7 @@ printk("%s\n", version); -@@ -1169,7 +1136,6 @@ static int __devinit r6040_init_one(stru +@@ -1167,7 +1134,6 @@ static int __devinit r6040_init_one(stru /* Init RDC private data */ lp->mcr0 = 0x1002; lp->phy_addr = phy_table[card_idx]; @@ -381,7 +381,7 @@ /* The RDC-specific entries in the device structure. */ dev->netdev_ops = &r6040_netdev_ops; -@@ -1177,28 +1143,61 @@ static int __devinit r6040_init_one(stru +@@ -1175,28 +1141,61 @@ static int __devinit r6040_init_one(stru dev->watchdog_timeo = TX_TIMEOUT; netif_napi_add(dev, &lp->napi, r6040_poll, 64); @@ -451,7 +451,7 @@ err_out_unmap: pci_iounmap(pdev, ioaddr); err_out_free_res: -@@ -1212,8 +1211,12 @@ err_out: +@@ -1210,8 +1209,12 @@ err_out: static void __devexit r6040_remove_one(struct pci_dev *pdev) { struct net_device *dev = pci_get_drvdata(pdev); diff --git a/target/linux/rdc/patches-2.6.32/015-r6040_fix_multicast.patch b/target/linux/rdc/patches-2.6.32/015-r6040_fix_multicast.patch deleted file mode 100644 index f41b4b5423a..00000000000 --- a/target/linux/rdc/patches-2.6.32/015-r6040_fix_multicast.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- ---- a/drivers/net/r6040.c -+++ b/drivers/net/r6040.c -@@ -136,7 +136,7 @@ - #define RX_DESC_SIZE (RX_DCNT * sizeof(struct r6040_descriptor)) - #define TX_DESC_SIZE (TX_DCNT * sizeof(struct r6040_descriptor)) - #define MBCR_DEFAULT 0x012A /* MAC Bus Control Register */ --#define MCAST_MAX 4 /* Max number multicast addresses to filter */ -+#define MCAST_MAX 3 /* Max number multicast addresses to filter */ - - /* Descriptor status */ - #define DSC_OWNER_MAC 0x8000 /* MAC is the owner of this descriptor */ -@@ -887,9 +887,6 @@ static void r6040_multicast_list(struct - crc >>= 26; - hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); - } -- /* Write the index of the hash table */ -- for (i = 0; i < 4; i++) -- iowrite16(hash_table[i] << 14, ioaddr + MCR1); - /* Fill the MAC hash tables with their values */ - iowrite16(hash_table[0], ioaddr + MAR0); - iowrite16(hash_table[1], ioaddr + MAR1); -@@ -905,9 +902,9 @@ static void r6040_multicast_list(struct - dmi = dmi->next; - } - for (i = dev->mc_count; i < MCAST_MAX; i++) { -- iowrite16(0xffff, ioaddr + MID_0L + 8*i); -- iowrite16(0xffff, ioaddr + MID_0M + 8*i); -- iowrite16(0xffff, ioaddr + MID_0H + 8*i); -+ iowrite16(0xffff, ioaddr + MID_1L + 8 * i); -+ iowrite16(0xffff, ioaddr + MID_1M + 8 * i); -+ iowrite16(0xffff, ioaddr + MID_1H + 8 * i); - } - } - diff --git a/target/linux/rdc/patches-2.6.32/110-rdc321x_watchdog_fix.patch b/target/linux/rdc/patches-2.6.32/110-rdc321x_watchdog_fix.patch index 7d59ab312c4..fe7969eadc6 100644 --- a/target/linux/rdc/patches-2.6.32/110-rdc321x_watchdog_fix.patch +++ b/target/linux/rdc/patches-2.6.32/110-rdc321x_watchdog_fix.patch @@ -59,9 +59,9 @@ + .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE, + .identity = "RDC321x WDT", +}; -+ -static void rdc321x_wdt_trigger(unsigned long unused) ++ +/* generic helper functions */ +static void rdc321x_wdt_timer(unsigned long unused) {