* [PATCH v3] interconnect: imx: Add imx_icc_get_bw function to set initial avg and peak
@ 2022-01-06 17:05 Abel Vesa
0 siblings, 0 replies; only message in thread
From: Abel Vesa @ 2022-01-06 17:05 UTC (permalink / raw)
To: Georgi Djakov, Shawn Guo, Sascha Hauer, Fabio Estevam
Cc: Pengutronix Kernel Team, NXP Linux Team, linux-pm,
linux-arm-kernel, Linux Kernel Mailing List, devicetree
Set the initial avg and peak to 0 in order to avoid setting them to
INT_MAX by the interconnect core.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
---
Changes since v2:
* sent as a separate patch
* dropped the imx_icc_aggregate
drivers/interconnect/imx/imx.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c
index d5b36c478911..734807d8ccca 100644
--- a/drivers/interconnect/imx/imx.c
+++ b/drivers/interconnect/imx/imx.c
@@ -25,6 +25,14 @@ struct imx_icc_node {
struct dev_pm_qos_request qos_req;
};
+static int imx_icc_get_bw(struct icc_node *node, u32 *avg, u32 *peak)
+{
+ *avg = 0;
+ *peak = 0;
+
+ return 0;
+}
+
static int imx_icc_node_set(struct icc_node *node)
{
struct device *dev = node->provider->dev;
@@ -233,6 +241,7 @@ int imx_icc_register(struct platform_device *pdev,
if (!provider)
return -ENOMEM;
provider->set = imx_icc_set;
+ provider->get_bw = imx_icc_get_bw;
provider->aggregate = icc_std_aggregate;
provider->xlate = of_icc_xlate_onecell;
provider->data = data;
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-06 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 17:05 [PATCH v3] interconnect: imx: Add imx_icc_get_bw function to set initial avg and peak Abel Vesa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).