Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318377
b: refs/heads/master
c: 14a8e29
h: refs/heads/master
i:
  318375: 2c49189
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Jun 27, 2012
1 parent c51f44f commit f93f37c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8ea07c21d40cf17dd9cbe3cbf87d477b26c354f
refs/heads/master: 14a8e29cc2012394d3e886b11402eabd49a4d609
8 changes: 2 additions & 6 deletions trunk/drivers/crypto/caam/jr.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ static void caam_jr_dequeue(unsigned long devarg)
userdesc = jrp->entinfo[sw_idx].desc_addr_virt;
userstatus = jrp->outring[hw_idx].jrstatus;

smp_mb();
/* set done */
wr_reg32(&jrp->rregs->outring_rmvd, 1);

jrp->out_ring_read_index = (jrp->out_ring_read_index + 1) &
(JOBR_DEPTH - 1);
Expand All @@ -114,9 +115,6 @@ static void caam_jr_dequeue(unsigned long devarg)
jrp->tail = tail;
}

/* set done */
wr_reg32(&jrp->rregs->outring_rmvd, 1);

spin_unlock_bh(&jrp->outlock);

/* Finally, execute user's callback */
Expand Down Expand Up @@ -265,8 +263,6 @@ int caam_jr_enqueue(struct device *dev, u32 *desc,
(JOBR_DEPTH - 1);
jrp->head = (head + 1) & (JOBR_DEPTH - 1);

wmb();

wr_reg32(&jrp->rregs->inpring_jobadd, 1);

spin_unlock(&jrp->inplock);
Expand Down

0 comments on commit f93f37c

Please sign in to comment.