diff options
author | 2020-04-23 19:48:26 +0000 | |
---|---|---|
committer | 2020-04-23 19:48:26 +0000 | |
commit | ddff7592a771cd91410a8a9931f226ae2d5399dd (patch) | |
tree | 9e48f11cf3ccca919bfb8f1cf296a3e48d3b7bb8 | |
parent | Add support for autmatically moving traffic between rdomains on ipsec(4) (diff) | |
download | wireguard-openbsd-ddff7592a771cd91410a8a9931f226ae2d5399dd.tar.xz wireguard-openbsd-ddff7592a771cd91410a8a9931f226ae2d5399dd.zip |
Since apparently the bikeshedding over i.MX8M PCIe device tree
bindings still hasn't resulted in an upstream commit in Linux,
accept the ext_osc attribute if ext_osc exists without a value,
or if it has a value greater zero. This improves compatibility
with various device trees.
-rw-r--r-- | sys/dev/fdt/dwpcie.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index f7194dee960..8ffe9c35b44 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.15 2019/08/26 11:24:03 patrick Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.16 2020/04/23 19:48:26 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -652,7 +652,8 @@ dwpcie_imx8mq_init(struct dwpcie_softc *sc) } regmap_write_4(gpr, IOMUXC_GPR12, reg); - if (OF_getproplen(sc->sc_node, "ext_osc") == 0) { + if (OF_getproplen(sc->sc_node, "ext_osc") == 0 || + OF_getpropint(sc->sc_node, "ext_osc", 0)) { reg = regmap_read_4(gpr, off); reg |= IMX8MQ_GPR_PCIE_REF_USE_PAD; regmap_write_4(gpr, off, reg); |