[git:media_stage/master] media: bttv: copy vbi_fmt from bttv_fh

2023-08-14 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: copy vbi_fmt from bttv_fh Author: Deborah Brouwer Date:Fri Jul 14 19:16:01 2023 -0700 In preparation for the vb2 conversion, copy the vbi format from struct bttv_fh and add it

[git:media_stage/master] media: bttv: radio use v4l2_fh instead of bttv_fh

2023-08-14 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: radio use v4l2_fh instead of bttv_fh Author: Deborah Brouwer Date:Fri Jul 14 19:15:59 2023 -0700 Use a v4l2_fh when opening a radio device instead of a bttv_fh and manage it

[git:media_stage/master] media: bttv: replace BUG with WARN_ON

2023-08-14 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: replace BUG with WARN_ON Author: Deborah Brouwer Date:Fri Jul 14 19:15:58 2023 -0700 Both BUG and BUG_ON are replaced with WARN_ON wherever they would still be present after

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

2023-08-14 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: bttv: move do_crop flag out of bttv_fh

2023-08-14 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: move do_crop flag out of bttv_fh Author: Deborah Brouwer Date:Fri Jul 14 19:16:02 2023 -0700 The do_crop flag indicates whether a cropping rectangle has been set. Instead of

[git:media_stage/master] media: bttv: refactor bttv_set_dma()

2023-08-14 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: refactor bttv_set_dma() Author: Deborah Brouwer Date:Fri Jul 14 19:16:07 2023 -0700 Break bttv_set_dma() into several smaller, separate functions so it is easier to read the

[git:media_stage/master] media: davinci: vpif_capture: fix error return code in vpif_probe()

2023-08-09 Thread Mauro Carvalho Chehab
: b4a4547371b9 ("media: davinci: Init async notifier after registering V4L2 device") Signed-off-by: Yang Yingliang Reviewed-by: Lad Prabhakar Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/ti/davinci/vpif_capture.c | 1 + 1 file changed, 1

[git:media_stage/master] media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() logging

2023-08-09 Thread Mauro Carvalho Chehab
logging to also log the device name to make it easier to match csi2-bridge messages with sensor driver log messages. Suggested-by: Sakari Ailus Signed-off-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab .../media/atomisp/pci/a

[git:media_stage/master] media: camif-core: Do not check for 0 return after calling platform_get_irq()

2023-08-09 Thread Mauro Carvalho Chehab
. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie Reviewed-by: Andrzej Pietrasiewicz Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/samsung/s3c-camif/camif-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[git:media_stage/master] media: verisilicon: Do not check for 0 return after calling platform_get_irq()

2023-08-09 Thread Mauro Carvalho Chehab
() or platform_get_irq_byname() to return 0. Use the return value from platform_get_irq() or platform_get_irq_byname(). Signed-off-by: Ruan Jinjie Reviewed-by: Andrzej Pietrasiewicz Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/verisilicon/hantro_drv.c | 4 ++-- 1

[git:media_stage/master] media: i2c: Add driver for DW9719 VCM

2023-08-09 Thread Mauro Carvalho Chehab
to set the desired focus. Reviewed-by: Andy Shevchenko Signed-off-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/Kconfig| 1 + drivers/media/pci/intel/Makefile | 1 + drivers/media/pci

[git:media_stage/master] media: pci: intel: ivsc: Add ACE submodule

2023-08-09 Thread Mauro Carvalho Chehab
and DL_FLAG_RPM_ACTIVE, the supplier device will be PM runtime resumed before the consumer(camera sensor). So use runtime PM callbacks to transfer the ownership between host and IVSC. Signed-off-by: Wentong Wu Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ivsc/Makefile

[git:media_stage/master] media: atomisp: csi2-bridge: Add support for VCM I2C-client instantiation

2023-08-09 Thread Mauro Carvalho Chehab
ing a vcm field to atomisp_sensor_config and only check for a VCM when that is set. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab .../media/atomisp/pci/atomisp_csi2_bridge.c| 44 +- 1 file changed, 42 insertions(+)

[git:media_stage/master] media: pci: intel: Add IVSC support for IPU bridge driver

2023-08-09 Thread Mauro Carvalho Chehab
composed device name, this patch setup the connection between MEI CSI and IPU, and the connection between MEI CSI and sensor via software nodes. Signed-off-by: Wentong Wu Reviewed-by: Andy Shevchenko Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/intel/ipu

[git:media_stage/master] media: i2c: Add driver for DW9719 VCM

2023-08-09 Thread Mauro Carvalho Chehab
to set the desired focus. Reviewed-by: Andy Shevchenko Signed-off-by: Daniel Scally Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab MAINTAINERS| 7 + drivers/media/i2c/Kconfig | 12 ++ drivers/media/i2c/Makefile | 1

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

2023-08-09 Thread Mauro Carvalho Chehab
users 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
d-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 index f619c23e084a..8ba5750f5

[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
, and 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/media/v4l/vid

[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
l Scally 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
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/drivers/media/i2c/ds90ub9

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

2023-08-09 Thread Mauro Carvalho Chehab
-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..e6e

[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
on support. 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
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: Daniel Sca

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

2023-08-09 Thread Mauro Carvalho Chehab
to the i2c_client after probe() is no longer necessary. Directly store a struct device *dev pointing to >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 Carvalho Che

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

2023-08-09 Thread Mauro Carvalho Chehab
for the 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

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

2023-08-09 Thread Mauro Carvalho Chehab
-by: 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
. This is 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

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

2023-08-09 Thread Mauro Carvalho Chehab
-by: 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
-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/drivers

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

2023-08-09 Thread Mauro Carvalho Chehab
. This is a 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
that the 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
in the 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
-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 ++- 1 file c

[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
, the 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
: 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(-) --- diff --git a/drivers

[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
() is 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 deletions

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

2023-08-09 Thread Mauro Carvalho Chehab
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/media/i2c

[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
as 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
the 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
. This 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
a 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: 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
in the 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

[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: Move ipu-bridge.h to include/media/

2023-08-09 Thread Mauro Carvalho Chehab
by the 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
a...@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/media/i2

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

2023-08-09 Thread Mauro Carvalho Chehab
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 Chehab

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

2023-08-09 Thread Mauro Carvalho Chehab
on 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

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

2023-08-09 Thread Mauro Carvalho Chehab
-by: 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
ly 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
by 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 insertions

[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

Re: [Intel-gfx] [PATCH 0/4] Invalidate TLB cache for all GT's

2023-08-01 Thread Mauro Carvalho Chehab
invalidation in MMIO memory. The result is a leaner, more targeted proposal. Series look good to me. Feel free to add my R-B to the patches I didn't sign already. Reviewed-by: Mauro Carvalho Chehab Other patches from the original series might follow. Thanks, Andi [1] https

Re: [PATCH 0/4] Invalidate TLB cache for all GT's

2023-08-01 Thread Mauro Carvalho Chehab
invalidation in MMIO memory. The result is a leaner, more targeted proposal. Series look good to me. Feel free to add my R-B to the patches I didn't sign already. Reviewed-by: Mauro Carvalho Chehab Other patches from the original series might follow. Thanks, Andi [1] https

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

2023-07-28 Thread Mauro Carvalho Chehab
/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 a/dri

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

2023-07-28 Thread Mauro Carvalho Chehab
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 3 files changed, 28 inserti

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

2023-07-28 Thread Mauro Carvalho Chehab
-by: 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

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

2023-07-28 Thread Mauro Carvalho Chehab
-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/cec-adap.c |

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