[SLOF] [PATCH slof] usb-host: Do not override USB node name
Alexey Kardashevskiy
aik at ozlabs.ru
Tue Sep 3 13:29:12 AEST 2019
QEMU creates nodes for PCI devices and preserves the node names with
one exception for USB hosts; this fixes it.
Fixes: be9b2fa44c73 ("pci: Use QEMU created PCI device nodes")
Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
---
David, this is how we loose QEMU's "usb-xhci@" nodename.
I am very curious now how it ever worked without an 's' in front
of " usb".
---
slof/fs/usb/dev-hci.fs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/slof/fs/usb/dev-hci.fs b/slof/fs/usb/dev-hci.fs
index 5fb25b8b6b4e..685280ce3de0 100644
--- a/slof/fs/usb/dev-hci.fs
+++ b/slof/fs/usb/dev-hci.fs
@@ -20,7 +20,7 @@ VALUE usb_type \ USB type
\ Open Firmware Properties
device-type
-" usb" 2dup device-name
+s" usb"
rot
VALUE usb_num \ controller number
--
2.17.1
More information about the SLOF
mailing list