mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
usb-device-xous: ignore block-device related messages in hosted mode
This commit is contained in:
parent
12a7271732
commit
2ff7d0a1fb
1 changed files with 9 additions and 0 deletions
|
|
@ -97,6 +97,15 @@ pub(crate) fn main_hosted() -> ! {
|
||||||
let opcode: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
let opcode: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
||||||
log::debug!("{:?}", opcode);
|
log::debug!("{:?}", opcode);
|
||||||
match opcode {
|
match opcode {
|
||||||
|
Some(Opcode::SetBlockDevice) => {
|
||||||
|
log::info!("ignoring SetBlockDevice in hosted mode");
|
||||||
|
},
|
||||||
|
Some(Opcode::SetBlockDeviceSID) => {
|
||||||
|
log::info!("ignoring SetBlockDeviceSID in hosted mode");
|
||||||
|
},
|
||||||
|
Some(Opcode::ResetBlockDevice) => {
|
||||||
|
log::info!("ignoring ResetBlockDevice in hosted mode");
|
||||||
|
},
|
||||||
Some(Opcode::SuspendResume) => msg_scalar_unpack!(msg, token, _, _, _, {
|
Some(Opcode::SuspendResume) => msg_scalar_unpack!(msg, token, _, _, _, {
|
||||||
usbmgmt.xous_suspend();
|
usbmgmt.xous_suspend();
|
||||||
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue