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

2023-08-19 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_tree/master] media: ov2680: Fix exposure and gain ctrls range and default value

2023-08-19 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_tree/master] media: ov2680: Annotate the per mode register setting lists

2023-08-19 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_tree/master] media: ov2680: Check for "powerdown" GPIO con-id before checking for "reset" GPIO con-id

2023-08-19 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_tree/master] media: ov2680: Add support for ACPI enumeration

2023-08-19 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_tree/master] media: ov2680: Fix ov2680_set_fmt() which == V4L2_SUBDEV_FORMAT_TRY not working

2023-08-19 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_tree/master] media: ov2680: Add runtime-pm support

2023-08-19 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_tree/master] media: ov2680: Store dev instead of i2c_client in ov2680_dev

2023-08-19 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_tree/master] media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors

2023-08-19 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_tree/master] media: atomisp: Drop atomisp-ov2680 sensor driver

2023-08-19 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_tree/master] media: ov2680: Drop unnecessary pad checks

2023-08-19 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_tree/master] media: ov2680: Add support for more clk setups

2023-08-19 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_tree/master] media: ov2680: Implement selection support

2023-08-19 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_tree/master] media: ov2680: Add a bunch of register tweaks

2023-08-19 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_tree/master] media: ov2680: Add an __ov2680_get_pad_format() helper function

2023-08-19 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_tree/master] media: ov2680: Drop is_enabled flag

2023-08-19 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_tree/master] media: ov2680: Add bus-cfg / endpoint property verification

2023-08-19 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_tree/master] media: ov2680: Read and log sensor revision during probe

2023-08-19 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_tree/master] media: bttv: remove format field from bttv_buffer

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: remove format field from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:03 2023 -0700 Instead of storing the format (video or vbi) in each bttv buffer separately,

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

2023-08-19 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_tree/master] media: ipu-bridge: Add link-frequency to OV2680 ipu_supported_sensors[] entry

2023-08-19 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_tree/master] media: coda: Remove duplicated include

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: coda: Remove duplicated include Author: GUO Zihua Date:Thu Aug 10 19:53:02 2023 +0800 Remove duplicated include of linux/of.h. Resolves checkincludes message. Signed-off-by: GUO

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

2023-08-19 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_tree/master] media: ov2680: Add ov2680_mode struct

2023-08-19 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_tree/master] media: i2c: ds90ub913: Fix use of uninitialized variables

2023-08-19 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_tree/master] media: MAINTAINERS: Add Hans de Goede as OV2680 sensor driver maintainer

2023-08-19 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_tree/master] media: bttv: convert to vb2

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: convert to vb2 Author: Deborah Brouwer Date:Fri Jul 14 19:16:09 2023 -0700 Convert this driver from the old videobuf framework to videobuf2. Signed-off-by: Deborah Brouwer

[git:media_tree/master] media: bttv: use video_drvdata to get bttv

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: use video_drvdata to get bttv Author: Deborah Brouwer Date:Fri Jul 14 19:15:57 2023 -0700 Use video_drvdata(file) instead of fh->btv to get the bttv pointer wherever the bttv

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

2023-08-19 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_tree/master] media: bttv: radio use v4l2_fh instead of bttv_fh

2023-08-19 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_tree/master] media: bttv: remove crop info from bttv_buffer

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: remove crop info from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:05 2023 -0700 Instead of storing the cropping parameters in each bttv buffer separately, just

[git:media_tree/master] media: bttv: move do_crop flag out of bttv_fh

2023-08-19 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_tree/master] media: bttv: replace BUG with WARN_ON

2023-08-19 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_tree/master] media: i2c: ccs: Check rules is non-NULL

2023-08-19 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_tree/master] media: i2c: rdacm21: Fix uninitialized value

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: i2c: rdacm21: Fix uninitialized value Author: Jacopo Mondi Date:Thu Aug 10 15:33:37 2023 +0200 Fix the following smatch warning: drivers/media/i2c/rdacm21.c:373 ov10640_check_id()

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

2023-08-19 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_tree/master] media: bttv: remove tvnorm field from bttv_buffer

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: remove tvnorm field from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:04 2023 -0700 Instead of storing the tvnorm in each bttv buffer separately, just use the

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

2023-08-19 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_tree/master] media: vivid: fix the racy dev->radio_tx_rds_owner

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: vivid: fix the racy dev->radio_tx_rds_owner Author: Sishuai Gong Date:Wed Aug 9 20:53:48 2023 -0400 There is a race over dev->radio_tx_rds_owner between the two functions mentioned

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

2023-08-19 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_tree/master] media: bttv: use audio defaults for winfast2000

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: use audio defaults for winfast2000 Author: Deborah Brouwer Date:Fri Jul 14 19:16:08 2023 -0700 The winfast2000 card advertised rxsubchans that weren't compatible with its

[git:media_tree/master] media: bttv: move vbi_skip/vbi_count out of buffer

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: move vbi_skip/vbi_count out of buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:06 2023 -0700 Instead of storing vbi_skip and vbi_count in each bttv buffer separately, move

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

2023-08-19 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_tree/master] media: bttv: copy vid fmt/width/height from fh

2023-08-19 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: bttv: copy vid fmt/width/height from fh Author: Deborah Brouwer Date:Fri Jul 14 19:16:00 2023 -0700 In preparation for the vb2 conversion, copy the video format, width and height

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

2023-08-14 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: Documentation: Fix [GS]_ROUTING documentation

2023-08-14 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 auto-gain and auto-exposure controls

2023-08-14 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 ov2680_bayer_order()

2023-08-14 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: verisilicon: Do not check for 0 return after calling platform_get_irq()

2023-08-14 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: pci: intel: Add IVSC support for IPU bridge driver

2023-08-14 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: davinci: vpif_capture: fix error return code in vpif_probe()

2023-08-14 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: ov2680: Fix vflip / hflip set functions

2023-08-14 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: Check for "powerdown" GPIO con-id before checking for "reset" GPIO con-id

2023-08-14 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: platform: ti: fix the return value handle for platform_get_irq()

2023-08-14 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: camif-core: Do not check for 0 return after calling platform_get_irq()

2023-08-14 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: ov2680: Add runtime-pm support

2023-08-14 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: Store dev instead of i2c_client in ov2680_dev

2023-08-14 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 ov2680_fill_format() helper function

2023-08-14 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: ov2680: Remove VIDEO_V4L2_SUBDEV_API ifdef-s

2023-08-14 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: Fix regulators being left enabled on ov2680_power_on() errors

2023-08-14 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: Don't take the lock for try_fmt calls

2023-08-14 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: ov5640: Enable MIPI interface in ov5640_set_power_mipi()

2023-08-14 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: pci: intel: ivsc: Add ACE submodule

2023-08-14 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: ov2680: Convert to new CCI register access helpers

2023-08-14 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: pci: intel: ivsc: Add CSI submodule

2023-08-14 Thread Mauro Carvalho Chehab
/20230803115550.1601965-2-sakari.ai...@linux.intel.com Signed-off-by: Wentong Wu 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/intel/ivsc/Kconfig | 12 + drivers/media

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

2023-08-14 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: Drop is_enabled flag

2023-08-14 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: ov2680: Add support for 19.2 MHz clock

2023-08-14 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-14 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: ov2680: Implement selection support

2023-08-14 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: i2c: ds90ub913: Fix use of uninitialized variables

2023-08-14 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: Read and log sensor revision during probe

2023-08-14 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: Wait for endpoint fwnode before continuing with probe()

2023-08-14 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: atomisp: Drop atomisp-ov2680 sensor driver

2023-08-14 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: coda: Remove duplicated include

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: coda: Remove duplicated include Author: GUO Zihua Date:Thu Aug 10 19:53:02 2023 +0800 Remove duplicated include of linux/of.h. Resolves checkincludes message. Signed-off-by: GUO

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

2023-08-14 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 support for ACPI enumeration

2023-08-14 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: Make setting the mode algorithm based

2023-08-14 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 exposure and gain ctrls range and default value

2023-08-14 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 a bunch of register tweaks

2023-08-14 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: Drop unnecessary pad checks

2023-08-14 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: bttv: move vbi_skip/vbi_count out of buffer

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 vbi_skip/vbi_count out of buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:06 2023 -0700 Instead of storing vbi_skip and vbi_count in each bttv buffer separately, move

[git:media_stage/master] media: bttv: remove format field from bttv_buffer

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: remove format field from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:03 2023 -0700 Instead of storing the format (video or vbi) in each bttv buffer separately,

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

2023-08-14 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: bttv: remove tvnorm field from bttv_buffer

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: remove tvnorm field from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:04 2023 -0700 Instead of storing the tvnorm in each bttv buffer separately, just use the

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

2023-08-14 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: Add bus-cfg / endpoint property verification

2023-08-14 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: ov2680: Add link-freq and pixel-rate controls

2023-08-14 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: Fix ov2680_enum_frame_interval()

2023-08-14 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: vivid: fix the racy dev->radio_tx_rds_owner

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: vivid: fix the racy dev->radio_tx_rds_owner Author: Sishuai Gong Date:Wed Aug 9 20:53:48 2023 -0400 There is a race over dev->radio_tx_rds_owner between the two functions mentioned

[git:media_stage/master] media: bttv: use video_drvdata to get bttv

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: use video_drvdata to get bttv Author: Deborah Brouwer Date:Fri Jul 14 19:15:57 2023 -0700 Use video_drvdata(file) instead of fh->btv to get the bttv pointer wherever the bttv

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

2023-08-14 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: bttv: convert to vb2

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: convert to vb2 Author: Deborah Brouwer Date:Fri Jul 14 19:16:09 2023 -0700 Convert this driver from the old videobuf framework to videobuf2. Signed-off-by: Deborah Brouwer

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

2023-08-14 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: i2c: ccs: Check rules is non-NULL

2023-08-14 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: i2c: rdacm21: Fix uninitialized value

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: i2c: rdacm21: Fix uninitialized value Author: Jacopo Mondi Date:Thu Aug 10 15:33:37 2023 +0200 Fix the following smatch warning: drivers/media/i2c/rdacm21.c:373 ov10640_check_id()

[git:media_stage/master] media: bttv: use audio defaults for winfast2000

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: use audio defaults for winfast2000 Author: Deborah Brouwer Date:Fri Jul 14 19:16:08 2023 -0700 The winfast2000 card advertised rxsubchans that weren't compatible with its

[git:media_stage/master] media: bttv: copy vid fmt/width/height from 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 vid fmt/width/height from fh Author: Deborah Brouwer Date:Fri Jul 14 19:16:00 2023 -0700 In preparation for the vb2 conversion, copy the video format, width and height

[git:media_stage/master] media: bttv: remove crop info from bttv_buffer

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: remove crop info from bttv_buffer Author: Deborah Brouwer Date:Fri Jul 14 19:16:05 2023 -0700 Instead of storing the cropping parameters in each bttv buffer separately, just

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

2023-08-14 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

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