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.]
show more ...
media: Explicitly include correct DT includesThe DT of_device.h and of_platform.h date back to the separateof_platform_bus_type before it as merged into the regular platform bus.As part of that m
media: Explicitly include correct DT includesThe DT of_device.h and of_platform.h date back to the separateof_platform_bus_type before it as merged into the regular platform bus.As part of that merge prepping Arm DT support 13 years ago, they"temporarily" include each other. They also include platform_device.hand of.h. As a result, there's a pretty much random mix of those includefiles used throughout the tree. In order to detangle these headers andreplace the implicit includes with struct declarations, users need toexplicitly include the correct includes.Signed-off-by: Rob Herring <robh@kernel.org>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: sun8i_rotate: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do
media: sun8i_rotate: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error handling byreturning an error code. However the value returned is (mostly) ignoredand this typically results in resource leaks. To improve here there is aquest to make the remove callback return void. In the first step of thisquest all drivers are converted to .remove_new() which already returnsvoid.Trivially convert this driver from always returning zero in the removecallback to the void returning variant.Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
media: sun8i-rotate: Add a Kconfig dependency on RESET_CONTROLLERThe driver relies on the reset controller API to work, so addRESET_CONTROLLER as one of its Kconfig dependencies.Fixes: d77182ada
media: sun8i-rotate: Add a Kconfig dependency on RESET_CONTROLLERThe driver relies on the reset controller API to work, so addRESET_CONTROLLER as one of its Kconfig dependencies.Fixes: d77182ada3d4 ("media: sun8i: Add Allwinner A83T Rotate driver")Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
media: Kconfig: cleanup VIDEO_DEV dependenciesmedia Kconfig has two entries associated to V4L API:VIDEO_DEV and VIDEO_V4L2.On Kernel 2.6.x, there were two V4L APIs, each one with its own flag.V
media: Kconfig: cleanup VIDEO_DEV dependenciesmedia Kconfig has two entries associated to V4L API:VIDEO_DEV and VIDEO_V4L2.On Kernel 2.6.x, there were two V4L APIs, each one with its own flag.VIDEO_DEV were meant to: 1) enable Video4Linux and make its Kconfig options to appear; 2) it makes the Kernel build the V4L core.while VIDEO_V4L2 where used to distinguish between drivers thatimplement the newer API and drivers that implemented the former one.With time, such meaning changed, specially after the removal ofall V4L version 1 drivers.At the current implementation, VIDEO_DEV only does (1): it enablesthe media options related to V4L, that now has: menu "Video4Linux options" visible if VIDEO_DEV source "drivers/media/v4l2-core/Kconfig" endmenubut it doesn't affect anymore the V4L core drivers.The rationale is that the V4L2 core has a "soft" dependencyat the I2C bus, and now requires to select a number of otherKconfig options: config VIDEO_V4L2 tristate depends on (I2C || I2C=n) && VIDEO_DEV select RATIONAL select VIDEOBUF2_V4L2 if VIDEOBUF2_CORE default (I2C || I2C=n) && VIDEO_DEVIn the past, merging them would be tricky, but it seems that it is nowpossible to merge those symbols, in order to simplify V4L dependencies.Let's keep VIDEO_DEV, as this one is used on some make *defconfigconfigurations.Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> # for meson-vdec & meson-ge2dAcked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>Acked-by: Łukasz Stelmach <l.stelmach@samsung.com>Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
media: platform: sun8i-rotate: move config to its own fileIn order to better organize the platform/Kconfig, placesun8i-rotate-specific config stuff on a separate Kconfig file.Acked-by: Jernej Sk
media: platform: sun8i-rotate: move config to its own fileIn order to better organize the platform/Kconfig, placesun8i-rotate-specific config stuff on a separate Kconfig file.Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
media: sunxi: fix pm_runtime_get_sync() usage countThe pm_runtime_get_sync() internally increments thedev->power.usage_count without decrementing it, even on errors.Replace it by the new pm_runti
media: sunxi: fix pm_runtime_get_sync() usage countThe pm_runtime_get_sync() internally increments thedev->power.usage_count without decrementing it, even on errors.Replace it by the new pm_runtime_resume_and_get(), introduced by:commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")in order to properly decrement the usage counter, avoidinga potential PM usage counter leak.Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
media: sunxi: sun8i-rotate.c: remove useless error messageThis fixes the following coccinelle report:drivers/media/platform/sunxi/sun8i-rotate/sun8i_rotate.c:751:2-9:line 751 is redundant becaus
media: sunxi: sun8i-rotate.c: remove useless error messageThis fixes the following coccinelle report:drivers/media/platform/sunxi/sun8i-rotate/sun8i_rotate.c:751:2-9:line 751 is redundant because platform_get_irq() already prints an errorBy removing the useless call to dev_err()Found using - Coccinelle (http://coccinelle.lip6.fr)Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
media: sun8i: Add Allwinner A83T Rotate driverAllwinner A83T contains rotation core which can rotate and flip images.Add a driver for it.Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
media: sun8i: Add Allwinner A83T Rotate driverAllwinner A83T contains rotation core which can rotate and flip images.Add a driver for it.Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>[hverkuil-cisco@xs4all.nl: MAINTAINERS paths were out of date, fix that][hverkuil-cisco@xs4all.nl: VFL_TYPE_GRABBER -> _VIDEO][hverkuil-cisco@xs4all.nl: Fix module build]Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>