Use a task to switch clocks on RK3568 as the clock API needs process context.
authorkettenis <kettenis@openbsd.org>
Sun, 19 Mar 2023 09:46:40 +0000 (09:46 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 19 Mar 2023 09:46:40 +0000 (09:46 +0000)
ok jmatthew@

sys/dev/ic/dwqevar.h

index bd4f97a..bb47dd6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dwqevar.h,v 1.1 2023/02/13 19:18:53 patrick Exp $     */
+/*     $OpenBSD: dwqevar.h,v 1.2 2023/03/19 09:46:40 kettenis Exp $    */
 /*
  * Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org>
  * Copyright (c) 2017, 2022 Patrick Wildt <patrick@blueri.se>
@@ -67,6 +67,7 @@ struct dwqe_softc {
 
        struct timeout          sc_tick;
        struct timeout          sc_rxto;
+       struct task             sc_statchg_task;
 
        uint32_t                sc_clk;