PM / devfreq: rk3399_dmc: Drop undocumented ondemand DT props
authorBrian Norris <briannorris@chromium.org>
Tue, 8 Mar 2022 19:08:52 +0000 (11:08 -0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Apr 2022 22:18:11 +0000 (07:18 +0900)
These properties are:

* undocumented
* directly representing software properties, not hardware properties
* unused (no in-tree users, yet; this IP block has so far only been used
  in downstream kernels)

Let's just stick the values that downstream users have been using
directly in the driver and call it a day.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/rk3399_dmc.c

index 293857ebfd75ddb56933b75a0aeb8bce94434d3e..e982862f6ac2586fa6b0d6475492fff9b003b42c 100644 (file)
@@ -430,10 +430,8 @@ no_pmu:
                goto err_edev;
        }
 
-       of_property_read_u32(np, "upthreshold",
-                            &data->ondemand_data.upthreshold);
-       of_property_read_u32(np, "downdifferential",
-                            &data->ondemand_data.downdifferential);
+       data->ondemand_data.upthreshold = 25;
+       data->ondemand_data.downdifferential = 15;
 
        data->rate = clk_get_rate(data->dmc_clk);