Bhupesh Sharma
b588858c09
net: stmmac: Add platform level debug register dump feature
...
[ Upstream commit 4047b9db1aa7512a10ba3560a3f63821c8c40235 ]
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 >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-01-27 11:03:21 +01:00
..
2021-11-18 19:17:06 +01:00
2022-01-27 11:02:57 +01:00
2021-09-07 12:38:59 -07:00
2021-12-08 09:04:54 +01:00
2022-01-27 11:02:49 +01:00
2021-09-03 16:20:37 -07:00
2021-09-20 12:43:34 +01:00
2021-11-25 09:48:24 +01:00
2021-11-25 09:49:07 +01:00
2021-09-07 14:02:58 -07:00
2021-10-14 12:47:29 +01:00
2021-09-04 10:25:26 -07:00
2021-11-18 19:15:59 +01:00
2021-11-06 14:13:30 +01:00
2021-12-08 09:04:41 +01:00
2021-10-07 16:51:57 +02:00
2021-09-03 10:08:28 -07:00
2021-11-21 13:44:13 +01:00
2021-09-09 19:14:33 -04:00
2021-10-26 12:35:16 -07:00
2021-11-18 19:16:20 +01:00
2021-12-14 10:57:09 +01:00
2021-09-24 16:13:35 -07:00
2021-11-18 19:17:21 +01:00
2021-09-13 16:35:58 -07:00
2021-09-13 16:35:58 -07:00
2021-09-03 09:58:17 -07:00
2021-09-08 15:32:35 -07:00
2021-09-13 10:43:04 -07:00
2021-09-12 16:09:26 -07:00
2021-09-13 10:18:28 -07:00
2021-09-13 10:43:04 -07:00
2021-12-29 12:28:49 +01:00
2021-11-18 19:16:03 +01:00
2021-09-11 00:41:21 +02:00
2021-11-18 19:16:45 +01:00
2021-10-18 20:22:03 -10:00
2021-09-21 17:34:53 +02:00
2021-09-08 11:50:24 -07:00
2021-12-14 10:57:11 +01:00
2021-09-03 10:34:44 -07:00
2021-11-18 19:16:00 +01:00
2021-11-25 09:48:41 +01:00
2022-01-05 12:42:34 +01:00
2021-10-18 20:22:03 -10:00
2021-09-07 21:17:28 +02:00
2021-10-05 12:38:39 +01:00
2021-11-18 19:17:06 +01:00
2022-01-11 15:35:16 +01:00
2021-09-06 07:20:56 -04:00
2021-12-14 10:57:09 +01:00
2021-11-18 19:16:25 +01:00
2022-01-20 09:13:13 +01:00
2021-11-25 09:49:08 +01:00
2022-01-11 15:35:11 +01:00
2021-09-23 19:26:54 +02:00
2021-10-15 21:02:50 -06:00
2021-12-14 10:57:05 +01:00
2021-09-08 11:50:24 -07:00
2021-09-08 18:45:53 -07:00
2021-12-29 12:28:49 +01:00
2021-09-03 10:44:35 -07:00
2021-11-25 09:48:42 +01:00
2021-12-29 12:28:42 +01:00
2021-09-22 14:29:32 +01:00
2021-11-18 19:16:13 +01:00
2021-11-12 15:05:49 +01:00
2021-12-08 09:04:41 +01:00
2021-09-23 11:01:12 -04:00
2021-09-06 06:30:45 -04:00
2021-11-18 19:15:51 +01:00
2021-11-12 15:05:48 +01:00
2021-11-12 15:05:48 +01:00
2021-09-19 12:08:37 +01:00
2022-01-05 12:42:33 +01:00
2021-09-03 10:08:28 -07:00
2021-09-08 11:50:23 -07:00
2021-10-18 20:22:02 -10:00
2021-09-03 09:58:17 -07:00
2021-12-14 10:57:22 +01:00
2021-09-24 16:13:35 -07:00
2021-09-07 11:03:45 -07:00
2021-09-16 13:05:42 -07:00
2022-01-27 11:03:00 +01:00
2021-11-18 19:17:14 +01:00
2021-12-08 09:04:49 +01:00
2021-11-18 19:17:02 +01:00
2021-09-14 09:02:50 +02:00
2021-09-07 12:27:27 -07:00
2021-09-08 11:50:25 -07:00
2021-09-13 10:18:28 -07:00
2021-09-17 13:52:17 +01:00
2021-09-08 11:50:24 -07:00
2021-09-08 11:50:24 -07:00
2021-10-28 17:18:55 -07:00
2021-09-08 12:55:35 -07:00
2021-09-07 19:13:42 -07:00
2021-09-07 19:13:42 -07:00
2021-11-21 13:44:14 +01:00
2022-01-20 09:13:14 +01:00
2021-09-07 14:04:59 +01:00
2021-09-20 22:28:47 +02:00
2021-12-14 10:57:16 +01:00
2021-11-18 19:17:14 +01:00
2021-11-25 09:48:45 +01:00
2021-10-07 16:51:57 +02:00
2021-11-18 19:16:58 +01:00
2021-10-01 13:57:57 +02:00
2021-10-18 20:22:03 -10:00
2021-11-12 15:05:48 +01:00
2021-11-18 19:17:12 +01:00
2021-11-18 19:16:01 +01:00
2021-12-08 09:04:47 +01:00
2021-11-25 09:49:08 +01:00
2021-11-18 19:16:45 +01:00
2021-09-04 10:22:01 +02:00
2022-01-27 11:03:21 +01:00
2021-11-21 13:44:12 +01:00
2021-09-03 09:58:17 -07:00
2021-09-09 13:25:49 -07:00
2021-12-29 12:28:54 +01:00
2021-09-08 11:50:28 -07:00
2021-09-08 17:44:26 +02:00
2021-11-18 19:16:41 +01:00
2021-11-25 09:48:34 +01:00
2021-10-18 18:12:09 -04:00
2021-09-22 10:24:01 -04:00
2021-09-08 15:32:35 -07:00
2021-09-15 09:22:35 -06:00
2021-09-08 12:55:35 -07:00
2021-10-18 16:02:30 -05:00
2021-09-03 09:58:16 -07:00
2021-09-06 07:20:57 -04:00
2021-09-06 07:20:57 -04:00
2021-12-29 12:28:43 +01:00
2021-09-03 09:58:16 -07:00
2021-09-08 11:50:24 -07:00
2021-09-03 09:58:17 -07:00
2021-12-14 10:57:15 +01:00
2021-09-13 07:53:27 -10:00
2021-09-03 10:08:28 -07:00