]> 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)
commit13dbf253336abe1039935b566555a14ce986803e
tree9e7dd3df6f4ef20bd171fa896deb0489af34d9c0
parent9347355cca236fa544f1759043a18e850d1c8393
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: 44d5a2d41ce7 ("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