2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 11:48:27 +08:00

drtio-proto: remove reboot imminent message

This commit is contained in:
occheung 2024-08-29 12:40:36 +08:00
parent f6cf66966d
commit 7af8511de3
3 changed files with 1 additions and 5 deletions

View File

@ -143,7 +143,6 @@ pub enum Packet {
CoreMgmtConfigReadReply { last: bool, length: u16, value: [u8; SAT_PAYLOAD_MAX_SIZE] },
CoreMgmtAck,
CoreMgmtNack,
CoreMgmtRebootImminent,
}
impl Packet {
@ -508,7 +507,6 @@ impl Packet {
},
0xdd => Packet::CoreMgmtAck,
0xde => Packet::CoreMgmtNack,
0xdf => Packet::CoreMgmtRebootImminent,
ty => return Err(Error::UnknownPacket(ty))
})
@ -880,7 +878,6 @@ impl Packet {
},
Packet::CoreMgmtAck => writer.write_u8(0xdd)?,
Packet::CoreMgmtNack => writer.write_u8(0xde)?,
Packet::CoreMgmtRebootImminent => writer.write_u8(0xdf)?,
}
Ok(())
}

View File

@ -372,7 +372,6 @@ mod remote_coremgmt {
destination: destination, length: len as u16, last: status.is_last(), data: *slice});
match reply {
Ok(Packet::CoreMgmtAck) => Ok(()),
Ok(Packet::CoreMgmtRebootImminent) if status.is_last() => Ok(()),
Ok(packet) => {
error!("received unexpected aux packet: {:?}", packet);
Err(drtio::Error::UnexpectedReply)

View File

@ -53,7 +53,7 @@ impl Manager {
match key.as_str() {
"gateware" | "bootloader" | "firmware" => {
drtioaux::send(0, &drtioaux::Packet::CoreMgmtRebootImminent)?;
drtioaux::send(0, &drtioaux::Packet::CoreMgmtAck)?;
#[cfg(not(soc_platform = "efc"))]
unsafe {
clock::spin_us(10000);