Files
linux-stable-mirror/include/linux
Bhupesh Sharma 4047b9db1a net: stmmac: Add platform level debug register dump feature
dwmac-qcom-ethqos currently exposes a mechanism to dump rgmii registers
after the 'stmmac_dvr_probe()' returns. However with commit
5ec5582343 ("net: stmmac: add clocks management for gmac driver"),
we now let 'pm_runtime_put()' disable the clocks before returning from
'stmmac_dvr_probe()'.

This causes a crash when 'rgmii_dump()' register dumps are enabled,
as the clocks are already off.

Since other dwmac drivers (possible future users as well) might
require a similar register dump feature, introduce a platform level
callback to allow the same.

This fixes the crash noticed while enabling rgmii_dump() dumps in
dwmac-qcom-ethqos driver as well. It also allows future changes
to keep a invoking the register dump callback from the correct
place inside 'stmmac_dvr_probe()'.

Fixes: 5ec5582343 ("net: stmmac: add clocks management for gmac driver")
Cc: Joakim Zhang <qiangqing.zhang@nxp.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-30 11:57:58 +00:00
..
2021-11-23 19:13:00 +01:00
2021-11-12 10:19:09 -08:00
2021-11-17 10:36:15 -05:00
2021-11-17 10:36:35 -05:00
2021-11-15 07:53:10 -08:00
2021-11-23 12:18:48 +00:00
2021-11-10 21:16:56 +00:00
2021-11-16 19:07:53 -08:00
2021-11-17 10:36:35 -05:00
2021-11-16 19:07:54 -08:00
2021-11-25 21:03:31 -08:00
2021-11-16 13:10:34 +00:00