linux-stable/drivers/media
Laurent Pinchart e2c545b841 media: mc: Expand MUST_CONNECT flag to always require an enabled link
[ Upstream commit b3decc5ce7 ]

The MEDIA_PAD_FL_MUST_CONNECT flag indicates that the pad requires an
enabled link to stream, but only if it has any link at all. This makes
little sense, as if a pad is part of a pipeline, there are very few use
cases for an active link to be mandatory only if links exist at all. A
review of in-tree drivers confirms they all need an enabled link for
pads marked with the MEDIA_PAD_FL_MUST_CONNECT flag.

Expand the scope of the flag by rejecting pads that have no links at
all. This requires modifying the pipeline build code to add those pads
to the pipeline.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-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:19:25 +02:00
..
cec media: cec: meson: always include meson sub-directory in Makefile 2023-11-20 11:52:15 +01:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:20:46 -04:00
dvb-core media: edia: dvbdev: fix a use-after-free 2024-03-26 18:20:46 -04:00
dvb-frontends media: dvb-frontends: avoid stack overflow warnings with clang 2024-03-26 18:20:51 -04:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:20:45 -04:00
mc media: mc: Expand MUST_CONNECT flag to always require an enabled link 2024-04-03 15:19:25 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: ddbridge: fix an error code problem in ddb_probe 2024-02-05 20:12:56 +00:00
platform media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:20:51 -04:00
radio media: radio-shark: Add endpoint checks 2023-05-30 14:03:20 +01:00
rc media: rc: bpf attach/detach requires write permission 2024-02-23 09:12:41 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 17:07:02 +00:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-03 15:19:25 +02:00
usb media: go7007: fix a memleak in go7007_load_encoder 2024-03-26 18:20:51 -04:00
v4l2-core media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-03-26 18:20:46 -04:00
Kconfig media: remove reference to CONFIG_EMBEDDED in MEDIA_SUPPORT_FILTER 2022-09-08 18:19:29 +02:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00