xhci: add a warning when a device is detached during init
This commit is contained in:
parent
1bc99bc05f
commit
abdf53368b
@ -236,7 +236,10 @@ impl Xhci {
|
|||||||
let state = &self.port_states[port];
|
let state = &self.port_states[port];
|
||||||
|
|
||||||
match state.state.swap(PortState::Disconnected, Ordering::Release) {
|
match state.state.swap(PortState::Disconnected, Ordering::Release) {
|
||||||
PortState::Init => todo!(),
|
PortState::Init => {
|
||||||
|
log::warn!("USB device detach received while in init state");
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
PortState::Running => {
|
PortState::Running => {
|
||||||
log::info!("Port {}: device detached", port);
|
log::info!("Port {}: device detached", port);
|
||||||
let address = state
|
let address = state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user