diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-10-29 11:00:20 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-10-29 11:00:20 +0000 |
commit | 8ede9ef6d0772dd7f1546b7bf57ae8aad03eacc9 (patch) | |
tree | 0d9f2beb5023a4ca4f807d874a98482838ce9644 /sys/arch/octeon/dev | |
parent | 9c099d1f258adf679339dc57cb8035576e324dc6 (diff) |
Make PHY address lookups fail instead of using CAM-0100 entries
when the system board is unhandled.
Diffstat (limited to 'sys/arch/octeon/dev')
-rw-r--r-- | sys/arch/octeon/dev/cn30xxgmx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/cn30xxgmx.c b/sys/arch/octeon/dev/cn30xxgmx.c index 9f95a26f6e8..0a265d8cc8c 100644 --- a/sys/arch/octeon/dev/cn30xxgmx.c +++ b/sys/arch/octeon/dev/cn30xxgmx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cn30xxgmx.c,v 1.28 2016/10/21 15:15:08 visa Exp $ */ +/* $OpenBSD: cn30xxgmx.c,v 1.29 2016/10/29 11:00:19 visa Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -196,10 +196,13 @@ cn30xxgmx_port_phy_addr(int port) return port - 16; /* GMX1: eth[0-3] */ return -1; - default: + case BOARD_TYPE_CN3010_EVB_HS5: if (port >= nitems(octeon_eth_phy_table)) return -1; return octeon_eth_phy_table[port]; + + default: + return -1; } } |