Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377010
b: refs/heads/master
c: 2786aae
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Siewior authored and David S. Miller committed Jun 11, 2013
1 parent 5ea06fa commit 3be91a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: ed13998c319b050fc9abdb73915859dfdbe1fb38
refs/heads/master: 2786aae7fc935e44f81d5f359b6a768c81b46a9b
5 changes: 2 additions & 3 deletions trunk/drivers/net/ethernet/ti/davinci_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,9 @@ static int davinci_mdio_suspend(struct device *dev)
__raw_writel(ctrl, &data->regs->control);
wait_for_idle(data);

pm_runtime_put_sync(data->dev);

data->suspended = true;
spin_unlock(&data->lock);
pm_runtime_put_sync(data->dev);

return 0;
}
Expand All @@ -462,9 +461,9 @@ static int davinci_mdio_resume(struct device *dev)
struct davinci_mdio_data *data = dev_get_drvdata(dev);
u32 ctrl;

spin_lock(&data->lock);
pm_runtime_get_sync(data->dev);

spin_lock(&data->lock);
/* restart the scan state machine */
ctrl = __raw_readl(&data->regs->control);
ctrl |= CONTROL_ENABLE;
Expand Down

0 comments on commit 3be91a9

Please sign in to comment.