Fix typo in xhci nvlist node name, and also increment device counter.

This allows the xhci tablet device to be recognized and a PCI device
instantiated.

Reviewed by:	jhb
Fixes:		621b509048 Refactor configuration management in bhyve.
MFC after:	3 months.
This commit is contained in:
Peter Grehan 2021-04-03 14:32:54 +10:00
parent 4d221f59b8
commit ab899f8937

View File

@ -2720,7 +2720,7 @@ pci_xhci_parse_devices(struct pci_xhci_softc *sc, nvlist_t *nvl)
ndevices = 0;
slots_nvl = find_relative_config_node(nvl, "slots");
slots_nvl = find_relative_config_node(nvl, "slot");
if (slots_nvl == NULL)
goto portsfinal;
@ -2806,6 +2806,7 @@ pci_xhci_parse_devices(struct pci_xhci_softc *sc, nvlist_t *nvl)
dev->dev_sc = devsc;
XHCI_SLOTDEV_PTR(sc, slot) = dev;
ndevices++;
}
portsfinal: