Commit 7ac2c7b3 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Fixed a bug which caused the cycle line not to drop.

parent b2006bff
......@@ -39,6 +39,9 @@ static void wb_cycle(struct wishbone* wb, int on)
if (on) mutex_lock(&dev->mutex);
if (unlikely(debug))
printk(KERN_ALERT PCIE_WB ": cycle(%d)\n", on);
iowrite32(on?0x80000000UL:0, control + CONTROL_REGISTER_HIGH);
if (!on) mutex_unlock(&dev->mutex);
......
......@@ -152,7 +152,7 @@ static void etherbone_process(struct etherbone_context* context)
}
}
if ((flags & ETHERBONE_CYC) == 0) {
if ((flags & ETHERBONE_CYC) != 0) {
wops->cycle(wb, 0);
context->state = idle;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment