artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ab14ea
)
When configuring the USB3 phy, try the OFW PHY API first, and if there's
author
patrick
<patrick@openbsd.org>
Tue, 29 Jun 2021 12:46:36 +0000
(12:46 +0000)
committer
patrick
<patrick@openbsd.org>
Tue, 29 Jun 2021 12:46:36 +0000
(12:46 +0000)
no matching device, fall back to xhci(4)'s PHY configuration code.
ok kettenis@
sys/dev/fdt/xhci_fdt.c
patch
|
blob
|
history
diff --git
a/sys/dev/fdt/xhci_fdt.c
b/sys/dev/fdt/xhci_fdt.c
index
38c976a
..
fdf76b3
100644
(file)
--- a/
sys/dev/fdt/xhci_fdt.c
+++ b/
sys/dev/fdt/xhci_fdt.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: xhci_fdt.c,v 1.1
6 2020/12/18 18:13:17
patrick Exp $ */
+/* $OpenBSD: xhci_fdt.c,v 1.1
7 2021/06/29 12:46:36
patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
@@
-265,6
+265,9
@@
xhci_init_phys(struct xhci_fdt_softc *sc)
if (idx < 0)
return;
+ if (phy_enable_idx(sc->sc_node, idx) != ENXIO)
+ return;
+
len = OF_getproplen(sc->sc_node, "phys");
if (len <= 0)
return;