diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-02-08 20:50:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-02-08 20:50:35 +0000 |
commit | 157006e17ddcf994a0ba146c8cf2bc2ca48b6373 (patch) | |
tree | 5a9b3ffb858cc49d1ba779496a20aa9b33b5f866 /sys/dev/fdt/if_dwge.c | |
parent | 9af6a8c589faf9c11cd8a385b976af8ec70b3d52 (diff) |
Upstream Linux finally settled on the compatible for the JH7100 Ethernet
MAC. Keep the preliminary one for now since the upstream device tree
doesn't include the USB controller yet.
ok miod@
Diffstat (limited to 'sys/dev/fdt/if_dwge.c')
-rw-r--r-- | sys/dev/fdt/if_dwge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/if_dwge.c b/sys/dev/fdt/if_dwge.c index 62dc34e5f66..94705b1c1cf 100644 --- a/sys/dev/fdt/if_dwge.c +++ b/sys/dev/fdt/if_dwge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dwge.c,v 1.21 2023/11/20 20:41:18 kettenis Exp $ */ +/* $OpenBSD: if_dwge.c,v 1.22 2024/02/08 20:50:34 kettenis Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org> * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> @@ -450,7 +450,9 @@ dwge_attach(struct device *parent, struct device *self, void *aux) * defragmenting mbufs before transmitting them fixes the * issue. */ - if (OF_is_compatible(faa->fa_node, "starfive,jh7100-gmac")) + /* XXX drop "starfive,jh7100-gmac" in the future */ + if (OF_is_compatible(faa->fa_node, "starfive,jh7100-gmac") || + OF_is_compatible(faa->fa_node, "starfive,jh7100-dwmac")) sc->sc_defrag = 1; /* Power up PHY. */ |