The Mali C55 driver uses the v4l2-isp framework, which performs validation of the parameters buffer versioning in the v4l2_isp_params_validate_buffer() function. It is not necessary to replicate the validation of the parameters buffer versioning in the platform-specific implementation. Remove it.
Unified · Split
| @@ -582,13 +582,6 @@ static int mali_c55_params_buf_prepare(struct vb2_buffer *vb) · 581 unmodified lines | |||
| 582 | struct mali_c55 *mali_c55 = params->mali_c55; | 582 | struct mali_c55 *mali_c55 = params->mali_c55; |
| 583 | int ret; | 583 | int ret; |
| 584 | 584 | ||
| 585 | if (config->version != MALI_C55_PARAM_BUFFER_V1) { | ||
| 586 | dev_dbg(mali_c55->dev, | ||
| 587 | "Unsupported extensible format version: %u\n", | ||
| 588 | config->version); | ||
| 589 | return -EINVAL; | ||
| 590 | } | ||
| 591 | |||
| 592 | ret = v4l2_isp_params_validate_buffer_size(mali_c55->dev, vb, | 585 | ret = v4l2_isp_params_validate_buffer_size(mali_c55->dev, vb, |
| 593 | v4l2_isp_params_buffer_size(MALI_C55_PARAMS_MAX_SIZE)); | 586 | v4l2_isp_params_buffer_size(MALI_C55_PARAMS_MAX_SIZE)); |
| 594 | if (ret) | 587 | if (ret) |