diff options
author | Suman Anna <s-anna@ti.com> | 2012-03-01 21:20:21 -0600 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 12:57:05 +0200 |
commit | 812a42bd9cdcc3fba0041b113633ae62c9178624 (patch) | |
tree | 178239ed010d0733148dd94530279847c5a4b6c2 /drivers/remoteproc | |
parent | 966bf78a92d25691952f0437b506a15ee682d756 (diff) | |
download | kernel_samsung_tuna-812a42bd9cdcc3fba0041b113633ae62c9178624.tar.gz kernel_samsung_tuna-812a42bd9cdcc3fba0041b113633ae62c9178624.tar.bz2 kernel_samsung_tuna-812a42bd9cdcc3fba0041b113633ae62c9178624.zip |
omap: remoteproc: handle latency constraints for non-ipu rprocs
The omap remoteproc code is incorrectly applying the latency
constraint on the CORE domain for all remote processors. This
would apply only for ipu, and the others need them to be applied
on their respective domains. This patch fixes the same.
Change-Id: I1768d78b7029366d05cb5df16a032de597e1e5f3
Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/omap_remoteproc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c index 5548917c6b1..5279293b92e 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c @@ -545,8 +545,15 @@ err: static int omap_rproc_set_lat(struct rproc *rproc, long val) { - pm_qos_update_request(rproc->qos_request, val); - return 0; + int ret = 0; + + if (!strcmp(rproc->name, "ipu")) + pm_qos_update_request(rproc->qos_request, val); + else + ret = omap_pm_set_max_dev_wakeup_lat(rproc->dev, + rproc->dev, val); + + return ret; } static int omap_rproc_set_l3_bw(struct rproc *rproc, long val) |