Skip to content

Commit

Permalink
net: macb: Move to runtime_put to cut clocks
Browse files Browse the repository at this point in the history
Move to the runtime_put to cut the clocks.
The ethernet interface upo and down doesnot happen
fast enough to justify autosuspend.

Signed-off-by: Shubhrajyoti Datta <[email protected]>
Acked-by: Harini Katakam <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Shubhrajyoti Datta authored and Michal Simek committed Apr 18, 2017
1 parent 25f7255 commit 53ac032
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/cadence/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2417,8 +2417,7 @@ static int macb_close(struct net_device *dev)

macb_free_consistent(bp);

pm_runtime_mark_last_busy(&bp->pdev->dev);
pm_runtime_put_autosuspend(&bp->pdev->dev);
pm_runtime_put(&bp->pdev->dev);
return 0;
}

Expand Down

0 comments on commit 53ac032

Please sign in to comment.