msm: camera: req_mgr: Allow request cancellation if not applied to IFE

Since we don't wait for requests to be ready on lower pd devices before
applying request on higher pd devices, add provision to cancel request
if it has not been applied on IFE.

CRs-Fixed: 3014942
Change-Id: I8850b0dfe3f88e04b86f7bb6b597657ad7e0a4f9
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
这个提交包含在:
Anand Ravi
2021-09-15 20:51:29 -07:00
父节点 d7eb296004
当前提交 0417e88967
修改 4 个文件,包含 136 行新增60 行删除

查看文件

@@ -3753,7 +3753,8 @@ static int __cam_isp_ctx_flush_req(struct cam_context *ctx,
if (list_empty(req_list)) {
CAM_DBG(CAM_ISP, "request list is empty");
if (flush_req->type == CAM_REQ_MGR_FLUSH_TYPE_CANCEL_REQ) {
CAM_ERR(CAM_ISP, "no request to cancel");
CAM_INFO(CAM_ISP, "no request to cancel (last applied:%lld cancel:%lld)",
ctx_isp->last_applied_req_id, flush_req->req_id);
return -EINVAL;
} else
return 0;