linux-stable/drivers/staging
Hidenori Kobayashi 68dfc0f609 media: staging: ipu3-imgu: Set fields before media_entity_pads_init()
[ Upstream commit 87318b7092 ]

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-03 15:32:01 +02:00
..
axis-fifo
board
emxx_udc
fbtft Staging driver updates for 6.7-rc1 2023-11-03 15:31:04 -10:00
fieldbus staging: fieldbus: make controller_class constant 2023-10-06 15:38:17 +02:00
gdm724x staging: gdm724x: Add blank line after declaration 2023-10-21 12:00:24 +02:00
greybus staging: greybus: fix get_channel_from_mode() failure path 2024-03-26 18:17:30 -04:00
iio staging: iio: ad5933: fix type mismatch regression 2024-01-27 16:00:02 +00:00
ks7010 staging: ks7010: disable bh on tx_dev_lock 2023-10-05 09:58:12 +02:00
media media: staging: ipu3-imgu: Set fields before media_entity_pads_init() 2024-04-03 15:32:01 +02:00
most
nvec
octeon Revert "staging: octeon: remove typedef in enum cvmx_spi_mode_t" 2023-10-30 09:56:27 +01:00
olpc_dcon staging: olpc_dcon: Remove I2C_CLASS_DDC support 2023-10-27 13:10:05 +02:00
pi433 staging: pi433: make pi433_class constant 2023-10-06 15:38:34 +02:00
rtl8192e Staging: rtl8192e: Rename variable OpMode 2024-01-04 14:34:51 +01:00
rtl8712 staging: rtl8712: fix open parentheses alignment 2023-12-23 14:09:31 +01:00
rtl8723bs Staging driver updates for 6.7-rc1 2023-11-03 15:31:04 -10:00
rts5208 staging: rts5208: Remove macros scsi_lock(), scsi_unlock() 2023-10-15 18:20:35 +02:00
sm750fb staging/sm750fb: Initialize fb_ops with fbdev macros 2023-11-29 12:20:41 +01:00
vc04_services staging: vc04_services: vchiq_dev: Use %p to log pointer address 2023-12-09 15:06:35 +01:00
vme_user staging: vme_user: print more detailed infomation when an error occurs 2024-01-04 14:32:40 +01:00
vt6655 staging: vt6655: Type encoding info dropped from variable name "apTailTD" 2023-11-23 12:47:42 +00:00
vt6656
wlan-ng staging: wlan-ng: remove function prism2sta_ev_txexc 2023-10-17 15:43:52 +02:00
Kconfig staging: qlge: Retire the driver 2023-10-21 11:52:54 +02:00
Makefile staging: qlge: Retire the driver 2023-10-21 11:52:54 +02:00