Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120585
b: refs/heads/master
c: 40405f1
h: refs/heads/master
i:
  120583: 04871ef
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Dec 25, 2008
1 parent 7043c6a commit aee4b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: a44b56cc69a5b017f396ed1daeaef6a63e086656
refs/heads/master: 40405f10b853ef404b395c6febca71b0de185490
12 changes: 3 additions & 9 deletions trunk/drivers/crypto/talitos.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ struct talitos_private {

/* request callback tasklet */
struct tasklet_struct done_task;
struct tasklet_struct error_task;

/* list of registered algorithms */
struct list_head alg_list;
Expand Down Expand Up @@ -469,16 +468,13 @@ static void report_eu_error(struct device *dev, int ch, struct talitos_desc *des
/*
* recover from error interrupts
*/
static void talitos_error(unsigned long data)
static void talitos_error(unsigned long data, u32 isr, u32 isr_lo)
{
struct device *dev = (struct device *)data;
struct talitos_private *priv = dev_get_drvdata(dev);
unsigned int timeout = TALITOS_TIMEOUT;
int ch, error, reset_dev = 0, reset_ch = 0;
u32 isr, isr_lo, v, v_lo;

isr = in_be32(priv->reg + TALITOS_ISR);
isr_lo = in_be32(priv->reg + TALITOS_ISR_LO);
u32 v, v_lo;

for (ch = 0; ch < priv->num_channels; ch++) {
/* skip channels without errors */
Expand Down Expand Up @@ -566,7 +562,7 @@ static irqreturn_t talitos_interrupt(int irq, void *data)
out_be32(priv->reg + TALITOS_ICR_LO, isr_lo);

if (unlikely((isr & ~TALITOS_ISR_CHDONE) || isr_lo))
talitos_error((unsigned long)data);
talitos_error((unsigned long)data, isr, isr_lo);
else
if (likely(isr & TALITOS_ISR_CHDONE))
tasklet_schedule(&priv->done_task);
Expand Down Expand Up @@ -1391,7 +1387,6 @@ static int talitos_remove(struct of_device *ofdev)
}

tasklet_kill(&priv->done_task);
tasklet_kill(&priv->error_task);

iounmap(priv->reg);

Expand Down Expand Up @@ -1454,7 +1449,6 @@ static int talitos_probe(struct of_device *ofdev,
INIT_LIST_HEAD(&priv->alg_list);

tasklet_init(&priv->done_task, talitos_done, (unsigned long)dev);
tasklet_init(&priv->error_task, talitos_error, (unsigned long)dev);

priv->irq = irq_of_parse_and_map(np, 0);

Expand Down

0 comments on commit aee4b9f

Please sign in to comment.