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>
show more ...
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>
media: pisp_be: add missing wait_prepare/finish opsWithout these ops the v4l2-compliance blocking wait test will fail.These ops are required to ensure that when VIDIOC_DQBUF has towait for buffer
media: pisp_be: add missing wait_prepare/finish opsWithout these ops the v4l2-compliance blocking wait test will fail.These ops are required to ensure that when VIDIOC_DQBUF has towait for buffers to arrive, the queue lock is correctly releasedand retaken. Otherwise the wait for a buffer would block all otherqueue ioctls.Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>Tested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
media: raspberrypi: VIDEO_RASPBERRYPI_PISP_BE should depend on ARCH_BCM2835Currently, the Raspberry Pi PiSP Backend (BE) ISP is only present on theBroadcom BCM2712-based Raspberry Pi 5. Hence add
media: raspberrypi: VIDEO_RASPBERRYPI_PISP_BE should depend on ARCH_BCM2835Currently, the Raspberry Pi PiSP Backend (BE) ISP is only present on theBroadcom BCM2712-based Raspberry Pi 5. Hence add a dependency onARCH_BCM2835, to prevent asking the user about this driver whenconfiguring a kernel without Broadcom BCM2835 family support. Thedependency can be relaxed if/when the encoder appears on other SoCfamilies.Fixes: 12187bd5d4f8 ("media: raspberrypi: Add support for PiSP BE")Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>Acked-by: FLorian Fainelli <florian.fainelli@broadcom.com>Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: raspberrypi: Switch to remove_newThe remove callback's return value is about to change from int to void,this is done by commit 0edb555a65d1 ("platform: Makeplatform_driver::remove() return
media: raspberrypi: Switch to remove_newThe remove callback's return value is about to change from int to void,this is done by commit 0edb555a65d1 ("platform: Makeplatform_driver::remove() return void"). Prepare for merging the patch byswitching the PiSP driver from remove to remove_new callback.Fixes: 12187bd5d4f8 ("media: raspberrypi: Add support for PiSP BE")Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Acked-by: Naushir Patuck <naush@raspberrypi.com>Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>Reviewed-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: raspberrypi: Add support for PiSP BEAdd support for the Raspberry Pi PiSP Back End.The driver has been upported from the Raspberry Pi kernel at revisionf74893f8a0c2 ("drivers: media: pisp
media: raspberrypi: Add support for PiSP BEAdd support for the Raspberry Pi PiSP Back End.The driver has been upported from the Raspberry Pi kernel at revisionf74893f8a0c2 ("drivers: media: pisp_be: Update seqeuence numbers of thebuffers").The ISP documentation is available at:https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdfSigned-off-by: David Plowman <david.plowman@raspberrypi.com>Signed-off-by: Naushir Patuck <naush@raspberrypi.com>Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.org>Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>[hverkuil: drop dev_err after platform_get_irq to fix a coccinelle check]