From 66783817f59c9f1ceda9fe6819f073838c326377 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 2 Jun 2017 11:06:08 +0000 Subject: [PATCH] Attach the xhci(4) FDT driver to the generic-xhci compatible as well. --- sys/dev/fdt/xhci_fdt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/xhci_fdt.c b/sys/dev/fdt/xhci_fdt.c index b30e1324e4b..019ae6e260a 100644 --- a/sys/dev/fdt/xhci_fdt.c +++ b/sys/dev/fdt/xhci_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci_fdt.c,v 1.2 2017/03/12 11:46:22 kettenis Exp $ */ +/* $OpenBSD: xhci_fdt.c,v 1.3 2017/06/02 11:06:08 patrick Exp $ */ /* * Copyright (c) 2017 Mark kettenis * @@ -56,7 +56,8 @@ xhci_fdt_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "snps,dwc3"); + return OF_is_compatible(faa->fa_node, "generic-xhci") || + OF_is_compatible(faa->fa_node, "snps,dwc3"); } void -- 2.20.1