From ca9c173203382a9c5e8e99f702667ab9312eeab7 Mon Sep 17 00:00:00 2001 From: dlg Date: Fri, 7 Apr 2023 22:55:26 +0000 Subject: [PATCH] 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@ --- sys/dev/fdt/if_dwqe_fdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 * Copyright (c) 2017, 2022 Patrick Wildt @@ -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; -- 2.20.1