diff options
author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | 2017-04-14 17:31:25 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-04-18 09:35:17 +0200 |
commit | 53ac032b6bf557b632912f4aa60317a704a35ddc (patch) | |
tree | 0b34de5f516ebe8b7fd3d0a6aabcdbc507e2a927 | |
parent | 25f725502fcd47178b505e5462b9e8acf86cd1f5 (diff) | |
download | linux-53ac032b6bf557b632912f4aa60317a704a35ddc.tar.gz |
net: macb: Move to runtime_put to cut clocks
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 <shubhrajyoti.datta@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 62fe87a36174c0..2e4c4bc1e3c7d0 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -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; } |