The branch main has been updated by seuros:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ac5440ec248f9fa72646519743c89c3e61c07d5f

commit ac5440ec248f9fa72646519743c89c3e61c07d5f
Author:     Abdelkader Boudih <[email protected]>
AuthorDate: 2026-09-06 17:54:18 +0000
Commit:     Abdelkader Boudih <[email protected]>
CommitDate: 2026-09-06 19:47:44 +0000

    apple_bce: kick USB explore thread after VHCI attach
    
    Call usb_needs_explore() after attach so the hub explore thread
    enumerates all initially connected ports instead of only the first.
    
    Reviewed by:    adrian
    Differential Revision:  https://reviews.freebsd.org/D58870
---
 sys/dev/apple_bce/apple_bce_vhci.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/dev/apple_bce/apple_bce_vhci.c 
b/sys/dev/apple_bce/apple_bce_vhci.c
index b8dbc9638b36..f8ab178bd291 100644
--- a/sys/dev/apple_bce/apple_bce_vhci.c
+++ b/sys/dev/apple_bce/apple_bce_vhci.c
@@ -4689,6 +4689,12 @@ bce_vhci_attach_dev(device_t dev)
 
        device_printf(dev, "BCE VHCI attached, %d ports\n",
            vhci->sc_port_count);
+
+       /* Kick the USB explore thread to enumerate initially connected ports */
+       USB_BUS_LOCK(&vhci->sc_bus);
+       usb_needs_explore(&vhci->sc_bus, 0);
+       USB_BUS_UNLOCK(&vhci->sc_bus);
+
        return (0);
 
 fail_child:

Reply via email to