msm: camera: Fix stream on error
When ISP stream is enabled or disable on the fly, the ioctl is blocked until there is a register update ack. If the ack does not come, the ioctl will timeout. The return value for sucessful case should be 0 instead of the jiffies remaining before timeout. Change-Id: Ie549b7a0b75160d3c96f336c8a6a072e35c1ab43 Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
907518561f
commit
cc4549c47e
@@ -881,6 +881,8 @@ int msm_isp_cfg_axi_stream(struct vfe_device *vfe_dev, void *arg)
|
||||
if (rc == 0) {
|
||||
pr_err("%s: wait timeout\n", __func__);
|
||||
rc = -1;
|
||||
} else {
|
||||
rc = 0;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user