diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2023-04-07 22:55:27 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2023-04-07 22:55:27 +0000 |
commit | 3e3932ea06ee7f73a891ee91bb4f10b5069bf536 (patch) | |
tree | 931a91e4bc6b40e9927fbd0dac3b22270d8595eb /sys/dev/fdt | |
parent | fb485a0cbe0abec27f98523c7c466d0772d5156e (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.c | 4 |
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; |