WSL2-Linux-Kernel/drivers/staging/media
Hidenori Kobayashi 0fa86b3b6a media: staging: ipu3-imgu: Set fields before media_entity_pads_init()
[ Upstream commit 87318b7092670d4086bfec115a0280a60c51c2dd ]

The imgu driver fails to probe with the following message because it
does not set the pad's flags before calling media_entity_pads_init().

[   14.596315] ipu3-imgu 0000:00:05.0: failed initialize subdev media entity (-22)
[   14.596322] ipu3-imgu 0000:00:05.0: failed to register subdev0 ret (-22)
[   14.596327] ipu3-imgu 0000:00:05.0: failed to register pipes (-22)
[   14.596331] ipu3-imgu 0000:00:05.0: failed to create V4L2 devices (-22)

Fix the initialization order so that the driver probe succeeds. The ops
initialization is also moved together for readability.

Fixes: a0ca1627b4 ("media: staging/intel-ipu3: Add v4l2 driver based on media framework")
Cc: <stable@vger.kernel.org> # 6.7
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Hidenori Kobayashi <hidenorik@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:18:33 +02:00
..
atomisp media: staging: atomisp: select V4L2_FWNODE 2023-08-03 10:22:33 +02:00
av7110 media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
hantro media: staging: media: hantro: Fix typos 2022-08-17 14:23:31 +02:00
imx media: imx: csc/scaler: fix v4l2_ctrl_handler memory leak 2024-03-26 18:21:28 -04:00
ipu3 media: staging: ipu3-imgu: Set fields before media_entity_pads_init() 2024-04-10 16:18:33 +02:00
meson/vdec media: meson: vdec: fix possible refcount leak in vdec_probe() 2022-11-10 18:15:34 +01:00
omap4iss media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
rkvdec media: rkvdec: increase max supported height for H.264 2023-09-19 12:22:44 +02:00
sunxi media: cedrus: Fix clock/reset sequence 2023-11-20 11:08:27 +01:00
tegra-vde media: staging: media: tegra-vde: add missing error return code in tegra_vde_probe() 2021-06-02 14:12:55 +02:00
tegra-video staging: media: tegra-video: fix device_node use after free 2023-01-12 11:58:55 +01:00
zoran media: staging: media: zoran: fix various V4L2 compliance errors 2022-04-08 14:23:58 +02:00
Kconfig media: av7110: move driver to staging 2021-06-02 11:17:03 +02:00
Makefile media: av7110: move driver to staging 2021-06-02 11:17:03 +02:00