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>
This commit is contained in:
Anand Ravi
2021-09-15 20:51:29 -07:00
förälder d7eb296004
incheckning 0417e88967
4 ändrade filer med 136 tillägg och 60 borttagningar

Visa fil

@@ -468,7 +468,7 @@ static int __cam_custom_ctx_flush_req(struct cam_context *ctx,
if (list_empty(req_list)) {
CAM_DBG(CAM_CUSTOM, "request list is empty");
if (flush_req->type == CAM_REQ_MGR_FLUSH_TYPE_CANCEL_REQ) {
CAM_ERR(CAM_CUSTOM, "no request to cancel");
CAM_INFO(CAM_CUSTOM, "no request to cancel (req:%lld)", flush_req->req_id);
return -EINVAL;
} else {
return 0;