Skip to contentSkip to conversation

MIPS: octeon: add explicit interface setup on E200

PATCH In review Adrian Schmutzler 2 participants 2 messages Feb 25, 2021 – Mar 1, 2021 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: octeon: add explicit interface setup on E200

Define the device explicitly instead of having it fall into the "unknown board" default.

The board is already present in cvmx-bootinfo.h.

---
 arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +2 -0
index abd11b7af22f..ce9d2553537e 100644
@@ -174,6 +174,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)
 			return 7 - ipd_port;
 		else
 			return -1;
+	case CVMX_BOARD_TYPE_UBNT_E200:
+		return -1;
 	case CVMX_BOARD_TYPE_KONTRON_S1901:
 		if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT)
 			return 1;
Signature · 1 line
2.20.1
#1 lore raw
Quoted 15 lines · Adrian Schmutzler

Define the device explicitly instead of having it fall into the "unknown board" default.

The board is already present in cvmx-bootinfo.h.

---
 arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +0 -0
index abd11b7af22f..ce9d2553537e 100644

arch/mips/cavium-octeon/executive/cvmx-helper-board.c int cvmx_helper_board_get_mii_address(int ipd_port) · line 181

Quoted 8 lines
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +2 -0
@@ -174,6 +174,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)
 			return 7 - ipd_port;
 		else
 			return -1;
+	case CVMX_BOARD_TYPE_UBNT_E200:
+		return -1;
 	case CVMX_BOARD_TYPE_KONTRON_S1901:
 		if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT)
 			return 1;

why doesn't the device tree provide the phy address ?

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]