From d37b73fd312e32fecba76c727b077338f9e3f9ac Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 28 Nov 2016 14:33:06 +0800 Subject: [PATCH] drtio: FIFO timeout is handled in gateware + give remote side more time --- artiq/runtime.rs/src/drtio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/runtime.rs/src/drtio.rs b/artiq/runtime.rs/src/drtio.rs index 6050a8c1b..1f05803f3 100644 --- a/artiq/runtime.rs/src/drtio.rs +++ b/artiq/runtime.rs/src/drtio.rs @@ -21,7 +21,7 @@ fn drtio_init_channel(channel: u16) { csr::drtio::o_reset_channel_status_write(1); csr::drtio::o_get_fifo_space_write(1); - while csr::drtio::o_wait_read() == 1 {} // TODO: timeout + while csr::drtio::o_wait_read() == 1 {} info!("FIFO space on channel {} is {}", channel, csr::drtio::o_dbg_fifo_space_read()); csr::drtio::chan_sel_override_en_write(0); @@ -33,7 +33,7 @@ pub fn link_thread(waiter: Waiter, _spawner: Spawner) { waiter.until(drtio_link_is_up).unwrap(); info!("link RX is up"); - waiter.sleep(500).unwrap(); + waiter.sleep(600).unwrap(); info!("wait for remote side done"); drtio_sync_tsc();