From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53508155747; Wed, 5 Feb 2025 14:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738767313; cv=none; b=hchVhySljHOV1AydG/5cUc/aGpyy6AL2xTw1J3zCGTh7xJniZvakLTsHd5TTSWviaRbi4Hn1GeFjnQnMoZeTSjggU7O+3L2iT9PwSdm1JOOCOTp1eV6GqepP2fbP3gNhmStAc/pj5+b/BGCV3QrNpSUWGgvcEFGawDyZwZlpSBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738767313; c=relaxed/simple; bh=zdjufYvF+M96yn8xRcsvm5XYc1Iflg/daaJi4ixZMrU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I42hjTJQ1Xz4q7c0YpKhkIfWCDWe6ZVgOEbGxsEHrgoA4ixnHynjzWfD8dL2aZtyFiYwvmPjfRQKUbEYdVBUhKAL1qP32Josx6CAzc7Ng4qeLViIny3uvJw0bsichfvX8eQUO5iGizXZIWhyNSWvOCPH5pb795NxIaXsnu6EZc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hRTWJAXN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hRTWJAXN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65CB2C4CEDD; Wed, 5 Feb 2025 14:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738767312; bh=zdjufYvF+M96yn8xRcsvm5XYc1Iflg/daaJi4ixZMrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hRTWJAXNroTY0wEq/xSiasFzrHB1VL7Invw9vsv6Zy2nVwB0LLTXy3thyJkNWT617 1IexczBAIOz8r2HQ/j7uqOT4IlPzSRhahkXkYCfTH7E+oMDfv2AfNsR3kNDGKaxE05 vNOksBmWrBDqObnTHHboyFY75B+C2wY9LNsY7Onc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Laurentiu Palcu , Laurent Pinchart , Hans Verkuil , Sasha Levin Subject: [PATCH 6.12 420/590] media: nxp: imx8-isi: fix v4l2-compliance test errors Date: Wed, 5 Feb 2025 14:42:55 +0100 Message-ID: <20250205134511.334673512@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134455.220373560@linuxfoundation.org> References: <20250205134455.220373560@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laurentiu Palcu [ Upstream commit 7b12ab055edef2f51733d155617a401a05237bcc ] Running the v4l2-compliance (1.27.0-5208, SHA: af114250d48d) on the m2m device fails on the MMAP streaming tests, with the following messages: fail: v4l2-test-buffers.cpp(240): g_field() == V4L2_FIELD_ANY fail: v4l2-test-buffers.cpp(1508): buf.qbuf(node) Apparently, the driver does not properly set the field member of vb2_v4l2_buffer struct, returning the default V4L2_FIELD_ANY value which is against the guidelines. Fixes: cf21f328fcaf ("media: nxp: Add i.MX8 ISI driver") Signed-off-by: Laurentiu Palcu Reviewed-by: Laurent Pinchart Link: https://lore.kernel.org/r/20240924103304.124085-1-laurentiu.palcu@oss.nxp.com Signed-off-by: Laurent Pinchart Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c index 4091f1c0e78bd..a71eb30323c8d 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c @@ -861,6 +861,7 @@ int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2 const struct mxc_isi_format_info *info, const struct v4l2_pix_format_mplane *pix) { + struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb2); unsigned int i; for (i = 0; i < info->mem_planes; i++) { @@ -875,6 +876,8 @@ int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2 vb2_set_plane_payload(vb2, i, size); } + v4l2_buf->field = pix->field; + return 0; } -- 2.39.5