Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4294c347 authored by Andy Duan's avatar Andy Duan Committed by Greg Kroah-Hartman
Browse files

net: fec: fix the clk mismatch in failed_reset path



[ Upstream commit ce8d24f9a5965a58c588f9342689702a1024433c ]

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: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarFugang Duan <fugang.duan@nxp.com>
Tested-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 566dc17b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3571,7 +3571,7 @@ fec_probe(struct platform_device *pdev)
	if (fep->reg_phy)
		regulator_disable(fep->reg_phy);
failed_reset:
	pm_runtime_put(&pdev->dev);
	pm_runtime_put_noidle(&pdev->dev);
	pm_runtime_disable(&pdev->dev);
failed_regulator:
	clk_disable_unprepare(fep->clk_ahb);