media: coda: Add system resume interfaceWhen the system goes into sleep mode, the dependentpower will be turned off, so when the system resumes,coda_hw_init() needs to be called, otherwise it wil
media: coda: Add system resume interfaceWhen the system goes into sleep mode, the dependentpower will be turned off, so when the system resumes,coda_hw_init() needs to be called, otherwise it willget 'CODA PIC_RUN timeout' after resuming.Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
Merge tag 'v6.12-rc7' into __tmp-hansg-linux-tags_media_atomisp_6_13_1Linux 6.12-rc7* tag 'v6.12-rc7': (1909 commits) Linux 6.12-rc7 filemap: Fix bounds checking in filemap_read() i2c: desi
Merge tag 'v6.12-rc7' into __tmp-hansg-linux-tags_media_atomisp_6_13_1Linux 6.12-rc7* tag 'v6.12-rc7': (1909 commits) Linux 6.12-rc7 filemap: Fix bounds checking in filemap_read() i2c: designware: do not hold SCL low when I2C_DYNAMIC_TAR_UPDATE is not set mailmap: add entry for Thorsten Blum ocfs2: remove entry once instead of null-ptr-dereference in ocfs2_xa_remove() signal: restore the override_rlimit logic fs/proc: fix compile warning about variable 'vmcore_mmap_ops' ucounts: fix counter leak in inc_rlimit_get_ucounts() selftests: hugetlb_dio: check for initial conditions to skip in the start mm: fix docs for the kernel parameter ``thp_anon=`` mm/damon/core: avoid overflow in damon_feed_loop_next_input() mm/damon/core: handle zero schemes apply interval mm/damon/core: handle zero {aggregation,ops_update} intervals mm/mlock: set the correct prev on failure objpool: fix to make percpu slot allocation more robust mm/page_alloc: keep track of free highatomic bcachefs: Fix UAF in __promote_alloc() error path bcachefs: Change OPT_STR max to be 1 less than the size of choices array bcachefs: btree_cache.freeable list fixes bcachefs: check the invalid parameter for perf test ...
media: platform: drop vb2_ops_wait_prepare/finishSince commit 88785982a19d ("media: vb2: use lock if wait_prepare/finishare NULL") it is no longer needed to set the wait_prepare/finishvb2_ops cal
media: platform: drop vb2_ops_wait_prepare/finishSince commit 88785982a19d ("media: vb2: use lock if wait_prepare/finishare NULL") it is no longer needed to set the wait_prepare/finishvb2_ops callbacks as long as the lock field in vb2_queue is set.Since the vb2_ops_wait_prepare/finish callbacks already rely on that field,we can safely drop these callbacks.This simplifies the code and this is a step towards the goal of deletingthese callbacks.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> # for meson-ge2dAcked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
media: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forpla
media: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forplatform drivers.Convert all platform drivers below drivers/media to use .remove(), withthe eventual goal to drop struct platform_driver::remove_new(). As.remove() and .remove_new() have the same prototypes, conversion is doneby just changing the structure member name in the driver initializer.Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-specific in that header.auto-generated by the following:for i in `git grep -l -w asm/unaligned.h`; do sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $idonefor i in `git grep -l -w asm-generic/unaligned.h`; do sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $idonegit mv include/asm-generic/unaligned.h include/linux/unaligned.hgit mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.hsed -i -e "/unaligned.h/d" include/asm-generic/Kbuildsed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
media: coda: cast an operand of multiplication to a larger typeIf the width and height are 0xffff (or close), the result of amultiplication will overflow.Cast to a larger type to avoid undefined
media: coda: cast an operand of multiplication to a larger typeIf the width and height are 0xffff (or close), the result of amultiplication will overflow.Cast to a larger type to avoid undefined behavior.Such values are possible in CODA7, but unlikely.Found by Linux Verification Center (linuxtesting.org) with SVACE.Fixes: 918c66fd4126 ("[media] coda: add CODA7541 decoding support")Signed-off-by: Anastasia Belova <abelova@astralinux.ru>Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: videobuf2: core: Rename min_buffers_needed field in vb2_queueRename min_buffers_needed into min_queued_buffers and updatethe documentation about it.Signed-off-by: Benjamin Gaignard <benja
media: videobuf2: core: Rename min_buffers_needed field in vb2_queueRename min_buffers_needed into min_queued_buffers and updatethe documentation about it.Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>[hverkuil: Drop the change where min_queued_buffers + 1 buffers would be][hverkuil: allocated. Now this patch only renames this field instead of making][hverkuil: a functional change as well.][hverkuil: Renamed 3 remaining min_buffers_needed occurrences.]
media: coda: Stop direct calls to queue num_buffers fieldUse vb2_get_num_buffers() to avoid using queue num_buffers field directly.This allows us to change how the number of buffers is computed in
media: coda: Stop direct calls to queue num_buffers fieldUse vb2_get_num_buffers() to avoid using queue num_buffers field directly.This allows us to change how the number of buffers is computed in thefuture.Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>CC: Philipp Zabel <p.zabel@pengutronix.de>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
media: platform: chips-media: Move Coda to separate folderPrepare the folder structure for a second Chips&Media driver.Move the Coda driver to a sub-directory.Signed-off-by: Sebastian Fricke <se
media: platform: chips-media: Move Coda to separate folderPrepare the folder structure for a second Chips&Media driver.Move the Coda driver to a sub-directory.Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>