summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-04-10 23:18:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-04-10 23:18:09 +0000
commit3430d1a7ed898bbc52c200db6907c3deedd91aec (patch)
treef42235cabe8e92e26c471841adfb774cdab270f0
parent62f16fde2eccad6b44753dba3d0450ad1ffb8174 (diff)
add missing write of SAB_DAFO
ok miod@ who tested on Ultra 5
-rw-r--r--sys/arch/sparc64/dev/sab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index 73ef07db8b4..57a97f088eb 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.40 2022/10/16 01:22:39 jsg Exp $ */
+/* $OpenBSD: sab.c,v 1.41 2023/04/10 23:18:08 jsg Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -1020,6 +1020,8 @@ sabttyparam(struct sabtty_softc *sc, struct tty *tp, struct termios *t)
} else
dafo |= SAB_DAFO_PAR_NONE;
+ SAB_WRITE(sc, SAB_DAFO, dafo);
+
if (ospeed != 0) {
SAB_WRITE(sc, SAB_BGR, ospeed & 0xff);
r = SAB_READ(sc, SAB_CCR2);