summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2023-04-07 22:55:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2023-04-07 22:55:27 +0000
commit3e3932ea06ee7f73a891ee91bb4f10b5069bf536 (patch)
tree931a91e4bc6b40e9927fbd0dac3b22270d8595eb /sys/dev/fdt
parentfb485a0cbe0abec27f98523c7c466d0772d5156e (diff)
print which gmac the dwqe driver is attaching to.
there's no guarantee that dwqe0 in the kernel will attach to gmac0 in the device tree, so print it to make it explicit what's going where. ok patrick@ kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/if_dwqe_fdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fdt/if_dwqe_fdt.c b/sys/dev/fdt/if_dwqe_fdt.c
index 5bc5b321240..5d441600db3 100644
--- a/sys/dev/fdt/if_dwqe_fdt.c
+++ b/sys/dev/fdt/if_dwqe_fdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dwqe_fdt.c,v 1.8 2023/04/07 08:53:03 kettenis Exp $ */
+/* $OpenBSD: if_dwqe_fdt.c,v 1.9 2023/04/07 22:55:26 dlg Exp $ */
/*
* Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2017, 2022 Patrick Wildt <patrick@blueri.se>
@@ -114,6 +114,8 @@ dwqe_fdt_attach(struct device *parent, struct device *self, void *aux)
return;
}
+ printf(" gmac %d", sc->sc_gmac_id);
+
OF_getprop(faa->fa_node, "phy-mode", phy_mode, sizeof(phy_mode));
if (strcmp(phy_mode, "rgmii") == 0)
sc->sc_phy_mode = DWQE_PHY_MODE_RGMII;