Allow boot to continue if HCI probe does not return

This commit is contained in:
Jeremy Soller
2022-08-27 08:33:53 -06:00
parent 8bbf1d8f5b
commit 86b065d724
+2 -2
View File
@@ -276,6 +276,8 @@ fn daemon(daemon: redox_daemon::Daemon) -> ! {
File::from_raw_fd(socket_fd as RawFd)
}));
daemon.ready().expect("xhcid: failed to notify parent");
let hci = Arc::new(Xhci::new(scheme_name, address, interrupt_method, pcid_handle).expect("xhcid: failed to allocate device"));
xhci::start_irq_reactor(&hci, irq_file);
futures::executor::block_on(hci.probe()).expect("xhcid: failed to probe");
@@ -285,8 +287,6 @@ fn daemon(daemon: redox_daemon::Daemon) -> ! {
syscall::setrens(0, 0).expect("xhcid: failed to enter null namespace");
daemon.ready().expect("xhcid: failed to notify parent");
let todo = Arc::new(Mutex::new(Vec::<Packet>::new()));
let todo_futures = Arc::new(Mutex::new(Vec::<Pin<Box<dyn Future<Output = usize> + Send + Sync + 'static>>>::new()));