Skip to content

Commit ce8d24f

Browse files
fugangduandavem330
authored andcommitted
net: fec: fix the clk mismatch in failed_reset path
Fix the clk mismatch in the error path "failed_reset" because below error path will disable clk_ahb and clk_ipg directly, it should use pm_runtime_put_noidle() instead of pm_runtime_put() to avoid to call runtime resume callback. Reported-by: Baruch Siach <[email protected]> Signed-off-by: Fugang Duan <[email protected]> Tested-by: Baruch Siach <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 71e15f7 commit ce8d24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3556,7 +3556,7 @@ fec_probe(struct platform_device *pdev)
35563556
if (fep->reg_phy)
35573557
regulator_disable(fep->reg_phy);
35583558
failed_reset:
3559-
pm_runtime_put(&pdev->dev);
3559+
pm_runtime_put_noidle(&pdev->dev);
35603560
pm_runtime_disable(&pdev->dev);
35613561
failed_regulator:
35623562
clk_disable_unprepare(fep->clk_ahb);

0 commit comments

Comments
 (0)