Skip to content
Snippets Groups Projects
Commit 55745a86 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

Locking in SPEC matters even if you can't control the cycle line.

parent 883294b0
Branches
Tags
No related merge requests found
......@@ -31,6 +31,16 @@ static unsigned int debug = 0;
static void wb_cycle(struct wishbone* wb, int on)
{
struct spec_wb_dev* dev;
dev = container_of(wb, struct spec_wb_dev, wb);
if (on) mutex_lock(&dev->mutex);
if (unlikely(debug))
printk(KERN_ALERT SPEC_WB ": cycle(%d)\n", on);
if (!on) mutex_unlock(&dev->mutex);
}
static void wb_byteenable(struct wishbone* wb, unsigned char be)
......
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