]> git.baikalelectronics.ru Git - kernel.git/commit
net: freescale: fec: Fix ethtool -d runtime PM
authorAndrew Lunn <andrew@lunn.ch>
Thu, 2 Jan 2020 14:33:34 +0000 (15:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2020 00:38:09 +0000 (16:38 -0800)
commit1ec4c6199805fc3cfaf8c030b85079c0d7766dd5
tree9e7dd3df6f4ef20bd171fa896deb0489af34d9c0
parent6f031e6b7c58c0cf11e679389a547321149f4faa
net: freescale: fec: Fix ethtool -d runtime PM

In order to dump the FECs registers the clocks have to be ticking,
otherwise a data abort occurs.  Add calls to runtime PM so they are
enabled and later disabled.

Fixes: 229950af2928 ("net: fec: optimize the clock management to save power")
Reported-by: Chris Healy <Chris.Healy@zii.aero>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c