MLK-16805 - [i.MX8MQ/Hantro]: Enable runtime bus frequency
authorZhou Peng-B04994 <eagle.zhou@nxp.com>
Mon, 13 Nov 2017 04:00:38 +0000 (12:00 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:46:53 +0000 (15:46 -0500)
Add operation to request/release bus in runtime suspend/resume functions

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
drivers/mxc/hantro/hantrodec.c

index 25d77fb..14f6fad 100755 (executable)
@@ -47,6 +47,7 @@
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/clk.h>
+#include <linux/busfreq-imx.h>
 
 #ifdef CONFIG_DEVICE_THERMAL
 #include <linux/device_cooling.h>
@@ -1816,13 +1817,13 @@ static int hantro_resume(struct device *dev)
 }
 static int hantro_runtime_suspend(struct device *dev)
 {
-       //release_bus_freq(BUS_FREQ_HIGH);
+       release_bus_freq(BUS_FREQ_HIGH);
        return 0;
 }
 
 static int hantro_runtime_resume(struct device *dev)
 {
-       //request_bus_freq(BUS_FREQ_HIGH);
+       request_bus_freq(BUS_FREQ_HIGH);
        hantro_ctrlblk_reset(dev);
        return 0;
 }