From 0960fd0572f62de60f4125d9c06fe19f266fad76 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Fri, 23 Apr 2021 10:48:52 -0700 Subject: [PATCH] drivers: thermal: qmi_cooling: Add new cooling device support Add support for new qmi mitigation devices. The list of new qmi mitigation devices are, modem_lte_dsc modem_nr_dsc modem_nr_scg_dsc sdr0_lte_dsc sdr1_lte_dsc sdr0_nr_dsc sdr1_nr_dsc pa_sdr0_dsc pa_sdr1_dsc pa_fr1_sdr0_dsc pa_fr1_sdr1_dsc pa_fr1_sdr0_scg_dsc pa_fr1_sdr1_scg_dsc mmw0_dsc mmw1_dsc mmw2_dsc mmw3_dsc mmw_ul_throttling_dsc mmw_ific_dsc This will enable these mitigation devices to be registered as cooling devices. Change-Id: I56baf9437c975e81d2c9b5e7014a63bc0ea09c4b Signed-off-by: Ram Chandrasekar --- drivers/thermal/qcom/qmi_cooling.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/qcom/qmi_cooling.c b/drivers/thermal/qcom/qmi_cooling.c index adf68228b7f5..8637ae0a8d1e 100644 --- a/drivers/thermal/qcom/qmi_cooling.c +++ b/drivers/thermal/qcom/qmi_cooling.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved. */ #define pr_fmt(fmt) "%s:%s " fmt, KBUILD_MODNAME, __func__ @@ -76,7 +76,26 @@ static char device_clients[][QMI_CLIENT_NAME_LENGTH] = { {"cdsp_sw"}, {"cdsp_hw"}, {"cpuv_restriction_cold"}, - {"cpr_cold"} + {"cpr_cold"}, + {"modem_lte_dsc"}, + {"modem_nr_dsc"}, + {"modem_nr_scg_dsc"}, + {"sdr0_lte_dsc"}, + {"sdr1_lte_dsc"}, + {"sdr0_nr_dsc"}, + {"sdr1_nr_dsc"}, + {"pa_sdr0_dsc"}, + {"pa_sdr1_dsc"}, + {"pa_fr1_sdr0_dsc"}, + {"pa_fr1_sdr1_dsc"}, + {"pa_fr1_sdr0_scg_dsc"}, + {"pa_fr1_sdr1_scg_dsc"}, + {"mmw0_dsc"}, + {"mmw1_dsc"}, + {"mmw2_dsc"}, + {"mmw3_dsc"}, + {"mmw_ul_throttling_dsc"}, + {"mmw_ific_dsc"}, }; static int qmi_get_max_state(struct thermal_cooling_device *cdev,