From 256d46b89dc0286523b8477acd8a1871c2bd327a Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 8 Apr 2023 05:38:25 +0000 Subject: [PATCH] correct write to MV_XLG_PORT_MAC_CTRL4_REG tested by matthieu@ ok patrick@ --- sys/dev/fdt/if_mvpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/if_mvpp.c b/sys/dev/fdt/if_mvpp.c index 438652bc585..d5add3245c3 100644 --- a/sys/dev/fdt/if_mvpp.c +++ b/sys/dev/fdt/if_mvpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvpp.c,v 1.49 2022/04/06 18:59:28 naddy Exp $ */ +/* $OpenBSD: if_mvpp.c,v 1.50 2023/04/08 05:38:25 jsg Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis * Copyright (c) 2017, 2020 Patrick Wildt @@ -2599,7 +2599,7 @@ mvpp2_xlg_config(struct mvpp2_port *sc) ctl4 |= MV_XLG_MAC_CTRL4_FORWARD_802_3X_FC_EN; mvpp2_xlg_write(sc, MV_XLG_PORT_MAC_CTRL0_REG, ctl0); - mvpp2_xlg_write(sc, MV_XLG_PORT_MAC_CTRL4_REG, ctl0); + mvpp2_xlg_write(sc, MV_XLG_PORT_MAC_CTRL4_REG, ctl4); /* Port reset */ while ((mvpp2_xlg_read(sc, MV_XLG_PORT_MAC_CTRL0_REG) & -- 2.20.1