summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-07-31 12:47:43 +0000
committerkettenis <kettenis@openbsd.org>2020-07-31 12:47:43 +0000
commitaa356991fb9fc702fe808ff74b07a2e76b63dbb4 (patch)
tree21be310420ce5f2eb4888fcfe3d167d6f09a202e /sys/dev
parentEnsure DECLINE messages always contain the address from the OFFER. (diff)
downloadwireguard-openbsd-aa356991fb9fc702fe808ff74b07a2e76b63dbb4.tar.xz
wireguard-openbsd-aa356991fb9fc702fe808ff74b07a2e76b63dbb4.zip
Make sure bcmtmon(4) attaches even if it has a "syscon" compatible.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/bcm2711_tmon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/fdt/bcm2711_tmon.c b/sys/dev/fdt/bcm2711_tmon.c
index 11421583921..fb36740f1cf 100644
--- a/sys/dev/fdt/bcm2711_tmon.c
+++ b/sys/dev/fdt/bcm2711_tmon.c
@@ -63,10 +63,13 @@ int
bcmtmon_match(struct device *parent, void *match, void *aux)
{
struct fdt_attach_args *faa = aux;
-
- return (OF_is_compatible(faa->fa_node, "brcm,bcm2711-avs-monitor") ||
+
+ if (OF_is_compatible(faa->fa_node, "brcm,bcm2711-avs-monitor") ||
OF_is_compatible(faa->fa_node, "brcm,avs-tmon-bcm2711") ||
- OF_is_compatible(faa->fa_node, "brcm,avs-tmon-bcm2838"));
+ OF_is_compatible(faa->fa_node, "brcm,avs-tmon-bcm2838"))
+ return 10; /* Must beat syscon(4). */
+
+ return 0;
}
void