From: Daniel Engberg Date: Fri, 17 Apr 2020 19:56:37 +0000 (+0200) Subject: octeon: refresh patches for kernel 5.4 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=655c14e88cc17509bdec71ca73594b345d20d7a1;p=openwrt%2Fstaging%2Fwigyori.git octeon: refresh patches for kernel 5.4 Refresh patches to make them apply to kernel 5.4. Signed-off-by: Daniel Engberg [split patch, refresh on newer kernel, add description] Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/octeon/patches-5.4/100-ubnt_edgerouter2_support.patch b/target/linux/octeon/patches-5.4/100-ubnt_edgerouter2_support.patch index 991eb56ce2..7fdd36e31f 100644 --- a/target/linux/octeon/patches-5.4/100-ubnt_edgerouter2_support.patch +++ b/target/linux/octeon/patches-5.4/100-ubnt_edgerouter2_support.patch @@ -20,7 +20,7 @@ ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MAX) --- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c -@@ -173,6 +173,8 @@ int cvmx_helper_board_get_mii_address(in +@@ -174,6 +174,8 @@ int cvmx_helper_board_get_mii_address(in return 7 - ipd_port; else return -1; diff --git a/target/linux/octeon/patches-5.4/110-er200-ethernet_probe_order.patch b/target/linux/octeon/patches-5.4/110-er200-ethernet_probe_order.patch index 93d1e93505..c1b6f73a30 100644 --- a/target/linux/octeon/patches-5.4/110-er200-ethernet_probe_order.patch +++ b/target/linux/octeon/patches-5.4/110-er200-ethernet_probe_order.patch @@ -1,6 +1,6 @@ --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c -@@ -670,6 +670,7 @@ static int cvm_oct_probe(struct platform +@@ -682,6 +682,7 @@ static int cvm_oct_probe(struct platform int interface; int fau = FAU_NUM_PACKET_BUFFERS_TO_FREE; int qos; @@ -8,7 +8,7 @@ struct device_node *pip; int mtu_overhead = ETH_HLEN + ETH_FCS_LEN; -@@ -793,13 +794,19 @@ static int cvm_oct_probe(struct platform +@@ -805,13 +806,19 @@ static int cvm_oct_probe(struct platform } num_interfaces = cvmx_helper_get_number_of_interfaces(); diff --git a/target/linux/octeon/patches-5.4/120-cmdline-hack.patch b/target/linux/octeon/patches-5.4/120-cmdline-hack.patch index 2b5978c5ee..6c02ea3194 100644 --- a/target/linux/octeon/patches-5.4/120-cmdline-hack.patch +++ b/target/linux/octeon/patches-5.4/120-cmdline-hack.patch @@ -1,6 +1,6 @@ --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c -@@ -651,6 +651,35 @@ void octeon_user_io_init(void) +@@ -653,6 +653,35 @@ void octeon_user_io_init(void) write_c0_derraddr1(0); } @@ -36,7 +36,7 @@ /** * Early entry point for arch setup */ -@@ -895,6 +924,8 @@ void __init prom_init(void) +@@ -897,6 +926,8 @@ void __init prom_init(void) } }