Commit ed7e918b authored by François Romieu's avatar François Romieu Committed by Jeff Garzik

[PATCH] via-velocity: ordering of Rx descriptors operations

Force strict ordering of operations on Rx descriptors to avoid any issue
related to inline optimization.
parent 3255eeec
......@@ -996,6 +996,8 @@ static inline void velocity_give_many_rx_descs(struct velocity_info *vptr)
if (vptr->rd_filled < 4)
return;
wmb();
unusable = vptr->rd_filled | 0x0003;
dirty = vptr->rd_dirty - unusable + 1;
for (avail = vptr->rd_filled & 0xfffc; avail; avail--) {
......
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