net: fec: fix the clk mismatch in failed_reset path
authorAndy Duan <fugang.duan@nxp.com>
Thu, 23 May 2019 01:55:28 +0000 (01:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:12:19 +0000 (13:12 -0700)
commitce8d24f9a5965a58c588f9342689702a1024433c
tree3fd2ca368cb0e3d00e6b834f83ffd5c3727ad13a
parent71e15f76f8df7ca01cfa87ed895b194feee90dd4
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 <baruch@tkos.co.il>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c