From b9d7ccf36c39b92b7a10b4c20eb8ebbfc49a499e Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 6 Jul 2024 06:15:17 +0000 Subject: [PATCH] octeon/cnmac: Skip the switch port (cnmac2) on the 5-ports EdgeRouter POE it doesn't work as is and would need a separate driver ? based on a 2017 diff from visa@ ok visa@ --- sys/arch/octeon/dev/cn30xxsmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/octeon/dev/cn30xxsmi.c b/sys/arch/octeon/dev/cn30xxsmi.c index 39cbadf167a..ef519e24d65 100644 --- a/sys/arch/octeon/dev/cn30xxsmi.c +++ b/sys/arch/octeon/dev/cn30xxsmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cn30xxsmi.c,v 1.12 2024/05/20 23:13:33 jsg Exp $ */ +/* $OpenBSD: cn30xxsmi.c,v 1.13 2024/07/06 06:15:17 landry Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -197,6 +197,10 @@ cn30xxsmi_get_phy(int phandle, int port, struct cn30xxsmi_softc **psmi, reg = nutm25_phys[port]; break; case BOARD_UBIQUITI_E100: + /* XXX Skip the switch port on ERPoe-5. + * XXX There is no driver for it. */ + if (port > 1 && octeon_boot_info->board_rev_major == 1) + return ENOENT; case BOARD_UBIQUITI_E120: if (port > 2) return ENOENT; -- 2.20.1