Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329715
b: refs/heads/master
c: 4a90507
h: refs/heads/master
i:
  329713: 5e51053
  329711: 7d5810b
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Aug 1, 2012
1 parent 063d125 commit 506759a
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: 4ea1277d301eb776e321684cd4ea95116b4e8847
refs/heads/master: 4a905077134849ea30d1c6dbf4071ea9e8e71b93
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 506759a

Please sign in to comment.