From 146d5720c05e033bf62c2f6bd783d856487047ce Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 26 Mar 2020 00:21:27 +0000 Subject: [PATCH] Add "snps,dwc3" to the list of compatible strings we match against. The code already handles "snps,dwc3" not being a subordinate of an SoC-specific node, but the string was missing from the match routine. Necessitated by the sun50i-h6 device tree update on Jan 3 2020, which elimiated the "allwinner,sun50i-h6-dwc3" node and placed all of the clocks, resets, etc. directly under the "snps,dwc3" node. --- sys/dev/fdt/dwc3_fdt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/dwc3_fdt.c b/sys/dev/fdt/dwc3_fdt.c index 25bcfb82dfba..d3274afd03c5 100644 --- a/sys/dev/fdt/dwc3_fdt.c +++ b/sys/dev/fdt/dwc3_fdt.c @@ -1,4 +1,4 @@ -/* $NetBSD: dwc3_fdt.c,v 1.9 2020/01/15 01:09:57 jmcneill Exp $ */ +/* $NetBSD: dwc3_fdt.c,v 1.10 2020/03/26 00:21:27 thorpej Exp $ */ /*- * Copyright (c) 2018 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.9 2020/01/15 01:09:57 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.10 2020/03/26 00:21:27 thorpej Exp $"); #include #include @@ -212,6 +212,7 @@ dwc3_fdt_match(device_t parent, cfdata_t cf, void *aux) "rockchip,rk3328-dwc3", "rockchip,rk3399-dwc3", "samsung,exynos5250-dwusb3", + "snps,dwc3", NULL }; struct fdt_attach_args * const faa = aux;