summaryrefslogtreecommitdiffstats
path: root/target/linux/cavium-octeon/patches
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-18 13:08:46 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-18 13:08:46 +0000
commitc15d708c4975c445a7714b0cf48afd77b2f70df2 (patch)
treee83fee55c57e9dceb98b8a9b1d390d70852be874 /target/linux/cavium-octeon/patches
parenta548c1e7a3388c0ea529f2ac7c2ac39d6f715b0e (diff)
upgrade to 2.6.30-rc6, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15912 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cavium-octeon/patches')
-rw-r--r--target/linux/cavium-octeon/patches/001-handle_removal_h_constraint.patch11
-rw-r--r--target/linux/cavium-octeon/patches/002-register_defs_pci.patch24
-rw-r--r--target/linux/cavium-octeon/patches/003_pci_pcie_support.patch71
-rw-r--r--target/linux/cavium-octeon/patches/004-named_alloc_function.patch19
-rw-r--r--target/linux/cavium-octeon/patches/005-register_defs_octeon_mgmt.patch16
-rw-r--r--target/linux/cavium-octeon/patches/006-octeon_mgmt_driver.patch34
-rw-r--r--target/linux/cavium-octeon/patches/007-export_cvmx_sysinfo.patch7
-rw-r--r--target/linux/cavium-octeon/patches/008-more_board_types_constraints.patch7
-rw-r--r--target/linux/cavium-octeon/patches/009-more_chip_specific_feature_tests.patch7
-rw-r--r--target/linux/cavium-octeon/patches/010-export_erratum_function.patch9
-rw-r--r--target/linux/cavium-octeon/patches/011-octeon_ethernet_driver.patch225
-rw-r--r--target/linux/cavium-octeon/patches/012-hook_up_eth_driver.patch9
-rw-r--r--target/linux/cavium-octeon/patches/013-compile_fixes.patch34
-rw-r--r--target/linux/cavium-octeon/patches/014-clocksource_fixes.patch31
-rw-r--r--target/linux/cavium-octeon/patches/015-no_werror.patch6
15 files changed, 44 insertions, 466 deletions
diff --git a/target/linux/cavium-octeon/patches/001-handle_removal_h_constraint.patch b/target/linux/cavium-octeon/patches/001-handle_removal_h_constraint.patch
index 53ebffc8b..b37b4a757 100644
--- a/target/linux/cavium-octeon/patches/001-handle_removal_h_constraint.patch
+++ b/target/linux/cavium-octeon/patches/001-handle_removal_h_constraint.patch
@@ -10,8 +10,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/include/asm/delay.h | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/include/asm/compiler.h b/arch/mips/include/asm/compiler.h
-index 71f5c5c..1f0954d 100644
--- a/arch/mips/include/asm/compiler.h
+++ b/arch/mips/include/asm/compiler.h
@@ -16,4 +16,11 @@
@@ -26,11 +24,9 @@ index 71f5c5c..1f0954d 100644
+#endif
+
#endif /* _ASM_COMPILER_H */
-diff --git a/arch/mips/include/asm/delay.h b/arch/mips/include/asm/delay.h
-index b0bccd2..3e467e8 100644
--- a/arch/mips/include/asm/delay.h
+++ b/arch/mips/include/asm/delay.h
-@@ -83,10 +83,14 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj)
+@@ -83,10 +83,14 @@ static inline void __udelay(unsigned lon
: "r" (usecs), "r" (lpj)
: GCC_REG_ACCUM);
else if (sizeof(long) == 8 && !R4000_WAR)
@@ -45,8 +41,3 @@ index b0bccd2..3e467e8 100644
else if (sizeof(long) == 8 && R4000_WAR)
__asm__("dmultu\t%3, %4\n\tmfhi\t%0"
: "=r" (usecs), "=h" (hi), "=l" (lo)
---
-1.5.6.5
-
-
-
diff --git a/target/linux/cavium-octeon/patches/002-register_defs_pci.patch b/target/linux/cavium-octeon/patches/002-register_defs_pci.patch
index 2252cbf43..85a910dd9 100644
--- a/target/linux/cavium-octeon/patches/002-register_defs_pci.patch
+++ b/target/linux/cavium-octeon/patches/002-register_defs_pci.patch
@@ -19,9 +19,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
create mode 100644 arch/mips/include/asm/octeon/cvmx-pescx-defs.h
create mode 100644 arch/mips/include/asm/octeon/cvmx-pexp-defs.h
-diff --git a/arch/mips/include/asm/octeon/cvmx-npei-defs.h b/arch/mips/include/asm/octeon/cvmx-npei-defs.h
-new file mode 100644
-index 0000000..4b347bb
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-npei-defs.h
@@ -0,0 +1,2560 @@
@@ -2585,9 +2582,6 @@ index 0000000..4b347bb
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-npi-defs.h b/arch/mips/include/asm/octeon/cvmx-npi-defs.h
-new file mode 100644
-index 0000000..4e03cd8
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-npi-defs.h
@@ -0,0 +1,1735 @@
@@ -4326,9 +4320,6 @@ index 0000000..4e03cd8
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-pci-defs.h b/arch/mips/include/asm/octeon/cvmx-pci-defs.h
-new file mode 100644
-index 0000000..90f8d65
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pci-defs.h
@@ -0,0 +1,1645 @@
@@ -5977,9 +5968,6 @@ index 0000000..90f8d65
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-pcieep-defs.h b/arch/mips/include/asm/octeon/cvmx-pcieep-defs.h
-new file mode 100644
-index 0000000..d553f8e
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pcieep-defs.h
@@ -0,0 +1,1365 @@
@@ -7348,9 +7336,6 @@ index 0000000..d553f8e
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-pciercx-defs.h b/arch/mips/include/asm/octeon/cvmx-pciercx-defs.h
-new file mode 100644
-index 0000000..75574c9
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pciercx-defs.h
@@ -0,0 +1,1397 @@
@@ -8751,9 +8736,6 @@ index 0000000..75574c9
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-pescx-defs.h b/arch/mips/include/asm/octeon/cvmx-pescx-defs.h
-new file mode 100644
-index 0000000..d71bd9c
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pescx-defs.h
@@ -0,0 +1,410 @@
@@ -9167,9 +9149,6 @@ index 0000000..d71bd9c
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-pexp-defs.h b/arch/mips/include/asm/octeon/cvmx-pexp-defs.h
-new file mode 100644
-index 0000000..5ea5dc5
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pexp-defs.h
@@ -0,0 +1,229 @@
@@ -9402,6 +9381,3 @@ index 0000000..5ea5dc5
+ CVMX_ADD_IO_SEG(0x00011F0000008380ull)
+
+#endif
---
-1.5.6.5
-
diff --git a/target/linux/cavium-octeon/patches/003_pci_pcie_support.patch b/target/linux/cavium-octeon/patches/003_pci_pcie_support.patch
index 96ff2c2bf..79009a6c9 100644
--- a/target/linux/cavium-octeon/patches/003_pci_pcie_support.patch
+++ b/target/linux/cavium-octeon/patches/003_pci_pcie_support.patch
@@ -38,35 +38,29 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
create mode 100644 arch/mips/include/asm/octeon/cvmx-pcie.h
create mode 100644 arch/mips/include/asm/octeon/cvmx-wqe.h
-diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
-index ea2b262..f009496 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
-@@ -620,6 +620,8 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
+@@ -617,6 +617,8 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
select SYS_HAS_EARLY_PRINTK
- select CPU_CAVIUM_OCTEON
+ select SYS_HAS_CPU_CAVIUM_OCTEON
select SWAP_IO_SPACE
+ select HW_HAS_PCI
+ select ARCH_SUPPORTS_MSI
help
This option supports all of the Octeon reference boards from Cavium
Networks. It builds a kernel that dynamically determines the Octeon
-diff --git a/arch/mips/cavium-octeon/Makefile b/arch/mips/cavium-octeon/Makefile
-index 1c2a7fa..2b5f08f 100644
--- a/arch/mips/cavium-octeon/Makefile
+++ b/arch/mips/cavium-octeon/Makefile
-@@ -14,5 +14,9 @@
+@@ -14,5 +14,9 @@ obj-y += dma-octeon.o flash_setup.o
obj-y += octeon-memcpy.o
-
+
obj-$(CONFIG_SMP) += smp.o
+obj-$(CONFIG_PCI) += pci-common.o
+obj-$(CONFIG_PCI) += pci.o
+obj-$(CONFIG_PCI) += pcie.o
+obj-$(CONFIG_PCI_MSI) += msi.o
-
+
EXTRA_CFLAGS += -Werror
-diff --git a/arch/mips/cavium-octeon/dma-octeon.c b/arch/mips/cavium-octeon/dma-octeon.c
-index 01b1ef9..af3c26f 100644
--- a/arch/mips/cavium-octeon/dma-octeon.c
+++ b/arch/mips/cavium-octeon/dma-octeon.c
@@ -13,20 +13,326 @@
@@ -398,8 +392,6 @@ index 01b1ef9..af3c26f 100644
return;
+#endif
}
-diff --git a/arch/mips/cavium-octeon/executive/Makefile b/arch/mips/cavium-octeon/executive/Makefile
-index 80d6cb2..9b470dd 100644
--- a/arch/mips/cavium-octeon/executive/Makefile
+++ b/arch/mips/cavium-octeon/executive/Makefile
@@ -11,3 +11,5 @@
@@ -408,9 +400,6 @@ index 80d6cb2..9b470dd 100644
+obj-$(CONFIG_PCI) += cvmx-pcie.o
+obj-$(CONFIG_PCI) += cvmx-helper-errata.o cvmx-helper-util.o
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
-new file mode 100644
-index 0000000..98822c1
--- /dev/null
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
@@ -0,0 +1,379 @@
@@ -793,9 +782,6 @@ index 0000000..98822c1
+ }
+ cvmx_helper_qlm_jtag_update(qlm);
+}
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-util.c b/arch/mips/cavium-octeon/executive/cvmx-helper-util.c
-new file mode 100644
-index 0000000..dc0087c
--- /dev/null
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-util.c
@@ -0,0 +1,502 @@
@@ -1301,9 +1287,6 @@ index 0000000..dc0087c
+ jtgd.u64 = cvmx_read_csr(CVMX_CIU_QLM_JTGD);
+ } while (jtgd.s.update);
+}
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-pcie.c b/arch/mips/cavium-octeon/executive/cvmx-pcie.c
-new file mode 100644
-index 0000000..710f21f
--- /dev/null
+++ b/arch/mips/cavium-octeon/executive/cvmx-pcie.c
@@ -0,0 +1,1053 @@
@@ -2360,9 +2343,6 @@ index 0000000..710f21f
+ mem_access_subid.u64);
+ return 0;
+}
-diff --git a/arch/mips/cavium-octeon/msi.c b/arch/mips/cavium-octeon/msi.c
-new file mode 100644
-index 0000000..964b03b
--- /dev/null
+++ b/arch/mips/cavium-octeon/msi.c
@@ -0,0 +1,288 @@
@@ -2654,8 +2634,6 @@ index 0000000..964b03b
+}
+
+subsys_initcall(octeon_msi_initialize);
-diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c
-index 788d588..3d7be84 100644
--- a/arch/mips/cavium-octeon/octeon-irq.c
+++ b/arch/mips/cavium-octeon/octeon-irq.c
@@ -10,6 +10,8 @@
@@ -2667,9 +2645,6 @@ index 788d588..3d7be84 100644
DEFINE_RWLOCK(octeon_irq_ciu0_rwlock);
DEFINE_RWLOCK(octeon_irq_ciu1_rwlock);
-diff --git a/arch/mips/cavium-octeon/pci-common.c b/arch/mips/cavium-octeon/pci-common.c
-new file mode 100644
-index 0000000..cd029f8
--- /dev/null
+++ b/arch/mips/cavium-octeon/pci-common.c
@@ -0,0 +1,137 @@
@@ -2810,9 +2785,6 @@ index 0000000..cd029f8
+
+ return 0;
+}
-diff --git a/arch/mips/cavium-octeon/pci-common.h b/arch/mips/cavium-octeon/pci-common.h
-new file mode 100644
-index 0000000..74ae799
--- /dev/null
+++ b/arch/mips/cavium-octeon/pci-common.h
@@ -0,0 +1,39 @@
@@ -2855,9 +2827,6 @@ index 0000000..74ae799
+extern enum octeon_dma_bar_type octeon_dma_bar_type;
+
+#endif
-diff --git a/arch/mips/cavium-octeon/pci.c b/arch/mips/cavium-octeon/pci.c
-new file mode 100644
-index 0000000..67c0ff5
--- /dev/null
+++ b/arch/mips/cavium-octeon/pci.c
@@ -0,0 +1,568 @@
@@ -3429,9 +3398,6 @@ index 0000000..67c0ff5
+}
+
+arch_initcall(octeon_pci_setup);
-diff --git a/arch/mips/cavium-octeon/pcie.c b/arch/mips/cavium-octeon/pcie.c
-new file mode 100644
-index 0000000..cb6662c
--- /dev/null
+++ b/arch/mips/cavium-octeon/pcie.c
@@ -0,0 +1,441 @@
@@ -3876,8 +3842,6 @@ index 0000000..cb6662c
+}
+
+arch_initcall(octeon_pcie_setup);
-diff --git a/arch/mips/include/asm/octeon/cvmx-asm.h b/arch/mips/include/asm/octeon/cvmx-asm.h
-index b21d3fc..093bcaf 100644
--- a/arch/mips/include/asm/octeon/cvmx-asm.h
+++ b/arch/mips/include/asm/octeon/cvmx-asm.h
@@ -119,7 +119,8 @@
@@ -3890,9 +3854,6 @@ index b21d3fc..093bcaf 100644
/* some new cop0-like stuff */
#define CVMX_RDHWR(result, regstr) \
asm volatile ("rdhwr %[rt],$" CVMX_TMP_STR(regstr) : [rt] "=d" (result))
-diff --git a/arch/mips/include/asm/octeon/cvmx-helper-errata.h b/arch/mips/include/asm/octeon/cvmx-helper-errata.h
-new file mode 100644
-index 0000000..ce5deea
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-helper-errata.h
@@ -0,0 +1,92 @@
@@ -3988,9 +3949,6 @@ index 0000000..ce5deea
+extern void __cvmx_helper_errata_qlm_disable_2nd_order_cdr(int qlm);
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-helper-util.h b/arch/mips/include/asm/octeon/cvmx-helper-util.h
-new file mode 100644
-index 0000000..d720217
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-helper-util.h
@@ -0,0 +1,266 @@
@@ -4260,8 +4218,6 @@ index 0000000..d720217
+extern void cvmx_helper_qlm_jtag_update(int qlm);
+
+#endif /* __CVMX_HELPER_H__ */
-diff --git a/arch/mips/include/asm/octeon/cvmx-packet.h b/arch/mips/include/asm/octeon/cvmx-packet.h
-index 38aefa1..1cb3419 100644
--- a/arch/mips/include/asm/octeon/cvmx-packet.h
+++ b/arch/mips/include/asm/octeon/cvmx-packet.h
@@ -25,7 +25,8 @@
@@ -4302,9 +4258,6 @@ index 38aefa1..1cb3419 100644
/* The size of the segment pointed to by addr (in bytes) */
uint64_t size:16;
/* Pointer to the first byte of the data, NOT buffer */
-diff --git a/arch/mips/include/asm/octeon/cvmx-pcie.h b/arch/mips/include/asm/octeon/cvmx-pcie.h
-new file mode 100644
-index 0000000..55a5ac1
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-pcie.h
@@ -0,0 +1,284 @@
@@ -4592,9 +4545,6 @@ index 0000000..55a5ac1
+int cvmx_pcie_ep_initialize(void);
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-wqe.h b/arch/mips/include/asm/octeon/cvmx-wqe.h
-new file mode 100644
-index 0000000..fadc700
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-wqe.h
@@ -0,0 +1,422 @@
@@ -5020,11 +4970,9 @@ index 0000000..fadc700
+} CVMX_CACHE_LINE_ALIGNED;
+
+#endif /* __CVMX_WQE_H__ */
-diff --git a/arch/mips/include/asm/octeon/cvmx.h b/arch/mips/include/asm/octeon/cvmx.h
-index 03fddfa..e31e3fe 100644
--- a/arch/mips/include/asm/octeon/cvmx.h
+++ b/arch/mips/include/asm/octeon/cvmx.h
-@@ -376,6 +376,18 @@ static inline uint64_t cvmx_get_cycle(void)
+@@ -376,6 +376,18 @@ static inline uint64_t cvmx_get_cycle(vo
}
/**
@@ -5043,17 +4991,12 @@ index 03fddfa..e31e3fe 100644
* Reads a chip global cycle counter. This counts CPU cycles since
* chip reset. The counter is 64 bit.
* This register does not exist on CN38XX pass 1 silicion
-diff --git a/arch/mips/include/asm/octeon/octeon.h b/arch/mips/include/asm/octeon/octeon.h
-index edc6760..cac9b1a 100644
--- a/arch/mips/include/asm/octeon/octeon.h
+++ b/arch/mips/include/asm/octeon/octeon.h
-@@ -245,4 +245,6 @@ static inline uint32_t octeon_npi_read32(uint64_t address)
+@@ -245,4 +245,6 @@ static inline uint32_t octeon_npi_read32
return cvmx_read64_uint32(address ^ 4);
}
+extern struct cvmx_bootinfo *octeon_bootinfo;
+
#endif /* __ASM_OCTEON_OCTEON_H */
---
-1.5.6.5
-
diff --git a/target/linux/cavium-octeon/patches/004-named_alloc_function.patch b/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
index cb0b9100c..a3135f0a8 100644
--- a/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
+++ b/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
@@ -6,11 +6,9 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/include/asm/octeon/cvmx-bootmem.h | 85 ++++++++++++++++++
2 files changed, 186 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-bootmem.c b/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
-index 4f5a08b..8972448 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
-@@ -97,6 +97,32 @@ void *cvmx_bootmem_alloc(uint64_t size, uint64_t alignment)
+@@ -97,6 +97,32 @@ void *cvmx_bootmem_alloc(uint64_t size,
return cvmx_bootmem_alloc_range(size, alignment, 0, 0);
}
@@ -43,7 +41,7 @@ index 4f5a08b..8972448 100644
int cvmx_bootmem_free_named(char *name)
{
return cvmx_bootmem_phy_named_block_free(name, 0);
-@@ -584,3 +610,78 @@ int cvmx_bootmem_phy_named_block_free(char *name, uint32_t flags)
+@@ -584,3 +610,78 @@ int cvmx_bootmem_phy_named_block_free(ch
cvmx_bootmem_unlock();
return named_block_ptr != NULL; /* 0 on failure, 1 on success */
}
@@ -122,11 +120,9 @@ index 4f5a08b..8972448 100644
+ cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock));
+ return addr_allocated;
+}
-diff --git a/arch/mips/include/asm/octeon/cvmx-bootmem.h b/arch/mips/include/asm/octeon/cvmx-bootmem.h
-index 1cbe4b5..8e708bd 100644
--- a/arch/mips/include/asm/octeon/cvmx-bootmem.h
+++ b/arch/mips/include/asm/octeon/cvmx-bootmem.h
-@@ -183,6 +183,64 @@ extern void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment,
+@@ -183,6 +183,64 @@ extern void *cvmx_bootmem_alloc_range(ui
* Returns 0 on failure,
* !0 on success
*/
@@ -191,7 +187,7 @@ index 1cbe4b5..8e708bd 100644
extern int cvmx_bootmem_free_named(char *name);
/**
-@@ -224,6 +282,33 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min,
+@@ -224,6 +282,33 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t
uint32_t flags);
/**
@@ -225,10 +221,3 @@ index 1cbe4b5..8e708bd 100644
* Finds a named memory block by name.
* Also used for finding an unused entry in the named block table.
*
---
-1.5.6.5
-
---
-To unsubscribe from this list: send the line "unsubscribe netdev" in
-the body of a message to majordomo@vger.kernel.org
-More majordomo info at http://vger.kernel.org/majordomo-info.html \ No newline at end of file
diff --git a/target/linux/cavium-octeon/patches/005-register_defs_octeon_mgmt.patch b/target/linux/cavium-octeon/patches/005-register_defs_octeon_mgmt.patch
index 5aa4e65d4..5169f6cf6 100644
--- a/target/linux/cavium-octeon/patches/005-register_defs_octeon_mgmt.patch
+++ b/target/linux/cavium-octeon/patches/005-register_defs_octeon_mgmt.patch
@@ -11,9 +11,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
create mode 100644 arch/mips/include/asm/octeon/cvmx-mixx-defs.h
create mode 100644 arch/mips/include/asm/octeon/cvmx-smix-defs.h
-diff --git a/arch/mips/include/asm/octeon/cvmx-agl-defs.h b/arch/mips/include/asm/octeon/cvmx-agl-defs.h
-new file mode 100644
-index 0000000..ec94b9a
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-agl-defs.h
@@ -0,0 +1,1194 @@
@@ -1211,9 +1208,6 @@ index 0000000..ec94b9a
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-mixx-defs.h b/arch/mips/include/asm/octeon/cvmx-mixx-defs.h
-new file mode 100644
-index 0000000..dab6dca
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-mixx-defs.h
@@ -0,0 +1,248 @@
@@ -1465,9 +1459,6 @@ index 0000000..dab6dca
+};
+
+#endif
-diff --git a/arch/mips/include/asm/octeon/cvmx-smix-defs.h b/arch/mips/include/asm/octeon/cvmx-smix-defs.h
-new file mode 100644
-index 0000000..9ae45fc
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-smix-defs.h
@@ -0,0 +1,178 @@
@@ -1649,10 +1640,3 @@ index 0000000..9ae45fc
+};
+
+#endif
---
-1.5.6.5
-
---
-To unsubscribe from this list: send the line "unsubscribe netdev" in
-the body of a message to majordomo@vger.kernel.org
-More majordomo info at http://vger.kernel.org/majordomo-info.html \ No newline at end of file
diff --git a/target/linux/cavium-octeon/patches/006-octeon_mgmt_driver.patch b/target/linux/cavium-octeon/patches/006-octeon_mgmt_driver.patch
index 98053105b..7ea094519 100644
--- a/target/linux/cavium-octeon/patches/006-octeon_mgmt_driver.patch
+++ b/target/linux/cavium-octeon/patches/006-octeon_mgmt_driver.patch
@@ -14,9 +14,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
create mode 100644 drivers/net/octeon/cvmx-mgmt-port.h
create mode 100644 drivers/net/octeon/octeon-mgmt-port.c
-diff --git a/arch/mips/include/asm/octeon/cvmx-mdio.h b/arch/mips/include/asm/octeon/cvmx-mdio.h
-new file mode 100644
-index 0000000..89b0cc8
--- /dev/null
+++ b/arch/mips/include/asm/octeon/cvmx-mdio.h
@@ -0,0 +1,577 @@
@@ -597,11 +594,9 @@ index 0000000..89b0cc8
+}
+
+#endif
-diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
-index e9625a5..8c9d29e 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
-@@ -1864,6 +1864,14 @@ config ATL2
+@@ -2035,6 +2035,14 @@ config ATL2
To compile this driver as a module, choose M here. The module
will be called atl2.
@@ -616,21 +611,16 @@ index e9625a5..8c9d29e 100644
source "drivers/net/fs_enet/Kconfig"
endif # NET_ETHERNET
-diff --git a/drivers/net/Makefile b/drivers/net/Makefile
-index 4a92305..4cbc22e 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
-@@ -234,6 +234,7 @@
+@@ -234,6 +234,7 @@ pasemi_mac_driver-objs := pasemi_mac.o p
obj-$(CONFIG_MLX4_CORE) += mlx4/
obj-$(CONFIG_ENC28J60) += enc28j60.o
obj-$(CONFIG_ETHOC) += ethoc.o
+obj-$(CONFIG_OCTEON_MGMT) += octeon/
-
+
obj-$(CONFIG_XTENSA_XT2000_SONIC) += xtsonic.o
-
-diff --git a/drivers/net/octeon/Makefile b/drivers/net/octeon/Makefile
-new file mode 100644
-index 0000000..f32f394
+
--- /dev/null
+++ b/drivers/net/octeon/Makefile
@@ -0,0 +1,11 @@
@@ -646,9 +636,6 @@ index 0000000..f32f394
+
+octeon_mgmt-objs := octeon-mgmt-port.o cvmx-mgmt-port.o
\ No newline at end of file
-diff --git a/drivers/net/octeon/cvmx-mgmt-port.c b/drivers/net/octeon/cvmx-mgmt-port.c
-new file mode 100644
-index 0000000..f60255a
--- /dev/null
+++ b/drivers/net/octeon/cvmx-mgmt-port.c
@@ -0,0 +1,818 @@
@@ -1470,9 +1457,6 @@ index 0000000..f60255a
+ (size_without_fcs + 7) & 0xfff8);
+ cvmx_spinlock_unlock(&state->lock);
+}
-diff --git a/drivers/net/octeon/cvmx-mgmt-port.h b/drivers/net/octeon/cvmx-mgmt-port.h
-new file mode 100644
-index 0000000..622168c
--- /dev/null
+++ b/drivers/net/octeon/cvmx-mgmt-port.h
@@ -0,0 +1,168 @@
@@ -1644,9 +1628,6 @@ index 0000000..622168c
+extern void cvmx_mgmt_port_set_max_packet_size(int port, int size_without_fcs);
+
+#endif /* __CVMX_MGMT_PORT_H__ */
-diff --git a/drivers/net/octeon/octeon-mgmt-port.c b/drivers/net/octeon/octeon-mgmt-port.c
-new file mode 100644
-index 0000000..9cffbb5
--- /dev/null
+++ b/drivers/net/octeon/octeon-mgmt-port.c
@@ -0,0 +1,389 @@
@@ -2039,10 +2020,3 @@ index 0000000..9cffbb5
+MODULE_DESCRIPTION("Cavium Networks Octeon management port ethernet driver.");
+module_init(ethernet_mgmt_port_init);
+module_exit(ethernet_mgmt_port_cleanup);
---
-1.5.6.5
-
---
-To unsubscribe from this list: send the line "unsubscribe netdev" in
-the body of a message to majordomo@vger.kernel.org
-More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/target/linux/cavium-octeon/patches/007-export_cvmx_sysinfo.patch b/target/linux/cavium-octeon/patches/007-export_cvmx_sysinfo.patch
index 7397def95..318916d15 100644
--- a/target/linux/cavium-octeon/patches/007-export_cvmx_sysinfo.patch
+++ b/target/linux/cavium-octeon/patches/007-export_cvmx_sysinfo.patch
@@ -3,8 +3,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/cavium-octeon/executive/cvmx-sysinfo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-sysinfo.c b/arch/mips/cavium-octeon/executive/cvmx-sysinfo.c
-index 4812370..e583889 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-sysinfo.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-sysinfo.c
@@ -29,6 +29,7 @@
@@ -15,7 +13,7 @@ index 4812370..e583889 100644
#include <asm/octeon/cvmx.h>
#include <asm/octeon/cvmx-spinlock.h>
-@@ -69,6 +70,7 @@ struct cvmx_sysinfo *cvmx_sysinfo_get(void)
+@@ -69,6 +70,7 @@ struct cvmx_sysinfo *cvmx_sysinfo_get(vo
{
return &(state.sysinfo);
}
@@ -23,6 +21,3 @@ index 4812370..e583889 100644
/**
* This function is used in non-simple executive environments (such as
---
-1.6.0.6
-
diff --git a/target/linux/cavium-octeon/patches/008-more_board_types_constraints.patch b/target/linux/cavium-octeon/patches/008-more_board_types_constraints.patch
index dd40d79ac..bb375852f 100644
--- a/target/linux/cavium-octeon/patches/008-more_board_types_constraints.patch
+++ b/target/linux/cavium-octeon/patches/008-more_board_types_constraints.patch
@@ -6,8 +6,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/include/asm/octeon/cvmx-bootinfo.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/include/asm/octeon/cvmx-bootinfo.h b/arch/mips/include/asm/octeon/cvmx-bootinfo.h
-index 692989a..f3c23a4 100644
--- a/arch/mips/include/asm/octeon/cvmx-bootinfo.h
+++ b/arch/mips/include/asm/octeon/cvmx-bootinfo.h
@@ -157,6 +157,13 @@ enum cvmx_board_types_enum {
@@ -24,7 +22,7 @@ index 692989a..f3c23a4 100644
CVMX_BOARD_TYPE_MAX,
/*
-@@ -228,6 +235,12 @@ static inline const char *cvmx_board_type_to_string(enum
+@@ -228,6 +235,12 @@ static inline const char *cvmx_board_typ
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_NIC_XLE_4G)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBT5600)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBH5201)
@@ -37,6 +35,3 @@ index 692989a..f3c23a4 100644
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_MAX)
/* Customer boards listed here */
---
-1.6.0.6
-
diff --git a/target/linux/cavium-octeon/patches/009-more_chip_specific_feature_tests.patch b/target/linux/cavium-octeon/patches/009-more_chip_specific_feature_tests.patch
index f4a06f202..63dc4f13d 100644
--- a/target/linux/cavium-octeon/patches/009-more_chip_specific_feature_tests.patch
+++ b/target/linux/cavium-octeon/patches/009-more_chip_specific_feature_tests.patch
@@ -6,8 +6,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/include/asm/octeon/octeon-feature.h | 27 +++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/include/asm/octeon/octeon-feature.h b/arch/mips/include/asm/octeon/octeon-feature.h
-index 04fac68..ef24a7b 100644
--- a/arch/mips/include/asm/octeon/octeon-feature.h
+++ b/arch/mips/include/asm/octeon/octeon-feature.h
@@ -57,6 +57,13 @@ enum octeon_feature {
@@ -24,7 +22,7 @@ index 04fac68..ef24a7b 100644
};
static inline int cvmx_fuse_read(int fuse);
-@@ -112,6 +119,26 @@ static inline int octeon_has_feature(enum octeon_feature feature)
+@@ -112,6 +119,26 @@ static inline int octeon_has_feature(enu
case OCTEON_FEATURE_USB:
return !(OCTEON_IS_MODEL(OCTEON_CN38XX)
|| OCTEON_IS_MODEL(OCTEON_CN58XX));
@@ -51,6 +49,3 @@ index 04fac68..ef24a7b 100644
}
return 0;
}
---
-1.6.0.6
-
diff --git a/target/linux/cavium-octeon/patches/010-export_erratum_function.patch b/target/linux/cavium-octeon/patches/010-export_erratum_function.patch
index 27c9e794b..83b09fbed 100644
--- a/target/linux/cavium-octeon/patches/010-export_erratum_function.patch
+++ b/target/linux/cavium-octeon/patches/010-export_erratum_function.patch
@@ -3,8 +3,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
.../cavium-octeon/executive/cvmx-helper-errata.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
-index 8fb8205..868659e 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
@@ -33,6 +33,8 @@
@@ -15,12 +13,9 @@ index 8fb8205..868659e 100644
+
#include <asm/octeon/octeon.h>
- #include <asm/octeon/cvmx-helper-jtag.h>
-@@ -68,3 +70,4 @@ void __cvmx_helper_errata_qlm_disable_2nd_order_cdr(int qlm)
+ #include <asm/octeon/cvmx-helper-util.h>
+@@ -377,3 +379,4 @@ void __cvmx_helper_errata_qlm_disable_2n
}
cvmx_helper_qlm_jtag_update(qlm);
}
+EXPORT_SYMBOL(__cvmx_helper_errata_qlm_disable_2nd_order_cdr);
---
-1.6.0.6
-
diff --git a/target/linux/cavium-octeon/patches/011-octeon_ethernet_driver.patch b/target/linux/cavium-octeon/patches/011-octeon_ethernet_driver.patch
index 443114b83..dec15866b 100644
--- a/target/linux/cavium-octeon/patches/011-octeon_ethernet_driver.patch
+++ b/target/linux/cavium-octeon/patches/011-octeon_ethernet_driver.patch
@@ -163,9 +163,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
create mode 100644 drivers/staging/octeon/ethernet.c
create mode 100644 drivers/staging/octeon/octeon-ethernet.h
-diff --git a/drivers/staging/octeon/Kconfig b/drivers/staging/octeon/Kconfig
-new file mode 100644
-index 0000000..536e238
--- /dev/null
+++ b/drivers/staging/octeon/Kconfig
@@ -0,0 +1,12 @@
@@ -181,9 +178,6 @@ index 0000000..536e238
+ To compile this driver as a module, choose M here. The module
+ will be called octeon-ethernet.
+
-diff --git a/drivers/staging/octeon/Makefile b/drivers/staging/octeon/Makefile
-new file mode 100644
-index 0000000..3c839e3
--- /dev/null
+++ b/drivers/staging/octeon/Makefile
@@ -0,0 +1,30 @@
@@ -217,9 +211,6 @@ index 0000000..3c839e3
+ cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
+ cvmx-interrupt-decodes.o cvmx-interrupt-rsl.o
+
-diff --git a/drivers/staging/octeon/cvmx-address.h b/drivers/staging/octeon/cvmx-address.h
-new file mode 100644
-index 0000000..3c74d82
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-address.h
@@ -0,0 +1,274 @@
@@ -497,9 +488,6 @@ index 0000000..3c74d82
+#define CVMX_OCT_DID_ZIP_CSR CVMX_FULL_DID(CVMX_OCT_DID_ZIP, 0ULL)
+
+#endif /* __CVMX_ADDRESS_H__ */
-diff --git a/drivers/staging/octeon/cvmx-asxx-defs.h b/drivers/staging/octeon/cvmx-asxx-defs.h
-new file mode 100644
-index 0000000..91415a8
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-asxx-defs.h
@@ -0,0 +1,475 @@
@@ -978,9 +966,6 @@ index 0000000..91415a8
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-cmd-queue.c b/drivers/staging/octeon/cvmx-cmd-queue.c
-new file mode 100644
-index 0000000..976227b
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-cmd-queue.c
@@ -0,0 +1,306 @@
@@ -1290,9 +1275,6 @@ index 0000000..976227b
+ else
+ return NULL;
+}
-diff --git a/drivers/staging/octeon/cvmx-cmd-queue.h b/drivers/staging/octeon/cvmx-cmd-queue.h
-new file mode 100644
-index 0000000..f0cb20f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-cmd-queue.h
@@ -0,0 +1,617 @@
@@ -1913,9 +1895,6 @@ index 0000000..f0cb20f
+}
+
+#endif /* __CVMX_CMD_QUEUE_H__ */
-diff --git a/drivers/staging/octeon/cvmx-config.h b/drivers/staging/octeon/cvmx-config.h
-new file mode 100644
-index 0000000..078a520
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-config.h
@@ -0,0 +1,169 @@
@@ -2088,9 +2067,6 @@ index 0000000..078a520
+
+#endif /* __CVMX_CONFIG_H__ */
+
-diff --git a/drivers/staging/octeon/cvmx-dbg-defs.h b/drivers/staging/octeon/cvmx-dbg-defs.h
-new file mode 100644
-index 0000000..abbf42d
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-dbg-defs.h
@@ -0,0 +1,72 @@
@@ -2166,9 +2142,6 @@ index 0000000..abbf42d
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-fau.h b/drivers/staging/octeon/cvmx-fau.h
-new file mode 100644
-index 0000000..29bdce6
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-fau.h
@@ -0,0 +1,597 @@
@@ -2769,9 +2742,6 @@ index 0000000..29bdce6
+}
+
+#endif /* __CVMX_FAU_H__ */
-diff --git a/drivers/staging/octeon/cvmx-fpa-defs.h b/drivers/staging/octeon/cvmx-fpa-defs.h
-new file mode 100644
-index 0000000..bf5546b
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-fpa-defs.h
@@ -0,0 +1,403 @@
@@ -3178,9 +3148,6 @@ index 0000000..bf5546b
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-fpa.c b/drivers/staging/octeon/cvmx-fpa.c
-new file mode 100644
-index 0000000..55d9147
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-fpa.c
@@ -0,0 +1,183 @@
@@ -3367,9 +3334,6 @@ index 0000000..55d9147
+ return 0;
+ }
+}
-diff --git a/drivers/staging/octeon/cvmx-fpa.h b/drivers/staging/octeon/cvmx-fpa.h
-new file mode 100644
-index 0000000..1d7788f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-fpa.h
@@ -0,0 +1,299 @@
@@ -3672,9 +3636,6 @@ index 0000000..1d7788f
+uint64_t cvmx_fpa_get_block_size(uint64_t pool);
+
+#endif /* __CVM_FPA_H__ */
-diff --git a/drivers/staging/octeon/cvmx-gmxx-defs.h b/drivers/staging/octeon/cvmx-gmxx-defs.h
-new file mode 100644
-index 0000000..946a43a
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-gmxx-defs.h
@@ -0,0 +1,2529 @@
@@ -6207,9 +6168,6 @@ index 0000000..946a43a
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-board.c b/drivers/staging/octeon/cvmx-helper-board.c
-new file mode 100644
-index 0000000..3085e38
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-board.c
@@ -0,0 +1,706 @@
@@ -6919,9 +6877,6 @@ index 0000000..3085e38
+
+ return supported_ports;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-board.h b/drivers/staging/octeon/cvmx-helper-board.h
-new file mode 100644
-index 0000000..dc20b01
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-board.h
@@ -0,0 +1,180 @@
@@ -7105,9 +7060,6 @@ index 0000000..dc20b01
+int __cvmx_helper_board_usb_get_num_ports(int supported_ports);
+
+#endif /* __CVMX_HELPER_BOARD_H__ */
-diff --git a/drivers/staging/octeon/cvmx-helper-fpa.c b/drivers/staging/octeon/cvmx-helper-fpa.c
-new file mode 100644
-index 0000000..c239e5f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-fpa.c
@@ -0,0 +1,243 @@
@@ -7354,9 +7306,6 @@ index 0000000..c239e5f
+ CVMX_FPA_DFA_POOL_SIZE,
+ dfa_buffers);
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-fpa.h b/drivers/staging/octeon/cvmx-helper-fpa.h
-new file mode 100644
-index 0000000..5ff8c93
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-fpa.h
@@ -0,0 +1,64 @@
@@ -7424,9 +7373,6 @@ index 0000000..5ff8c93
+ int tim_buffers, int dfa_buffers);
+
+#endif /* __CVMX_HELPER_H__ */
-diff --git a/drivers/staging/octeon/cvmx-helper-loop.c b/drivers/staging/octeon/cvmx-helper-loop.c
-new file mode 100644
-index 0000000..55a571a
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-loop.c
@@ -0,0 +1,85 @@
@@ -7515,9 +7461,6 @@ index 0000000..55a571a
+ /* Do nothing. */
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-loop.h b/drivers/staging/octeon/cvmx-helper-loop.h
-new file mode 100644
-index 0000000..e646a6c
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-loop.h
@@ -0,0 +1,59 @@
@@ -7580,9 +7523,6 @@ index 0000000..e646a6c
+extern int __cvmx_helper_loop_enable(int interface);
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-npi.c b/drivers/staging/octeon/cvmx-helper-npi.c
-new file mode 100644
-index 0000000..7388a1e
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-npi.c
@@ -0,0 +1,113 @@
@@ -7699,9 +7639,6 @@ index 0000000..7388a1e
+ /* Enables are controlled by the remote host, so nothing to do here */
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-npi.h b/drivers/staging/octeon/cvmx-helper-npi.h
-new file mode 100644
-index 0000000..908e7b0
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-npi.h
@@ -0,0 +1,60 @@
@@ -7765,9 +7702,6 @@ index 0000000..908e7b0
+extern int __cvmx_helper_npi_enable(int interface);
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-rgmii.c b/drivers/staging/octeon/cvmx-helper-rgmii.c
-new file mode 100644
-index 0000000..aa2d5d7
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-rgmii.c
@@ -0,0 +1,525 @@
@@ -8296,9 +8230,6 @@ index 0000000..aa2d5d7
+ cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64);
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-rgmii.h b/drivers/staging/octeon/cvmx-helper-rgmii.h
-new file mode 100644
-index 0000000..ea26526
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-rgmii.h
@@ -0,0 +1,110 @@
@@ -8412,9 +8343,6 @@ index 0000000..ea26526
+ int enable_external);
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-sgmii.c b/drivers/staging/octeon/cvmx-helper-sgmii.c
-new file mode 100644
-index 0000000..6214e3b
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-sgmii.c
@@ -0,0 +1,550 @@
@@ -8968,9 +8896,6 @@ index 0000000..6214e3b
+ __cvmx_helper_sgmii_hardware_init_link(interface, index);
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-sgmii.h b/drivers/staging/octeon/cvmx-helper-sgmii.h
-new file mode 100644
-index 0000000..19b48d6
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-sgmii.h
@@ -0,0 +1,104 @@
@@ -9078,9 +9003,6 @@ index 0000000..19b48d6
+ int enable_external);
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-spi.c b/drivers/staging/octeon/cvmx-helper-spi.c
-new file mode 100644
-index 0000000..8ba6c83
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-spi.c
@@ -0,0 +1,195 @@
@@ -9279,9 +9201,6 @@ index 0000000..8ba6c83
+ info */
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-spi.h b/drivers/staging/octeon/cvmx-helper-spi.h
-new file mode 100644
-index 0000000..69bac03
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-spi.h
@@ -0,0 +1,84 @@
@@ -9369,9 +9288,6 @@ index 0000000..69bac03
+ cvmx_helper_link_info_t link_info);
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper-util.c b/drivers/staging/octeon/cvmx-helper-util.c
-new file mode 100644
-index 0000000..41ef8a4
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-util.c
@@ -0,0 +1,433 @@
@@ -9808,9 +9724,6 @@ index 0000000..41ef8a4
+
+ return -1;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-util.h b/drivers/staging/octeon/cvmx-helper-util.h
-new file mode 100644
-index 0000000..6a6e52f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-util.h
@@ -0,0 +1,215 @@
@@ -10029,9 +9942,6 @@ index 0000000..6a6e52f
+extern int cvmx_helper_get_interface_index_num(int ipd_port);
+
+#endif /* __CVMX_HELPER_H__ */
-diff --git a/drivers/staging/octeon/cvmx-helper-xaui.c b/drivers/staging/octeon/cvmx-helper-xaui.c
-new file mode 100644
-index 0000000..a11e676
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-xaui.c
@@ -0,0 +1,348 @@
@@ -10383,9 +10293,6 @@ index 0000000..a11e676
+ /* Take the link through a reset */
+ return __cvmx_helper_xaui_enable(interface);
+}
-diff --git a/drivers/staging/octeon/cvmx-helper-xaui.h b/drivers/staging/octeon/cvmx-helper-xaui.h
-new file mode 100644
-index 0000000..4b4db2f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper-xaui.h
@@ -0,0 +1,103 @@
@@ -10492,9 +10399,6 @@ index 0000000..4b4db2f
+ int enable_internal,
+ int enable_external);
+#endif
-diff --git a/drivers/staging/octeon/cvmx-helper.c b/drivers/staging/octeon/cvmx-helper.c
-new file mode 100644
-index 0000000..5915066
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper.c
@@ -0,0 +1,1058 @@
@@ -11556,9 +11460,6 @@ index 0000000..5915066
+ }
+ return result;
+}
-diff --git a/drivers/staging/octeon/cvmx-helper.h b/drivers/staging/octeon/cvmx-helper.h
-new file mode 100644
-index 0000000..51916f3
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-helper.h
@@ -0,0 +1,227 @@
@@ -11789,9 +11690,6 @@ index 0000000..51916f3
+ int enable_external);
+
+#endif /* __CVMX_HELPER_H__ */
-diff --git a/drivers/staging/octeon/cvmx-interrupt-decodes.c b/drivers/staging/octeon/cvmx-interrupt-decodes.c
-new file mode 100644
-index 0000000..a3337e3
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-interrupt-decodes.c
@@ -0,0 +1,371 @@
@@ -12166,9 +12064,6 @@ index 0000000..a3337e3
+ }
+ cvmx_write_csr(CVMX_STXX_INT_MSK(index), stx_int_msk.u64);
+}
-diff --git a/drivers/staging/octeon/cvmx-interrupt-rsl.c b/drivers/staging/octeon/cvmx-interrupt-rsl.c
-new file mode 100644
-index 0000000..df50048
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-interrupt-rsl.c
@@ -0,0 +1,140 @@
@@ -12312,9 +12207,6 @@ index 0000000..df50048
+ for (index = 0; index < num_ports; index++)
+ __cvmx_interrupt_gmxx_rxx_int_en_enable(index, interface);
+}
-diff --git a/drivers/staging/octeon/cvmx-ipd.h b/drivers/staging/octeon/cvmx-ipd.h
-new file mode 100644
-index 0000000..115a552
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-ipd.h
@@ -0,0 +1,338 @@
@@ -12656,9 +12548,6 @@ index 0000000..115a552
+}
+
+#endif /* __CVMX_IPD_H__ */
-diff --git a/drivers/staging/octeon/cvmx-mdio.h b/drivers/staging/octeon/cvmx-mdio.h
-new file mode 100644
-index 0000000..c987a75
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-mdio.h
@@ -0,0 +1,506 @@
@@ -13168,9 +13057,6 @@ index 0000000..c987a75
+}
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-packet.h b/drivers/staging/octeon/cvmx-packet.h
-new file mode 100644
-index 0000000..62ffe78
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-packet.h
@@ -0,0 +1,65 @@
@@ -13239,9 +13125,6 @@ index 0000000..62ffe78
+};
+
+#endif /* __CVMX_PACKET_H__ */
-diff --git a/drivers/staging/octeon/cvmx-pcsx-defs.h b/drivers/staging/octeon/cvmx-pcsx-defs.h
-new file mode 100644
-index 0000000..d45952d
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pcsx-defs.h
@@ -0,0 +1,370 @@
@@ -13615,9 +13498,6 @@ index 0000000..d45952d
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-pcsxx-defs.h b/drivers/staging/octeon/cvmx-pcsxx-defs.h
-new file mode 100644
-index 0000000..55d120f
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pcsxx-defs.h
@@ -0,0 +1,316 @@
@@ -13937,9 +13817,6 @@ index 0000000..55d120f
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-pip-defs.h b/drivers/staging/octeon/cvmx-pip-defs.h
-new file mode 100644
-index 0000000..5a36910
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pip-defs.h
@@ -0,0 +1,1267 @@
@@ -15210,9 +15087,6 @@ index 0000000..5a36910
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-pip.h b/drivers/staging/octeon/cvmx-pip.h
-new file mode 100644
-index 0000000..78dbce8
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pip.h
@@ -0,0 +1,524 @@
@@ -15740,9 +15614,6 @@ index 0000000..78dbce8
+}
+
+#endif /* __CVMX_PIP_H__ */
-diff --git a/drivers/staging/octeon/cvmx-pko-defs.h b/drivers/staging/octeon/cvmx-pko-defs.h
-new file mode 100644
-index 0000000..50e779c
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pko-defs.h
@@ -0,0 +1,1133 @@
@@ -16879,9 +16750,6 @@ index 0000000..50e779c
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-pko.c b/drivers/staging/octeon/cvmx-pko.c
-new file mode 100644
-index 0000000..00db915
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pko.c
@@ -0,0 +1,506 @@
@@ -17391,9 +17259,6 @@ index 0000000..00db915
+ cvmx_write_csr(CVMX_PKO_MEM_PORT_RATE1, pko_mem_port_rate1.u64);
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-pko.h b/drivers/staging/octeon/cvmx-pko.h
-new file mode 100644
-index 0000000..f068c19
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pko.h
@@ -0,0 +1,610 @@
@@ -18007,9 +17872,6 @@ index 0000000..f068c19
+extern int cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst);
+
+#endif /* __CVMX_PKO_H__ */
-diff --git a/drivers/staging/octeon/cvmx-pow.h b/drivers/staging/octeon/cvmx-pow.h
-new file mode 100644
-index 0000000..c5d66f2
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-pow.h
@@ -0,0 +1,1982 @@
@@ -19995,9 +19857,6 @@ index 0000000..c5d66f2
+extern int cvmx_pow_get_num_entries(void);
+
+#endif /* __CVMX_POW_H__ */
-diff --git a/drivers/staging/octeon/cvmx-scratch.h b/drivers/staging/octeon/cvmx-scratch.h
-new file mode 100644
-index 0000000..96b70cf
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-scratch.h
@@ -0,0 +1,139 @@
@@ -20140,9 +19999,6 @@ index 0000000..96b70cf
+}
+
+#endif /* __CVMX_SCRATCH_H__ */
-diff --git a/drivers/staging/octeon/cvmx-smix-defs.h b/drivers/staging/octeon/cvmx-smix-defs.h
-new file mode 100644
-index 0000000..9ae45fc
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-smix-defs.h
@@ -0,0 +1,178 @@
@@ -20324,9 +20180,6 @@ index 0000000..9ae45fc
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-spi.c b/drivers/staging/octeon/cvmx-spi.c
-new file mode 100644
-index 0000000..82794d9
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-spi.c
@@ -0,0 +1,667 @@
@@ -20997,9 +20850,6 @@ index 0000000..82794d9
+
+ return 0;
+}
-diff --git a/drivers/staging/octeon/cvmx-spi.h b/drivers/staging/octeon/cvmx-spi.h
-new file mode 100644
-index 0000000..e814648
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-spi.h
@@ -0,0 +1,269 @@
@@ -21272,9 +21122,6 @@ index 0000000..e814648
+extern int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode);
+
+#endif /* __CVMX_SPI_H__ */
-diff --git a/drivers/staging/octeon/cvmx-spxx-defs.h b/drivers/staging/octeon/cvmx-spxx-defs.h
-new file mode 100644
-index 0000000..b16940e
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-spxx-defs.h
@@ -0,0 +1,347 @@
@@ -21625,9 +21472,6 @@ index 0000000..b16940e
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-srxx-defs.h b/drivers/staging/octeon/cvmx-srxx-defs.h
-new file mode 100644
-index 0000000..d82b366
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-srxx-defs.h
@@ -0,0 +1,126 @@
@@ -21757,9 +21601,6 @@ index 0000000..d82b366
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-stxx-defs.h b/drivers/staging/octeon/cvmx-stxx-defs.h
-new file mode 100644
-index 0000000..4f209b6
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-stxx-defs.h
@@ -0,0 +1,292 @@
@@ -22055,9 +21896,6 @@ index 0000000..4f209b6
+};
+
+#endif
-diff --git a/drivers/staging/octeon/cvmx-wqe.h b/drivers/staging/octeon/cvmx-wqe.h
-new file mode 100644
-index 0000000..6536109
--- /dev/null
+++ b/drivers/staging/octeon/cvmx-wqe.h
@@ -0,0 +1,397 @@
@@ -22458,9 +22296,6 @@ index 0000000..6536109
+} CVMX_CACHE_LINE_ALIGNED cvmx_wqe_t;
+
+#endif /* __CVMX_WQE_H__ */
-diff --git a/drivers/staging/octeon/ethernet-common.c b/drivers/staging/octeon/ethernet-common.c
-new file mode 100644
-index 0000000..3e6f5b8
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-common.c
@@ -0,0 +1,328 @@
@@ -22792,9 +22627,6 @@ index 0000000..3e6f5b8
+{
+ /* Currently nothing to do */
+}
-diff --git a/drivers/staging/octeon/ethernet-common.h b/drivers/staging/octeon/ethernet-common.h
-new file mode 100644
-index 0000000..2bd9cd7
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-common.h
@@ -0,0 +1,29 @@
@@ -22827,9 +22659,6 @@ index 0000000..2bd9cd7
+
+int cvm_oct_common_init(struct net_device *dev);
+void cvm_oct_common_uninit(struct net_device *dev);
-diff --git a/drivers/staging/octeon/ethernet-defines.h b/drivers/staging/octeon/ethernet-defines.h
-new file mode 100644
-index 0000000..8f7374e
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-defines.h
@@ -0,0 +1,134 @@
@@ -22967,9 +22796,6 @@ index 0000000..8f7374e
+
+
+#endif /* __ETHERNET_DEFINES_H__ */
-diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c
-new file mode 100644
-index 0000000..93cab0a
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-mdio.c
@@ -0,0 +1,231 @@
@@ -23204,9 +23030,6 @@ index 0000000..93cab0a
+ }
+ return 0;
+}
-diff --git a/drivers/staging/octeon/ethernet-mdio.h b/drivers/staging/octeon/ethernet-mdio.h
-new file mode 100644
-index 0000000..6314141
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-mdio.h
@@ -0,0 +1,46 @@
@@ -23256,9 +23079,6 @@ index 0000000..6314141
+extern struct ethtool_ops cvm_oct_ethtool_ops;
+int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
+int cvm_oct_mdio_setup_device(struct net_device *dev);
-diff --git a/drivers/staging/octeon/ethernet-mem.c b/drivers/staging/octeon/ethernet-mem.c
-new file mode 100644
-index 0000000..b595903
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-mem.c
@@ -0,0 +1,198 @@
@@ -23460,9 +23280,6 @@ index 0000000..b595903
+ else
+ cvm_oct_free_hw_memory(pool, size, elements);
+}
-diff --git a/drivers/staging/octeon/ethernet-mem.h b/drivers/staging/octeon/ethernet-mem.h
-new file mode 100644
-index 0000000..713f2ed
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-mem.h
@@ -0,0 +1,29 @@
@@ -23495,9 +23312,6 @@ index 0000000..713f2ed
+
+int cvm_oct_mem_fill_fpa(int pool, int size, int elements);
+void cvm_oct_mem_empty_fpa(int pool, int size, int elements);
-diff --git a/drivers/staging/octeon/ethernet-proc.c b/drivers/staging/octeon/ethernet-proc.c
-new file mode 100644
-index 0000000..8fa88fc
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-proc.c
@@ -0,0 +1,256 @@
@@ -23757,9 +23571,6 @@ index 0000000..8fa88fc
+{
+ remove_proc_entry("octeon_ethernet_stats", NULL);
+}
-diff --git a/drivers/staging/octeon/ethernet-proc.h b/drivers/staging/octeon/ethernet-proc.h
-new file mode 100644
-index 0000000..82c7d9f
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-proc.h
@@ -0,0 +1,29 @@
@@ -23792,9 +23603,6 @@ index 0000000..82c7d9f
+
+void cvm_oct_proc_initialize(void);
+void cvm_oct_proc_shutdown(void);
-diff --git a/drivers/staging/octeon/ethernet-rgmii.c b/drivers/staging/octeon/ethernet-rgmii.c
-new file mode 100644
-index 0000000..8579f16
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-rgmii.c
@@ -0,0 +1,397 @@
@@ -24195,9 +24003,6 @@ index 0000000..8579f16
+ if (number_rgmii_ports == 0)
+ free_irq(OCTEON_IRQ_RML, &number_rgmii_ports);
+}
-diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c
-new file mode 100644
-index 0000000..1b237b7
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-rx.c
@@ -0,0 +1,505 @@
@@ -24706,9 +24511,6 @@ index 0000000..1b237b7
+ for (i = 0; i < NR_CPUS; i++)
+ tasklet_kill(&cvm_oct_tasklet[i].t);
+}
-diff --git a/drivers/staging/octeon/ethernet-rx.h b/drivers/staging/octeon/ethernet-rx.h
-new file mode 100644
-index 0000000..a9b72b8
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-rx.h
@@ -0,0 +1,33 @@
@@ -24745,9 +24547,6 @@ index 0000000..a9b72b8
+
+void cvm_oct_rx_initialize(void);
+void cvm_oct_rx_shutdown(void);
-diff --git a/drivers/staging/octeon/ethernet-sgmii.c b/drivers/staging/octeon/ethernet-sgmii.c
-new file mode 100644
-index 0000000..58fa39c
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-sgmii.c
@@ -0,0 +1,129 @@
@@ -24880,9 +24679,6 @@ index 0000000..58fa39c
+{
+ cvm_oct_common_uninit(dev);
+}
-diff --git a/drivers/staging/octeon/ethernet-spi.c b/drivers/staging/octeon/ethernet-spi.c
-new file mode 100644
-index 0000000..e0971bb
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-spi.c
@@ -0,0 +1,323 @@
@@ -25209,9 +25005,6 @@ index 0000000..e0971bb
+ free_irq(8 + 46, &number_spi_ports);
+ }
+}
-diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c
-new file mode 100644
-index 0000000..77b7122
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-tx.c
@@ -0,0 +1,634 @@
@@ -25849,9 +25642,6 @@ index 0000000..77b7122
+ spin_unlock_irqrestore(&priv->tx_free_list[qos].lock, flags);
+ }
+}
-diff --git a/drivers/staging/octeon/ethernet-tx.h b/drivers/staging/octeon/ethernet-tx.h
-new file mode 100644
-index 0000000..5106236
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-tx.h
@@ -0,0 +1,32 @@
@@ -25887,9 +25677,6 @@ index 0000000..5106236
+int cvm_oct_transmit_qos(struct net_device *dev, void *work_queue_entry,
+ int do_free, int qos);
+void cvm_oct_tx_shutdown(struct net_device *dev);
-diff --git a/drivers/staging/octeon/ethernet-util.h b/drivers/staging/octeon/ethernet-util.h
-new file mode 100644
-index 0000000..37b6659
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-util.h
@@ -0,0 +1,81 @@
@@ -25974,9 +25761,6 @@ index 0000000..37b6659
+ else
+ return ipd_port & 3;
+}
-diff --git a/drivers/staging/octeon/ethernet-xaui.c b/drivers/staging/octeon/ethernet-xaui.c
-new file mode 100644
-index 0000000..f08eb32
--- /dev/null
+++ b/drivers/staging/octeon/ethernet-xaui.c
@@ -0,0 +1,127 @@
@@ -26107,9 +25891,6 @@ index 0000000..f08eb32
+{
+ cvm_oct_common_uninit(dev);
+}
-diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c
-new file mode 100644
-index 0000000..e8ef9e0
--- /dev/null
+++ b/drivers/staging/octeon/ethernet.c
@@ -0,0 +1,507 @@
@@ -26620,9 +26401,6 @@ index 0000000..e8ef9e0
+MODULE_DESCRIPTION("Cavium Networks Octeon ethernet driver.");
+module_init(cvm_oct_init_module);
+module_exit(cvm_oct_cleanup_module);
-diff --git a/drivers/staging/octeon/octeon-ethernet.h b/drivers/staging/octeon/octeon-ethernet.h
-new file mode 100644
-index 0000000..b319907
--- /dev/null
+++ b/drivers/staging/octeon/octeon-ethernet.h
@@ -0,0 +1,127 @@
@@ -26753,6 +26531,3 @@ index 0000000..b319907
+extern struct net_device *cvm_oct_device[];
+
+#endif
---
-1.6.0.6
-
diff --git a/target/linux/cavium-octeon/patches/012-hook_up_eth_driver.patch b/target/linux/cavium-octeon/patches/012-hook_up_eth_driver.patch
index af2d2b1da..1a9dc0064 100644
--- a/target/linux/cavium-octeon/patches/012-hook_up_eth_driver.patch
+++ b/target/linux/cavium-octeon/patches/012-hook_up_eth_driver.patch
@@ -7,8 +7,6 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
drivers/staging/Makefile | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
-diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
-index 0dcf9ca..6c2ca23 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -115,5 +115,7 @@ source "drivers/staging/line6/Kconfig"
@@ -19,10 +17,9 @@ index 0dcf9ca..6c2ca23 100644
+
endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
-diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
---- a/drivers/staging/Makefile 2009-05-09 02:14:14.000000000 +0200
-+++ b/drivers/staging/Makefile 2009-05-12 12:38:22.000000000 +0200
-@@ -40,3 +40,4 @@
+--- a/drivers/staging/Makefile
++++ b/drivers/staging/Makefile
+@@ -40,3 +40,4 @@ obj-$(CONFIG_PLAN9AUTH) += p9auth/
obj-$(CONFIG_HECI) += heci/
obj-$(CONFIG_LINE6_USB) += line6/
obj-$(CONFIG_USB_SERIAL_QUATECH_ESU100) += serqt_usb/
diff --git a/target/linux/cavium-octeon/patches/013-compile_fixes.patch b/target/linux/cavium-octeon/patches/013-compile_fixes.patch
index 8a7d5f084..89338f4e8 100644
--- a/target/linux/cavium-octeon/patches/013-compile_fixes.patch
+++ b/target/linux/cavium-octeon/patches/013-compile_fixes.patch
@@ -1,6 +1,6 @@
---- a/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c 2009-05-06 16:55:28.000000000 +0200
-+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c 2009-05-06 17:04:05.000000000 +0200
-@@ -272,6 +272,7 @@
+--- a/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
++++ b/arch/mips/cavium-octeon/executive/cvmx-helper-errata.c
+@@ -272,6 +272,7 @@ fix_ipd_exit:
*
* Returns Zero on success, negative on failure
*/
@@ -8,7 +8,7 @@
int __cvmx_helper_errata_asx_pass1(int interface, int port, int cpu_clock_hz)
{
/* Set hi water mark as per errata GMX-4 */
-@@ -289,6 +290,7 @@
+@@ -289,6 +290,7 @@ int __cvmx_helper_errata_asx_pass1(int i
cpu_clock_hz);
return 0;
}
@@ -16,9 +16,9 @@
/**
* This function needs to be called on all Octeon chips with
---- a/arch/mips/include/asm/octeon/cvmx-helper-errata.h 2009-05-06 17:12:16.000000000 +0200
-+++ a/arch/mips/include/asm/octeon/cvmx-helper-errata.h 2009-05-06 17:12:10.000000000 +0200
-@@ -60,8 +60,8 @@
+--- a/arch/mips/include/asm/octeon/cvmx-helper-errata.h
++++ b/arch/mips/include/asm/octeon/cvmx-helper-errata.h
+@@ -60,8 +60,8 @@ extern int __cvmx_helper_errata_fix_ipd_
*
* Returns Zero on success, negative on failure
*/
@@ -29,9 +29,9 @@
/**
* This function needs to be called on all Octeon chips with
---- a/arch/mips/cavium-octeon/executive/cvmx-helper-util.c 2009-05-06 17:30:47.000000000 +0200
-+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-util.c 2009-05-06 17:31:01.000000000 +0200
-@@ -356,6 +356,7 @@
+--- a/arch/mips/cavium-octeon/executive/cvmx-helper-util.c
++++ b/arch/mips/cavium-octeon/executive/cvmx-helper-util.c
+@@ -356,6 +356,7 @@ int cvmx_helper_get_ipd_port(int interfa
*
* Returns Interface number
*/
@@ -39,7 +39,7 @@
int cvmx_helper_get_interface_num(int ipd_port)
{
if (ipd_port < 16)
-@@ -372,6 +373,7 @@
+@@ -372,6 +373,7 @@ int cvmx_helper_get_interface_num(int ip
return -1;
}
@@ -47,7 +47,7 @@
/**
* Returns the interface index number for an IPD/PKO port
-@@ -381,6 +383,7 @@
+@@ -381,6 +383,7 @@ int cvmx_helper_get_interface_num(int ip
*
* Returns Interface index number
*/
@@ -55,7 +55,7 @@
int cvmx_helper_get_interface_index_num(int ipd_port)
{
if (ipd_port < 32)
-@@ -395,6 +398,7 @@
+@@ -395,6 +398,7 @@ int cvmx_helper_get_interface_index_num(
return -1;
}
@@ -63,9 +63,9 @@
/**
* Initialize the internal QLM JTAG logic to allow programming
---- a/arch/mips/include/asm/octeon/cvmx-helper-util.h 2009-05-06 17:31:46.000000000 +0200
-+++ b/arch/mips/include/asm/octeon/cvmx-helper-util.h 2009-05-06 17:27:36.000000000 +0200
-@@ -205,7 +205,7 @@
+--- a/arch/mips/include/asm/octeon/cvmx-helper-util.h
++++ b/arch/mips/include/asm/octeon/cvmx-helper-util.h
+@@ -205,7 +205,7 @@ static inline void cvmx_helper_free_pack
*
* Returns Interface number
*/
@@ -74,7 +74,7 @@
/**
* Returns the interface index number for an IPD/PKO port
-@@ -215,7 +215,7 @@
+@@ -215,7 +215,7 @@ extern int cvmx_helper_get_interface_num
*
* Returns Interface index number
*/
diff --git a/target/linux/cavium-octeon/patches/014-clocksource_fixes.patch b/target/linux/cavium-octeon/patches/014-clocksource_fixes.patch
deleted file mode 100644
index bc72185f2..000000000
--- a/target/linux/cavium-octeon/patches/014-clocksource_fixes.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Coly Li <coly.li@suse.de>
-Date: Wed, 22 Apr 2009 19:06:06 +0000 (+0800)
-Subject: MIPS: Cavium: Add struct clocksource * argument to octeon_cvmcount_read()
-X-Git-Url: http://www.linux-mips.org/git?p=linux.git;a=commitdiff_plain;h=06a4801f5f580bb98dd813466668592943f7baea;hp=bb13f16bff55ce7ffb67d0d600bab72b9cab773b
-
-MIPS: Cavium: Add struct clocksource * argument to octeon_cvmcount_read()
-
-This patch modifies parameter of octeon_cvmcount_read() from 'void' to
-'struct clocksource *cs', which fixes compile warning for incompatible
-parameter type.
-
-Signed-off-by: Coly Li <coly.li@suse.de>
-Cc: David Daney <ddaney@caviumnetworks.com>
-Cc: Ingo Molnar <mingo@elte.hu>
-Reviewed-by: David Daney <ddaney@caviumnetworks.com>
-Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
----
-
-diff --git a/arch/mips/cavium-octeon/csrc-octeon.c b/arch/mips/cavium-octeon/csrc-octeon.c
-index 70fd92c..96110f2 100644
---- a/arch/mips/cavium-octeon/csrc-octeon.c
-+++ b/arch/mips/cavium-octeon/csrc-octeon.c
-@@ -38,7 +38,7 @@ void octeon_init_cvmcount(void)
- local_irq_restore(flags);
- }
-
--static cycle_t octeon_cvmcount_read(void)
-+static cycle_t octeon_cvmcount_read(struct clocksource *cs)
- {
- return read_c0_cvmcount();
- }
diff --git a/target/linux/cavium-octeon/patches/015-no_werror.patch b/target/linux/cavium-octeon/patches/015-no_werror.patch
index bb3b51778..71842dd1a 100644
--- a/target/linux/cavium-octeon/patches/015-no_werror.patch
+++ b/target/linux/cavium-octeon/patches/015-no_werror.patch
@@ -1,6 +1,6 @@
---- a/arch/mips/cavium-octeon/Makefile 2009-05-12 12:43:52.000000000 +0200
-+++ b/arch/mips/cavium-octeon/Makefile 2009-05-12 12:57:04.000000000 +0200
-@@ -18,5 +18,3 @@
+--- a/arch/mips/cavium-octeon/Makefile
++++ b/arch/mips/cavium-octeon/Makefile
+@@ -18,5 +18,3 @@ obj-$(CONFIG_PCI) +=
obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_PCI) += pcie.o
obj-$(CONFIG_PCI_MSI) += msi.o