android_kernel_samsung_sm8650/drivers/media
Bryan O'Donoghue 3166c3af55 media: qcom: camss: Fix pm_domain_on sequence in probe
commit 7405116519ad70b8c7340359bfac8db8279e7ce4 upstream.

We need to make sure camss_configure_pd() happens before
camss_register_entities() as the vfe_get() path relies on the pointer
provided by camss_configure_pd().

Fix the ordering sequence in probe to ensure the pointers vfe_get() demands
are present by the time camss_register_entities() runs.

In order to facilitate backporting to stable kernels I've moved the
configure_pd() call pretty early on the probe() function so that
irrespective of the existence of the old error handling jump labels this
patch should still apply to -next circa Aug 2023 to v5.13 inclusive.

Fixes: 2f6f8af672 ("media: camss: Refactor VFE power domain toggling")
Cc: stable@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:07:20 +00:00
..
cec media: cec: meson: always include meson sub-directory in Makefile 2023-11-20 11:52:15 +01:00
common media: vb2: frame_vector.c: replace WARN_ONCE with a comment 2023-10-06 14:56:56 +02:00
dvb-core media: dvb-core: Fix use-after-free due to race condition at dvb_ca_en50221 2023-06-09 10:34:13 +02:00
dvb-frontends media: dvb: symbol fixup for dvb_attach() 2023-09-13 09:43:01 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: ccs: Correctly initialise try compose rectangle 2023-11-28 17:07:19 +00:00
mc media: mc: Get media_device directly from pad 2023-03-10 09:33:42 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: cobalt: Use FIELD_GET() to extract Link Width 2023-11-28 17:07:02 +00:00
platform media: qcom: camss: Fix pm_domain_on sequence in probe 2023-11-28 17:07:20 +00:00
radio media: radio-shark: Add endpoint checks 2023-05-30 14:03:20 +01:00
rc media: sharp: fix sharp encoding 2023-11-28 17:07:19 +00: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: tuners: qt1010: replace BUG_ON with a regular error 2023-09-23 11:11:06 +02:00
usb media: gspca: cpia1: shift-out-of-bounds in set_flicker 2023-11-28 17:07:02 +00:00
v4l2-core media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link() 2023-09-13 09:42:49 +02: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