diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2021-04-03 04:32:54 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2021-08-11 22:12:38 +0000 |
| commit | 30519e53dbad93a4d316a1b7d779dde26806a4d6 (patch) | |
| tree | b0c1a93b952160a365293d1a9de576d847e6079b | |
| parent | 2b2d263d0b7aa338af7171d308228ad9cb3acc70 (diff) | |
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: 621b5090487d Refactor configuration management in bhyve.
MFC after: 3 months.
(cherry picked from commit ab899f8937c1c7c79197baf7192b727ddc9cfe54)
| -rw-r--r-- | usr.sbin/bhyve/pci_xhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_xhci.c b/usr.sbin/bhyve/pci_xhci.c index dd6dfc39d014..b71d66337048 100644 --- a/usr.sbin/bhyve/pci_xhci.c +++ b/usr.sbin/bhyve/pci_xhci.c @@ -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: |
