From: kettenis Date: Wed, 28 Dec 2022 11:20:09 +0000 (+0000) Subject: Handle clock that can't be gated as a no-op. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=683edca50e8de7e098c8aeb6f0f21a42a8a5e737;p=openbsd Handle clock that can't be gated as a no-op. ok patrick@ --- diff --git a/sys/arch/riscv64/dev/stfclock.c b/sys/arch/riscv64/dev/stfclock.c index f91fe2391bf..2fef8b689db 100644 --- a/sys/arch/riscv64/dev/stfclock.c +++ b/sys/arch/riscv64/dev/stfclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stfclock.c,v 1.2 2022/06/12 10:51:55 kettenis Exp $ */ +/* $OpenBSD: stfclock.c,v 1.3 2022/12/28 11:20:09 kettenis Exp $ */ /* * Copyright (c) 2022 Mark Kettenis * @@ -289,6 +289,9 @@ stfclock_enable(void *cookie, uint32_t *cells, int on) else HCLR4(sc, idx * 4, 1U << 31); return; + case JH7100_CLK_GMAC_ROOT_DIV: + /* No gate */ + return; } printf("%s: 0x%08x\n", __func__, idx);