msm: camera: sensor: Change return code when rejecting packet

When rejecting request that is flushed, return invalid error
desc as opposed to invalid argument.

CRs-Fixed: 3079337
Change-Id: I25ba7c3a9ae62958687a3c2fa69f530397596d0b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
This commit is contained in:
Karthik Anantha Ram
2021-11-16 14:00:11 -08:00
parent fdd4d2fbb1
commit d4b9fa4158
3 changed files with 3 additions and 3 deletions

View File

@@ -490,7 +490,7 @@ int32_t cam_actuator_i2c_pkt_parse(struct cam_actuator_ctrl_t *a_ctrl,
CAM_DBG(CAM_ACTUATOR,
"reject request %lld, last request to flush %lld",
csl_packet->header.request_id, a_ctrl->last_flush_req);
rc = -EINVAL;
rc = -EBADR;
goto end;
}

View File

@@ -996,7 +996,7 @@ int cam_flash_i2c_pkt_parser(struct cam_flash_ctrl *fctrl, void *arg)
CAM_DBG(CAM_FLASH,
"reject request %lld, last request to flush %lld",
csl_packet->header.request_id, fctrl->last_flush_req);
return -EINVAL;
return -EBADR;
}
if (csl_packet->header.request_id > fctrl->last_flush_req)

View File

@@ -168,7 +168,7 @@ static int32_t cam_sensor_i2c_pkt_parse(struct cam_sensor_ctrl_t *s_ctrl,
CAM_ERR(CAM_SENSOR,
"reject request %lld, last request to flush %u",
csl_packet->header.request_id, s_ctrl->last_flush_req);
rc = -EINVAL;
rc = -EBADR;
goto end;
}