Sibi Sankar
aad41f4c16
soc: qcom: icc-bwmon: Fix refcount imbalance seen during bwmon_remove
[ Upstream commit 24086640ab39396eb1a92d1cb1cd2f31b2677c52 ]
The following warning is seen during bwmon_remove due to refcount
imbalance, fix this by releasing the OPPs after use.
Logs:
WARNING: at drivers/opp/core.c:1640 _opp_table_kref_release+0x150/0x158
Hardware name: Qualcomm Technologies, Inc. X1E80100 CRD (DT)
...
Call trace:
_opp_table_kref_release+0x150/0x158
dev_pm_opp_remove_table+0x100/0x1b4
devm_pm_opp_of_table_release+0x10/0x1c
devm_action_release+0x14/0x20
devres_release_all+0xa4/0x104
device_unbind_cleanup+0x18/0x60
device_release_driver_internal+0x1ec/0x228
driver_detach+0x50/0x98
bus_remove_driver+0x6c/0xbc
driver_unregister+0x30/0x60
platform_driver_unregister+0x14/0x20
bwmon_driver_exit+0x18/0x524 [icc_bwmon]
__arm64_sys_delete_module+0x184/0x264
invoke_syscall+0x48/0x118
el0_svc_common.constprop.0+0xc8/0xe8
do_el0_svc+0x20/0x2c
el0_svc+0x34/0xdc
el0t_64_sync_handler+0x13c/0x158
el0t_64_sync+0x190/0x194
--[ end trace 0000000000000000 ]---
Fixes: 0276f69f13 ("soc: qcom: icc-bwmon: Set default thresholds dynamically")
Fixes: b9c2ae6cac ("soc: qcom: icc-bwmon: Add bandwidth monitoring driver")
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240613164506.982068-1-quic_sibis@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:53:28 +02:00
..
2024-06-12 11:12:52 +02:00
2024-06-12 11:11:18 +02:00
2024-07-25 09:50:40 +02:00
2023-08-22 15:50:57 +02:00
2024-05-25 16:22:54 +02:00
2024-07-05 09:34:04 +02:00
2024-02-16 19:10:49 +01:00
2023-08-30 13:34:34 -07:00
2024-07-11 12:49:20 +02:00
2024-07-25 09:50:43 +02:00
2024-07-25 09:50:53 +02:00
2024-04-13 13:07:38 +02:00
2024-03-01 13:35:08 +01:00
2024-07-11 12:49:10 +02:00
2024-07-18 13:21:19 +02:00
2024-07-11 12:49:19 +02:00
2024-04-03 15:28:50 +02:00
2024-04-27 17:11:39 +02:00
2024-02-23 09:25:01 +01:00
2024-07-05 09:33:56 +02:00
2024-08-03 08:53:27 +02:00
2024-04-13 13:07:29 +02:00
2024-07-11 12:49:02 +02:00
2024-07-05 09:34:07 +02:00
2023-08-24 16:20:30 -07:00
2024-02-05 20:14:15 +00:00
2024-06-27 13:49:09 +02:00
2024-06-21 14:38:40 +02:00
2024-08-03 08:53:19 +02:00
2024-06-12 11:12:27 +02:00
2024-05-17 12:02:30 +02:00
2024-07-25 09:50:40 +02:00
2024-06-12 11:12:23 +02:00
2023-08-22 15:51:33 +02:00
2024-07-25 09:50:50 +02:00
2024-08-03 08:53:23 +02:00
2024-06-21 14:38:48 +02:00
2024-07-25 09:50:44 +02:00
2023-11-20 11:59:08 +01:00
2024-05-17 12:02:17 +02:00
2024-08-03 08:53:23 +02:00
2024-06-21 14:38:43 +02:00
2024-07-18 13:21:27 +02:00
2024-06-16 13:47:46 +02:00
2024-01-25 15:35:12 -08:00
2024-07-18 13:21:20 +02:00
2024-07-11 12:49:03 +02:00
2024-07-25 09:50:50 +02:00
2024-06-12 11:12:18 +02:00
2024-06-27 13:49:03 +02:00
2024-07-05 09:34:01 +02:00
2023-10-23 09:39:46 +01:00
2024-07-11 12:49:02 +02:00
2024-06-12 11:11:47 +02:00
2024-02-05 20:14:31 +00:00
2023-11-28 17:20:05 +00:00
2024-08-03 08:53:22 +02:00
2024-07-11 12:49:19 +02:00
2024-08-03 08:53:27 +02:00
2024-03-26 18:19:55 -04:00
2024-07-25 09:50:45 +02:00
2024-07-05 09:33:55 +02:00
2024-08-03 08:53:27 +02:00
2023-08-28 13:36:24 -05:00
2024-07-27 11:34:11 +02:00
2024-07-11 12:49:21 +02:00
2024-03-26 18:19:48 -04:00
2023-11-20 11:59:19 +01:00
2024-08-03 08:53:22 +02:00
2024-07-18 13:21:21 +02:00
2024-07-25 09:50:57 +02:00
2024-08-03 08:53:27 +02:00
2024-01-31 16:18:52 -08:00
2024-01-20 11:51:48 +01:00
2024-07-05 09:34:01 +02:00
2023-11-20 11:59:31 +01:00
2024-07-25 09:50:55 +02:00
2024-06-12 11:12:14 +02:00
2024-07-05 09:33:54 +02:00
2024-08-03 08:53:20 +02:00
2024-07-18 13:21:22 +02:00
2024-02-05 20:14:15 +00:00
2024-06-27 13:49:03 +02:00
2024-04-03 15:28:19 +02:00
2024-06-27 13:49:07 +02:00
2024-08-03 08:53:23 +02:00
2024-06-27 13:49:09 +02:00
2024-06-21 14:38:47 +02:00
2024-01-20 11:51:44 +01:00
2024-01-31 16:18:50 -08:00
2024-05-17 12:01:55 +02:00
2024-07-25 09:50:51 +02:00
2023-08-28 13:36:24 -05:00
2024-07-25 09:50:53 +02:00
2024-05-17 12:02:33 +02:00
2024-08-03 08:53:28 +02:00
2024-06-12 11:12:15 +02:00
2024-08-03 08:53:19 +02:00
2024-06-21 14:38:40 +02:00
2024-06-27 13:49:01 +02:00
2024-06-12 11:12:17 +02:00
2024-05-17 12:02:15 +02:00
2024-07-25 09:50:53 +02:00
2024-07-11 12:49:07 +02:00
2024-06-21 14:38:25 +02:00
2024-07-18 13:21:21 +02:00
2024-07-18 13:21:10 +02:00
2024-05-17 12:02:17 +02:00
2024-07-27 11:34:09 +02:00
2024-07-05 09:33:50 +02:00
2024-07-18 13:21:10 +02:00
2024-07-11 12:49:20 +02:00
2024-06-16 13:47:37 +02:00
2024-06-12 11:12:09 +02:00
2024-06-12 11:12:49 +02:00
2024-05-17 12:01:55 +02:00
2024-06-16 13:47:43 +02:00
2024-06-12 11:12:51 +02:00
2023-09-08 11:24:34 -07:00
2023-09-13 11:09:21 +02:00