diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-22 21:41:29 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-22 21:41:29 +0000 |
commit | 53ae0a7b2975ae432133fa361e12c7adbd3b2896 (patch) | |
tree | dce5b1102a24c4b57cc938892ac72cab6e729c46 | |
parent | 1bfa8890253b5984c35cbfb8d4b78e8bce4d468c (diff) |
fix GMAC_CHAN_RX_CONTROL write
ok patrick@ kettenis@
-rw-r--r-- | sys/dev/ic/dwqe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/dwqe.c b/sys/dev/ic/dwqe.c index a7275ccba58..1f94791e465 100644 --- a/sys/dev/ic/dwqe.c +++ b/sys/dev/ic/dwqe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwqe.c,v 1.2 2023/02/15 14:10:58 kettenis Exp $ */ +/* $OpenBSD: dwqe.c,v 1.3 2023/03/22 21:41:28 jsg Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org> * Copyright (c) 2017, 2022 Patrick Wildt <patrick@blueri.se> @@ -160,9 +160,9 @@ dwqe_attach(struct dwqe_softc *sc) mode |= sc->sc_txpbl << GMAC_CHAN_TX_CONTROL_PBL_SHIFT; mode |= GMAC_CHAN_TX_CONTROL_OSP; dwqe_write(sc, GMAC_CHAN_TX_CONTROL(0), mode); + mode = dwqe_read(sc, GMAC_CHAN_RX_CONTROL(0)); mode &= ~GMAC_CHAN_RX_CONTROL_RPBL_MASK; mode |= sc->sc_rxpbl << GMAC_CHAN_RX_CONTROL_RPBL_SHIFT; - mode = dwqe_read(sc, GMAC_CHAN_RX_CONTROL(0)); dwqe_write(sc, GMAC_CHAN_RX_CONTROL(0), mode); /* Configure AXI master. */ |