Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322204
b: refs/heads/master
c: ce026cb
h: refs/heads/master
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Aug 20, 2012
1 parent 7ccaa9c commit aa0feaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 76f16f83ee520d6c10356b0f6ff592441a6f08bd
refs/heads/master: ce026cb9cbf1d529652394ea91fb8a459072be91
10 changes: 5 additions & 5 deletions trunk/drivers/crypto/caam/jr.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void caam_jr_dequeue(unsigned long devarg)

head = ACCESS_ONCE(jrp->head);

spin_lock_bh(&jrp->outlock);
spin_lock(&jrp->outlock);

sw_idx = tail = jrp->tail;
hw_idx = jrp->out_ring_read_index;
Expand Down Expand Up @@ -115,7 +115,7 @@ static void caam_jr_dequeue(unsigned long devarg)
jrp->tail = tail;
}

spin_unlock_bh(&jrp->outlock);
spin_unlock(&jrp->outlock);

/* Finally, execute user's callback */
usercall(dev, userdesc, userstatus, userarg);
Expand Down Expand Up @@ -236,14 +236,14 @@ int caam_jr_enqueue(struct device *dev, u32 *desc,
return -EIO;
}

spin_lock(&jrp->inplock);
spin_lock_bh(&jrp->inplock);

head = jrp->head;
tail = ACCESS_ONCE(jrp->tail);

if (!rd_reg32(&jrp->rregs->inpring_avail) ||
CIRC_SPACE(head, tail, JOBR_DEPTH) <= 0) {
spin_unlock(&jrp->inplock);
spin_unlock_bh(&jrp->inplock);
dma_unmap_single(dev, desc_dma, desc_size, DMA_TO_DEVICE);
return -EBUSY;
}
Expand All @@ -265,7 +265,7 @@ int caam_jr_enqueue(struct device *dev, u32 *desc,

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

spin_unlock(&jrp->inplock);
spin_unlock_bh(&jrp->inplock);

return 0;
}
Expand Down

0 comments on commit aa0feaa

Please sign in to comment.