[git:media_stage/master] media: ov2680: Fix ov2680_bayer_order()

2023-08-09 Thread Mauro Carvalho Chehab
ers of ov2680_set_bayer_order() here] Fixes: 3ee47cad3e69 ("media: ov2680: Add Omnivision OV2680 sensor driver") Reviewed-by: Daniel Scally Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i

[git:media_stage/master] media: ov5640: Enable MIPI interface in ov5640_set_power_mipi()

2023-08-09 Thread Mauro Carvalho Chehab
bplay, sk-am62] Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov5640.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 2260dbb27d86..434d8c99e23d 100644 --- a/drivers

[git:media_stage/master] media: i2c: ds90ub960: Fix PLL config for 1200 MHz CSI rate

2023-08-09 Thread Mauro Carvalho Chehab
S90UB960 driver") Reported-by: Hans Verkuil Signed-off-by: Tomi Valkeinen Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ds90ub960.c | 1 + 1 file changed, 1 insertion(+) --- diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c

[git:media_stage/master] media: ov5640: Fix initial RESETB state and annotate timings

2023-08-09 Thread Mauro Carvalho Chehab
] add Omnivision OV5640 sensor driver") Reported-by: Jacopo Mondi Signed-off-by: Marek Vasut Reviewed-by: Jacopo Mondi Tested-by: Jai Luthra Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov5640.c | 11 --- 1 file changed, 4 insertions(+), 7

[git:media_stage/master] media: platform: ti: fix the return value handle for platform_get_irq()

2023-08-09 Thread Mauro Carvalho Chehab
the return value of platform_get_irq() is more sensible to show the error reason. Signed-off-by: Ruan Jinjie Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/ti/am437x/am437x-vpfe.c | 4 +--- drivers/media/platform/ti

[git:media_stage/master] media: ov2680: Remove auto-gain and auto-exposure controls

2023-08-09 Thread Mauro Carvalho Chehab
mnivision OV2680 sensor driver") Reviewed-by: Daniel Scally Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 161 + 1 file changed, 17 insertions(

[git:media_stage/master] media: ov2680: Fix vflip / hflip set functions

2023-08-09 Thread Mauro Carvalho Chehab
ision OV2680 sensor driver") Reviewed-by: Daniel Scally Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 50 +++--- 1 file changed, 12 inserti

[git:media_stage/master] media: ov2680: Add ov2680_fill_format() helper function

2023-08-09 Thread Mauro Carvalho Chehab
Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 49 +- 1 file changed, 27 insertions(+), 22 deletions(-) --- diff --git a/drivers/media/i2c/

[git:media_stage/master] media: Documentation: Fix [GS]_ROUTING documentation

2023-08-09 Thread Mauro Carvalho Chehab
'num_routes' and remove mention about non-existing streams, which is incorrect. Fixes: ea73eda50813 ("media: Documentation: Add GS_ROUTING documentation") Signed-off-by: Tomi Valkeinen Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Documentation/userspace-api/med

[git:media_stage/master] media: ov2680: Remove VIDEO_V4L2_SUBDEV_API ifdef-s

2023-08-09 Thread Mauro Carvalho Chehab
river") Reviewed-by: Daniel Scally Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) --- diff --git a/drivers/media/i2c/

[git:media_stage/master] media: ov2680: Add support for 19.2 MHz clock

2023-08-09 Thread Mauro Carvalho Chehab
24MHz, add support for this. Compensate for the lower clk by setting a higher PLL multiplier of 69 when using 19.2 MHz vs the default multiplier of 55 for a 24MHz xvclk. Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab

[git:media_stage/master] media: ov2680: Add support for more clk setups

2023-08-09 Thread Mauro Carvalho Chehab
cally Reviewed-by: Tommaso Merciai Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/i2c/ov2680

[git:media_stage/master] media: i2c: ds90ub913: Fix use of uninitialized variables

2023-08-09 Thread Mauro Carvalho Chehab
Tomi Valkeinen Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ds90ub913.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/i2c/ds90ub913.c b/drivers/media/i2c/ds90ub913.c index 85b664e33482..4bfa3b3cf619 100644 --- a/drive

[git:media_stage/master] media: ov2680: Don't take the lock for try_fmt calls

2023-08-09 Thread Mauro Carvalho Chehab
igned-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index 5c1f5dd4824a..e6e1

[git:media_stage/master] media: ov2680: Fix ov2680_enum_frame_interval()

2023-08-09 Thread Mauro Carvalho Chehab
: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index 0adfacc70735..a83efd4499

[git:media_stage/master] media: ov2680: Make setting the mode algorithm based

2023-08-09 Thread Mauro Carvalho Chehab
ort. This also adds properly programming the ISP window and setting the manual ISP window control bit in register 0x5708, this is necessary for the hflip and vflip conrols to work properly. Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Maur

[git:media_stage/master] media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors

2023-08-09 Thread Mauro Carvalho Chehab
ia: ov2680: Add Omnivision OV2680 sensor driver") Reviewed-by: Daniel Scally Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-

[git:media_stage/master] media: ov2680: Add ov2680_mode struct

2023-08-09 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index e7d2e555e1c6..76f97d053e45 100644 --- a/drivers/media/i2c/ov2680.c

[git:media_stage/master] media: ov2680: Add a bunch of register tweaks

2023-08-09 Thread Mauro Carvalho Chehab
guel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 53 ++ 1 file changed, 53 insertions(+) --- diff --git a/drivers/media/i2c/ov2680.c b/dri

[git:media_stage/master] media: ov2680: Fix ov2680_set_fmt() which == V4L2_SUBDEV_FORMAT_TRY not working

2023-08-09 Thread Mauro Carvalho Chehab
onfusion when reading the code. Fixes: 3ee47cad3e69 ("media: ov2680: Add Omnivision OV2680 sensor driver") Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680

[git:media_stage/master] media: ov2680: Convert to new CCI register access helpers

2023-08-09 Thread Mauro Carvalho Chehab
register access helpers in the ov2680 driver. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/ov2680.c | 224

[git:media_stage/master] media: ov2680: Check for "powerdown" GPIO con-id before checking for "reset" GPIO con-id

2023-08-09 Thread Mauro Carvalho Chehab
772x, ov7740, ov8858, ov8865 and ov9650 . Where as the hi846 driver is the lonely standout using "shutdown". Try the "powerdown" con-id first to make things work, falling back to "reset" to keep existing DT setups working. Acked-by: Rui Miguel Silva Reviewed-by: Danie

[git:media_stage/master] media: ov2680: Store dev instead of i2c_client in ov2680_dev

2023-08-09 Thread Mauro Carvalho Chehab
i2c_client after probe() is no longer necessary. Directly store a struct device *dev pointing to &client->dev inside ov2680_dev to make the code simpler. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro C

[git:media_stage/master] media: ov2680: Add link-freq and pixel-rate controls

2023-08-09 Thread Mauro Carvalho Chehab
sensor to work with the ipu3-cio2 driver and for libcamera. Acked-by: Rui Miguel Silva Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 24 1 file changed, 24 insertions(+) --- diff --git a

[git:media_stage/master] media: ov2680: Add runtime-pm support

2023-08-09 Thread Mauro Carvalho Chehab
: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 134 + 1 file changed, 61 insertions(+), 73 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index 9c5f4ac592d8..bc0ca2927370 100644

[git:media_stage/master] media: ov2680: Drop is_enabled flag

2023-08-09 Thread Mauro Carvalho Chehab
so that get_fmt returns the correct bayer-order. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 36 ++-- 1 file changed, 18

[git:media_stage/master] media: MAINTAINERS: Add Hans de Goede as OV2680 sensor driver maintainer

2023-08-09 Thread Mauro Carvalho Chehab
-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab MAINTAINERS | 1 + 1 file changed, 1 insertion(+) --- diff --git a/MAINTAINERS b/MAINTAINERS index 48e5e71afb13..9005cf3ce401 100644 --- a/MAINTAINERS

[git:media_stage/master] media: ov2680: Wait for endpoint fwnode before continuing with probe()

2023-08-09 Thread Mauro Carvalho Chehab
necessary on ACPI platforms where the bridge code creating the fwnodes may also e.g. set the "clock-frequency" device property and add GPIO mappings. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Maur

[git:media_stage/master] media: ov2680: Annotate the per mode register setting lists

2023-08-09 Thread Mauro Carvalho Chehab
Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 118 +++-- 1 file changed, 104 insertions(+), 14 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index a83efd449993..e7d2e555e1c6 100644 --- a

[git:media_stage/master] media: ov2680: Add support for ACPI enumeration

2023-08-09 Thread Mauro Carvalho Chehab
: Daniel Scally Signed-off-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 7 +++ 1 file changed, 7 insertions(+) --- diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index

[git:media_stage/master] media: ov2680: Fix exposure and gain ctrls range and default value

2023-08-09 Thread Mauro Carvalho Chehab
Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) --- diff --git a/drivers/media/i2c/ov2680.c b/dr

[git:media_stage/master] media: ov2680: Add an __ov2680_get_pad_format() helper function

2023-08-09 Thread Mauro Carvalho Chehab
preparation patch for adding selections support. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 26 -- 1 file changed, 16 insertions(+), 10

[git:media_stage/master] media: ov2680: Implement selection support

2023-08-09 Thread Mauro Carvalho Chehab
sizes smaller than crop-size through set_fmt() since that was already allowed. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 153

[git:media_stage/master] media: ov2680: Read and log sensor revision during probe

2023-08-09 Thread Mauro Carvalho Chehab
driver will now already log a message on successful probe drop the "ov2680 init correctly" log message. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2

[git:media_stage/master] media: ov2680: Add bus-cfg / endpoint property verification

2023-08-09 Thread Mauro Carvalho Chehab
endpoint fwnode are correct. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 60 -- 1 file changed, 47 insertions(+), 13 deletions(-) --- diff --git a/drivers/media/i2c

[git:media_stage/master] media: i2c: ccs: Check rules is non-NULL

2023-08-09 Thread Mauro Carvalho Chehab
eported-by: Hans Verkuil Fixes: a6b396f410b1 ("media: ccs: Add CCS static data parser library") Cc: sta...@vger.kernel.org # for 5.11 and up Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ccs/ccs-data.c | 101 ++-

[git:media_stage/master] media: ov2680: Drop unnecessary pad checks

2023-08-09 Thread Mauro Carvalho Chehab
by check_pad() from drivers/media/v4l2-core/v4l2-subdev.c. Acked-by: Rui Miguel Silva Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ov2680.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions

[git:media_stage/master] media: atomisp: Drop atomisp-ov2680 sensor driver

2023-08-09 Thread Mauro Carvalho Chehab
atomisp driver now works fine with the standard ov2680 driver. Drop the no longer necessary atomisp specific atomisp-ov2680 sensor driver. Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/staging/media/atomisp

[git:media_stage/master] media: i2c: ds90ub953: Fix use of uninitialized variables

2023-08-09 Thread Mauro Carvalho Chehab
8759c84f2...@xs4all.nl/ Fixes: 6363db1c9d45 ("media: i2c: add DS90UB953 driver") Reported-by: Hans Verkuil Signed-off-by: Tomi Valkeinen Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/ds90ub953.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[git:media_stage/master] media: ipu-bridge: Add link-frequency to OV2680 ipu_supported_sensors[] entry

2023-08-09 Thread Mauro Carvalho Chehab
the endpoint fwnode the link-frequency must be set for things to work. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/pci

[git:media_stage/master] media: subdev: Constify v4l2_subdev_set_routing_with_fmt() param

2023-08-09 Thread Mauro Carvalho Chehab
missing 'const'. Add it. Signed-off-by: Tomi Valkeinen Reviewed-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-subdev.c | 2 +- include/media/v4l2-subdev.h | 2 +- 2 files changed, 2 insertions(+), 2

[git:media_stage/master] media: i2c: Remove common dependencies from sensor drivers

2023-08-09 Thread Mauro Carvalho Chehab
x27;t needed by camera sensor drivers. Signed-off-by: Sakari Ailus Reviewed-by: Hans de Goede Reviewed-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/Kconfig| 223 ++- drivers/media/i2c/ccs/Kconfig| 5 +- drivers/medi

[git:media_stage/master] media: ov5693: Convert to new CCI register access helpers

2023-08-09 Thread Mauro Carvalho Chehab
register access helpers in the ov5693 driver. [Sakari Ailus: Squashed the patch to address a merge issue in Kconfig] Reviewed-by: Laurent Pinchart Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/Kconfig | 1 + drivers/media/i2c

[git:media_stage/master] media: MAINTAINERS: Add entry for V4L2 async and fwnode frameworks

2023-08-09 Thread Mauro Carvalho Chehab
the maintainer. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) --- diff --git a/MAINTAINERS b/MAINTAINERS index 0dae72a07d0d..52a7c026f398 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22282,6 +22282,16 @@ L

[git:media_stage/master] media: subdev: Drop implicit zeroing of stream field

2023-08-09 Thread Mauro Carvalho Chehab
Carvalho Chehab drivers/media/v4l2-core/v4l2-subdev.c | 15 --- 1 file changed, 15 deletions(-) --- diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c index 217b8019fb9b..c720c9ea899e 100644 --- a/drivers/media/v4l2-core/v4l2-subdev.c +++ b

[git:media_stage/master] media: subdev: Add debug prints to enable/disable_streams

2023-08-09 Thread Mauro Carvalho Chehab
or disabled. Add debug prints for this to v4l2_subdev_enable_streams() and v4l2_subdev_disable_streams(). Signed-off-by: Tomi Valkeinen Reviewed-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-subdev.c | 14 -- 1 file

[git:media_stage/master] media: ipu-bridge: Store dev pointer in struct ipu_bridge

2023-08-09 Thread Mauro Carvalho Chehab
dev pointer to struct ipu_bridge. Reviewed-by: Andy Shevchenko Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 15 +++ drivers/media/pci/intel/ipu-bridge.h | 1 + 2

[git:media_stage/master] media: atomisp: csi2-bridge: Switch to new common ipu_bridge_init()

2023-08-09 Thread Mauro Carvalho Chehab
Carvalho Chehab drivers/staging/media/atomisp/Kconfig | 3 + drivers/staging/media/atomisp/pci/atomisp_csi2.h | 67 - .../media/atomisp/pci/atomisp_csi2_bridge.c| 333 - drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 1 + 4 files changed

[git:media_stage/master] media: Add MIPI CCI register access helper functions

2023-08-09 Thread Mauro Carvalho Chehab
51329c...@redhat.com/ Reviewed-by: Andy Shevchenko Tested-by: Tommaso Merciai Reviewed-by: Tommaso Merciai Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Documentation/driver-api/media/v4l2-cci.rst | 5 + Documentation/driver-api/media/v4l2-core.

[git:media_stage/master] media: imx290: Convert to new CCI register access helpers

2023-08-09 Thread Mauro Carvalho Chehab
register access helpers in the imx290 driver. [Sakari Ailus: Squashed the patch to address a merge issue in Kconfig] Reviewed-by: Laurent Pinchart Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/Kconfig | 1 + drivers/media/i2c

[git:media_stage/master] media: atomisp: ov2680: Convert to new CCI register access helpers

2023-08-09 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab drivers/staging/media/atomisp/i2c/Kconfig | 1 + drivers/staging/media/atomisp/i2c/atomisp-ov2680.c | 247 ++--- drivers/staging/media/atomisp/i2c/ov2680.h | 86 +-- 3 files changed, 119 insertions(+), 215 deletions

[git:media_stage/master] media: ipu-bridge: Do not use on stack memory for software_node.name field

2023-08-09 Thread Mauro Carvalho Chehab
ede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 7 +++ drivers/media/pci/intel/ipu-bridge.h | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) --- diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/p

[git:media_stage/master] media: MAINTAINERS: Split sensors and lens drivers, add documentation

2023-08-09 Thread Mauro Carvalho Chehab
makes it easier to maintain the list. Also add documentation related files under the camera sensor entry. Add the word "CAMERA" to the subject as well since there are many other kinds of sensors. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab MAINTA

[git:media_stage/master] media: rcar-csi2: Add support for C-PHY on R-Car V4H

2023-08-09 Thread Mauro Carvalho Chehab
much larger register space and some addresses overlap with Gen3. [Sakari Ailus: Use div_u64() to divide a 64-bit integer.] Signed-off-by: Niklas Söderlund Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab .../media/platform/renesas/rcar-vin/rcar-csi2.c| 291

[git:media_stage/master] media: v4l: async: Avoid a goto in loop implementation

2023-08-09 Thread Mauro Carvalho Chehab
Chehab Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) --- diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index

[git:media_stage/master] media: ipu-bridge: Move ipu-bridge.h to include/media/

2023-08-09 Thread Mauro Carvalho Chehab
atomisp code. Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c| 4 ++-- drivers/media/pci/intel/ipu3/ipu3-cio2.c| 3 ++- {drivers/media/pci/intel

[git:media_stage/master] media: i2c: Add a camera sensor top level menu

2023-08-09 Thread Mauro Carvalho Chehab
...@vger.kernel.org # for >= 6.1 Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/Kconfig | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) --- diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 694afb85acb9..eef5e872a824 100644 --- a/drivers/med

[git:media_stage/master] media: i2c: imx219: Rename mbus codes array

2023-08-09 Thread Mauro Carvalho Chehab
ame is too generic and not easy to read and follow in the code. Change it to imx219_mbus_formats. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi Reviewed-by: Tommaso Merciai Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab dri

[git:media_stage/master] media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warnings

2023-08-09 Thread Mauro Carvalho Chehab
cio2: Parse sensor orientation and rotation") Cc: Fabian Wüthrich Signed-off-by: Hans de Goede Reviewed-by: Daniel Scally Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 5 + 1 file changed, 5 insertions(+) --- diff --git a/d

[git:media_stage/master] media: i2c: imx219: Complete default format initialization

2023-08-09 Thread Mauro Carvalho Chehab
fields for the colorspace configuration copied from imx219_set_default_format(). Signed-off-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/imx219.c | 6 ++ 1 file changed, 6 insertions(+) --- diff --git a/drivers/media/i2c/imx219.c b

[git:media_stage/master] media: i2c: imx219: Switch from open to init_cfg

2023-08-09 Thread Mauro Carvalho Chehab
operation to set default formats on the pads. Signed-off-by: Jean-Michel Hautbois Signed-off-by: Jacopo Mondi Reviewed-by: Dave Stevenson Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/imx219.c | 63

[git:media_stage/master] media: ipu-bridge: Move initialization of node_names.vcm to ipu_bridge_init_swnode_names()

2023-08-09 Thread Mauro Carvalho Chehab
-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 16 +++- drivers/media/pci/intel/ipu-bridge.h | 4 ++-- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) --- diff --git a

[git:media_stage/master] media: i2c: imx219: Use subdev active state

2023-08-09 Thread Mauro Carvalho Chehab
configuration to the subdevice state and simplify the format handling, locking and initialization. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/imx219.c | 179

[git:media_stage/master] media: ipu-bridge: Add a ipu_bridge_parse_ssdb() helper function

2023-08-09 Thread Mauro Carvalho Chehab
SSDB in struct ipu_sensor. This is a preparation patch for making the ipu-bridge code more generic so that it can be shared with the atomisp driver. Reviewed-by: Andy Shevchenko Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho C

[git:media_stage/master] media: ipu-bridge: Add GalaxyCore GC0310 to ipu_supported_sensors[]

2023-08-09 Thread Mauro Carvalho Chehab
various devices, add it to ipu_supported_sensors[]. Reviewed-by: Andy Shevchenko Reviewed-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 2 ++ 1 file changed, 2 insertions(+) --- diff --git a

[git:media_stage/master] media: ipu-bridge: Add a parse_sensor_fwnode callback to ipu_bridge_init()

2023-08-09 Thread Mauro Carvalho Chehab
: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 10 ++ drivers/media/pci/intel/ipu-bridge.h | 11 +-- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) --- diff --git a/drivers/media/pci/intel/ipu-bridge.c b

[git:media_stage/master] media: ipu-bridge: Move initialization of node_names.vcm to ipu_bridge_init_swnode_names()

2023-08-09 Thread Mauro Carvalho Chehab
-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) --- diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel/ipu-bridge.c index ad1f78be3aa7..d1bc7035eeea 100644

[git:media_stage/master] media: i2c: imx219: Simplify code handling in s_fmt

2023-08-09 Thread Mauro Carvalho Chehab
and simplify imx219_set_pad_format(). Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/imx219.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) --- diff --git a/drivers/media/i2c

[git:media_stage/master] media: i2c: imx219: Simplify format assignment

2023-08-09 Thread Mauro Carvalho Chehab
in the mode and the media bus code. While set_fmt uses function helpers, init_cfg open-codes the assignments. Simplify the format initialization by moving it to a common helper. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho

[git:media_stage/master] media: ipu-bridge: Drop early setting of sensor->adev

2023-08-09 Thread Mauro Carvalho Chehab
set by: sensor->adev = acpi_dev_get(adev); So the early assignment with a borrowed reference can be dropped. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 5 - 1 file changed, 5 deletions(-) --- d

[git:media_stage/master] media: ipu-bridge: Only keep PLD around while parsing

2023-08-09 Thread Mauro Carvalho Chehab
de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 48 drivers/media/pci/intel/ipu-bridge.h | 1 - 2 files changed, 27 insertions(+), 22 deletions(-) --- diff --git a/drivers/media/pci/intel

[git:media_stage/master] media: Remove ov_16bit_addr_reg_helpers.h

2023-08-09 Thread Mauro Carvalho Chehab
the new CCI register access helpers. Reviewed-by: Laurent Pinchart Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab include/media/ov_16bit_addr_reg_helpers.h | 92 --- 1 file changed, 92

[git:media_stage/master] media: i2c: imx219: Fix colorspace info

2023-08-09 Thread Mauro Carvalho Chehab
and adjust the quantization and transfer function values. Drop ycbcr_enc as it doesn't apply to RAW sensors. Signed-off-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/imx219.c | 26 +- 1 file changed, 9 inser

[git:media_stage/master] media: ipu-bridge: Add a runtime-pm device-link between VCM and sensor

2023-08-09 Thread Mauro Carvalho Chehab
Reviewed-by: Daniel Scally Tested-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu-bridge.c | 161 --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 5 + include/media

[git:media_stage/fixes] media: imx: imx7-media-csi: Fix applying format constraints

2023-08-09 Thread Mauro Carvalho Chehab
t Pinchart Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/nxp/imx7-media-csi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/platform/nxp/imx7-media-csi.c b/drivers/media/platform/nxp/imx7-media-csi.c index 0bd2613b9320..791bde67f

[git:media_stage/master] media: go7007: Remove redundant if statement

2023-07-28 Thread Mauro Carvalho Chehab
kernel.org/linux-media/20230727174007.635572-1-colin.i.k...@gmail.com Fixes: 866b8695d67e ("Staging: add the go7007 video driver") Signed-off-by: Colin Ian King Signed-off-by: Mauro Carvalho Chehab drivers/media/usb/go7007/go7007-i2c.c | 2 -- 1 file changed, 2 deletions(-) --- diff -

[git:media_stage/master] media: ipu3-cio2: allow ipu_bridge to be a module again

2023-07-28 Thread Mauro Carvalho Chehab
move out of ipu3")' Signed-off-by: Arnd Bergmann Reviewed-by: Andy Shevchenko Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/Kconfig | 21 + drivers/media/pci/intel/ipu-bridge.c | 3 +++ drivers/media/pci/intel/ipu3/Kconfig | 20 ++

[git:media_stage/master] media: v4l: fwnode: Remove unneeded forward declaration

2023-07-28 Thread Mauro Carvalho Chehab
: Sakari Ailus Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab include/media/v4l2-fwnode.h | 2 -- 1 file changed, 2 deletions(-) --- diff --git a/include/media/v4l2-fwnode.h b/include/media/v4l2-fwnode.h index a9a89035e282..f7c57c776589 100644 --- a/include

[git:media_stage/master] media: atmel-isi: Remote unneeeded forward declaration

2023-07-28 Thread Mauro Carvalho Chehab
-off-by: Sakari Ailus Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/atmel/atmel-isi.h | 2 -- 1 file changed, 2 deletions(-) --- diff --git a/drivers/media/platform/atmel/atmel-isi.h b/drivers/media/platform/atmel/atmel-isi.h

[git:media_stage/master] media: v4l: async: Drop v4l2_async_nf_parse_fwnode_endpoints()

2023-07-28 Thread Mauro Carvalho Chehab
Tested-by: Niklas Söderlund # rcar + adv746x Reviewed-by: Laurent Pinchart Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 6 +-- drivers/media/v4l2-core

[git:media_stage/master] media: cec-gpio: specify IRQF_NO_AUTOEN when requesting irq

2023-07-28 Thread Mauro Carvalho Chehab
. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab drivers/media/cec/platform/cec-gpio/cec-gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- diff --git a/drivers/media/cec/platform/cec-gpio/cec-gpio.c b/drivers/media/cec/platform/cec-gpio/cec-gpio.c index

[git:media_stage/master] media: cec: core: add adap_nb_transmit_canceled() callback

2023-07-28 Thread Mauro Carvalho Chehab
ted-by: Zheng Zhang Signed-off-by: Hans Verkuil Fixes: f9d0ecbf56f4 ("media: cec: correctly pass on reply results") Signed-off-by: Mauro Carvalho Chehab drivers/media/cec/core/cec-adap.c | 4 ++-- include/media/cec.h | 6 -- 2 files changed, 6 insertions(+), 4 de

[git:media_stage/master] media: cec: core: add adap_unconfigured() callback

2023-07-28 Thread Mauro Carvalho Chehab
d: all low-level adap_* callbacks are called with the mutex held. All other callbacks are called without that mutex held. Signed-off-by: Hans Verkuil Fixes: f1b57164305d ("media: cec: add optional adap_configured callback") Signed-off-by: Mauro Carvalho Chehab drivers/media/cec/core/ce

[git:media_stage/master] media: cec-pin: improve interrupt handling

2023-07-28 Thread Mauro Carvalho Chehab
the disable_irq op is called even if the device node is unregistered, log the state of the interrupt in debugfs, and disable the interrupt when the kernel thread is stopped. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab drivers/media/cec/core/cec-pin-priv.h | 1 + drivers

[git:media_stage/master] media: Documentation: media: cec: describe new callbacks

2023-07-28 Thread Mauro Carvalho Chehab
or not. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Documentation/driver-api/media/cec-core.rst | 44 ++--- 1 file changed, 34 insertions(+), 10 deletions(-) --- diff --git a/Documentation/driver-api/media/cec-core.rst b/Documentation/driver-

[git:media_stage/master] media: cec-gpio: drop the cec_gpio_free callback

2023-07-28 Thread Mauro Carvalho Chehab
when the kthread stops, there is no longer any need for the cec-gpio driver to do this in the free callback. So drop this code. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab drivers/media/cec/platform/cec-gpio/cec-gpio.c | 6 -- 1 file changed, 6 deletions(-) --- diff

[git:media_stage/master] media: cec-pin: only enable interrupts when monitoring the CEC pin

2023-07-28 Thread Mauro Carvalho Chehab
CEC pin for an unconfigured CEC device. That gives it the most precise CEC pin debugging results. This avoids a corner case where the interrupt is enabled for a short period when the adapter is about to be configured. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab drivers

[git:media_stage/master] media: v4l: async: Add some debug prints

2023-07-28 Thread Mauro Carvalho Chehab
Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 71 1 file changed, 63 insertions(+), 8 deletions(-) --- diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 7831bc879290..c5781124337a 100644 --- a/drivers/

[git:media_stage/master] media: Documentation: v4l: Fix async notifier registration example

2023-07-28 Thread Mauro Carvalho Chehab
. The name of the variable in error handling was wrong (asd vs. my_asd). Signed-off-by: Sakari Ailus Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab Documentation/driver-api/media/v4l2-subdev.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[git:media_stage/master] media: xilinx-vipp: Clean up bound async notifier callback

2023-07-28 Thread Mauro Carvalho Chehab
Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/xilinx/xilinx-vipp.c | 32 + 1 file changed, 5 insertions(+), 27 deletions(-) --- diff --git a

[git:media_stage/master] media: Documentation: v4l: Document v4l2_async_nf_cleanup

2023-07-28 Thread Mauro Carvalho Chehab
unregistered notifier's memory. Also remove the sentence regarding v4l2_async_nf_init() arguments --- those are documented in kerneldoc which is referred here. Signed-off-by: Sakari Ailus Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab Documentation/d

[git:media_stage/master] media: Documentation: v4l: Fix async sensor subdev helper documentation

2023-07-28 Thread Mauro Carvalho Chehab
, besider unregistered, also cleaned up using v4l2_async_unregister_subdev(). Signed-off-by: Sakari Ailus Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab Documentation/driver-api/media/v4l2-subdev.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[git:media_stage/master] media: v4l: async: Clean up list heads and entries

2023-07-28 Thread Mauro Carvalho Chehab
Mauro Carvalho Chehab drivers/media/pci/intel/ipu3/ipu3-cio2.c| 2 +- drivers/media/platform/xilinx/xilinx-vipp.c | 6 ++-- drivers/media/v4l2-core/v4l2-async.c| 54 ++--- drivers/staging/media/tegra-video/vi.c | 4 +-- include/media/v4l2-as

[git:media_stage/master] media: v4l: async: Only pass match information for async subdev validation

2023-07-28 Thread Mauro Carvalho Chehab
# rcar + adv746x Reviewed-by: Laurent Pinchart Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 109 ++- 1 file changed, 56

[git:media_stage/master] media: v4l: async: Don't check whether asd is NULL in validity check

2023-07-28 Thread Mauro Carvalho Chehab
as RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 3 --- 1 file changed, 3 deletions(-) --- diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 9b79bcc1af82..925ab5571cd4 100644 --- a/drivers/media/v4l2-core/v4

[git:media_stage/master] media: v4l: async: Make V4L2 async match information a struct

2023-07-28 Thread Mauro Carvalho Chehab
Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 18 include/media/v4l2-async.h | 41 2 files

[git:media_stage/master] media: v4l: async: Drop duplicate handling when adding connections

2023-07-28 Thread Mauro Carvalho Chehab
by: Niklas Söderlund # rcar + adv746x Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-async.c | 27 --- 1 file changed, 8 insertions(+), 19

[git:media_stage/master] media: v4l: async: Rename V4L2_ASYNC_MATCH_ macros, add TYPE_

2023-07-28 Thread Mauro Carvalho Chehab
kari Ailus Tested-by: Philipp Zabel # imx6qp Tested-by: Niklas Söderlund # rcar + adv746x Reviewed-by: Laurent Pinchart Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/v4l2-core/v4l2-as

[git:media_stage/master] media: v4l: async: Simplify async sub-device fwnode matching

2023-07-28 Thread Mauro Carvalho Chehab
Signed-off-by: Sakari Ailus Tested-by: Philipp Zabel # imx6qp Tested-by: Niklas Söderlund # rcar + adv746x Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/i2c/adv748x/adv748

[git:media_stage/master] media: v4l: async: Rework internal lists

2023-07-28 Thread Mauro Carvalho Chehab
nd # rcar + adv746x Tested-by: Aishwarya Kothari # Apalis i.MX6Q with TC358743 Tested-by: Lad Prabhakar # Renesas RZ/G2L SMARC Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +- .../media/platform/renesas/rcar-vin/rcar-core.c| 2 +- .../medi

<    5   6   7   8   9   10   11   12   13   14   >