diff options
author | 2019-09-09 20:00:27 +0000 | |
---|---|---|
committer | 2019-09-09 20:00:27 +0000 | |
commit | 8d9412be1488e23c28430a2d077912bfb0f19fb4 (patch) | |
tree | ab42042dbbc07569060deff36d9ff1c066ab602d /sys/dev/fdt/imxsrc.c | |
parent | Continue bit twiddling tweaks. Use SET() with st->flags. (diff) | |
download | wireguard-openbsd-8d9412be1488e23c28430a2d077912bfb0f19fb4.tar.xz wireguard-openbsd-8d9412be1488e23c28430a2d077912bfb0f19fb4.zip |
Attach imxsrc(4) early and raise its priority to make sure it beats
syscon(4).
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/imxsrc.c')
-rw-r--r-- | sys/dev/fdt/imxsrc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/fdt/imxsrc.c b/sys/dev/fdt/imxsrc.c index 1635ebf1504..869d8effcb5 100644 --- a/sys/dev/fdt/imxsrc.c +++ b/sys/dev/fdt/imxsrc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxsrc.c,v 1.1 2019/01/11 08:02:19 patrick Exp $ */ +/* $OpenBSD: imxsrc.c,v 1.2 2019/09/09 20:00:27 patrick Exp $ */ /* * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> * @@ -100,7 +100,10 @@ imxsrc_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "fsl,imx8mq-src"); + if (OF_is_compatible(faa->fa_node, "fsl,imx8mq-src")) + return 10; /* Must beat syscon(4). */ + + return 0; } void |