Hi Mauro, Hans, Here is a second round of atomisp changes for 6.10, this pull-request supersedes / replace my "media: atomisp: Changes for 6.10-1" pull-request. Various cleanup patches from Jonathan Bergh and Andy + a set of patches from me which has been reviewed by Andy and Kieran. Highlights: - Various cleanup patches from Jonathan Bergh and Andy Shevchenko - Some more changes to make the atomisp driver work with libcamera, this has been tested with libcamera's simple pipelinehandler as well as a new atomisp pipelinehandler I'm working on together with an ov2680 sensor - Remove more dead / unwanted code Regards, Hans The following changes since commit 836e2548524d2dfcb5acaf3be78f203b6b4bde6f: media: usb: siano: Fix allocation of urbs (2024-04-16 00:02:53 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/media-atomisp-6.10-2 for you to fetch changes up to 48d93af9d9b0fd40a21a656cb8cd8e25700bfed5: media: atomisp: Fix sh_css_config_input_network_2400() coding style (2024-04-16 11:19:52 +0200) ---------------------------------------------------------------- atomisp staging driver changes for 6.10-2 Highlights: - Various cleanup patches from Jonathan Bergh and Andy Shevchenko - Some more changes to make the atomisp driver work with libcamera, this has been tested with libcamera's simple pipelinehandler together with an ov2680 sensor - Remove more dead / unwanted code ---------------------------------------------------------------- Andy Shevchenko (4): media: atomisp: Remove unsused macros media: atomisp: Put PMIC device after getting its I²C address media: atomisp: Replace open-coded i2c_find_device_by_fwnode() media: atomisp: Get rid of PCI device ID hack check Hans de Goede (28): media: atomisp: Drop second V4L2_PIX_FMT_UYVY atomisp_output_fmts[] entry media: atomisp: Replace V4L2_PIX_FMT_RGB32 with V4L2_PIX_FMT_RGBX32 media: atomisp: Disable broken V4L2_PIX_FMT_RGBX32 output support media: atomisp: Initialize sequence counters to 0 instead of -1 media: atomisp: Add atomisp_s_sensor_power() helper media: atomisp: Turn on sensor power from atomisp_set_fmt() media: atomisp: Add atomisp_select_input() helper media: atomisp: Simplify atomisp_s_input() input argument checking media: atomisp: Ensure CSI-receiver[x] -> ISP links correctly reflect current sensor media: atomisp: Propagate set_fmt on sensor results to CSI port media: atomisp: Propagate v4l2_mbus_framefmt.field to CSI port sink pad media: atomisp: Call media_pipeline_alloc_start() in stream start media: atomisp: Drop atomisp_pipe_check() from atomisp_link_setup() media: atomisp: ov2722: Remove power on sensor from set_fmt() callback media: atomisp: Remove test pattern generator (TPG) support media: atomisp: Remove input_port_ID_t media: atomisp: Drop the atomisp custom lm3554 flash driver media: atomisp: Drop custom flash support media: atomisp: Drop unused frame_status tracking media: atomisp: Drop intel_v4l2_subdev_type media: atomisp: Remove gmin_platform VCM code. media: atomisp: Remove struct atomisp_platform_data media: atomisp: Remove clearing of ISP crop / compose rectangles on file release media: atomisp: Remove empty s_power() op from ISP subdev media: atomisp: Remove empty s_stream() op from CSI subdev media: atomisp: Cleanup atomisp_isr_thread() spinlock handling media: atomisp: Remove setting of f->fmt.pix.priv from atomisp_set_fmt() media: atomisp: Fix sh_css_config_input_network_2400() coding style Jonathan Bergh (10): media: atomisp: Fix various formatting issues and remove unneccesary braces media: atomisp: Fix formatting issues and minor code issue media: atomisp: Remove unnecessary braces from single line conditional statements media: atomisp: Fixed "unsigned int *" rather than "unsigned *" declaration in variable declaration media: atomisp: Ensure trailing statements are on a newline and remove spurious whitespaces media: atomisp: Remove unnecessary parentheses from conditional statement media: atomisp: Remove unneeded return statement from void function media: atomisp: Remove old commented code and fix multiple block comment style media: atomisp: Fix various multiline block comment formatting instances media: atomisp: Remove extra whitespace after opening parentheses drivers/staging/media/atomisp/Makefile | 1 - drivers/staging/media/atomisp/i2c/Kconfig | 15 - drivers/staging/media/atomisp/i2c/Makefile | 5 - drivers/staging/media/atomisp/i2c/atomisp-gc2235.c | 2 +- drivers/staging/media/atomisp/i2c/atomisp-lm3554.c | 955 --------------------- .../staging/media/atomisp/i2c/atomisp-mt9m114.c | 2 +- drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 14 +- drivers/staging/media/atomisp/i2c/ov2722.h | 1 - .../staging/media/atomisp/include/linux/atomisp.h | 57 -- .../atomisp/include/linux/atomisp_gmin_platform.h | 6 +- .../media/atomisp/include/linux/atomisp_platform.h | 40 +- .../staging/media/atomisp/include/media/lm3554.h | 132 --- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 271 +++--- drivers/staging/media/atomisp/pci/atomisp_cmd.h | 13 +- .../media/atomisp/pci/atomisp_compat_css20.c | 31 +- drivers/staging/media/atomisp/pci/atomisp_csi2.c | 26 +- drivers/staging/media/atomisp/pci/atomisp_fops.c | 49 +- .../media/atomisp/pci/atomisp_gmin_platform.c | 123 +-- .../staging/media/atomisp/pci/atomisp_internal.h | 15 +- drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 164 +--- drivers/staging/media/atomisp/pci/atomisp_subdev.c | 53 +- drivers/staging/media/atomisp/pci/atomisp_subdev.h | 17 +- drivers/staging/media/atomisp/pci/atomisp_tpg.c | 164 ---- drivers/staging/media/atomisp/pci/atomisp_tpg.h | 39 - drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 165 ++-- drivers/staging/media/atomisp/pci/bits.h | 4 +- drivers/staging/media/atomisp/pci/defs.h | 37 - .../pci/hive_isp_css_common/host/dma_local.h | 1 - .../pci/hive_isp_css_common/host/input_system.c | 38 - drivers/staging/media/atomisp/pci/hive_types.h | 19 - drivers/staging/media/atomisp/pci/ia_css.h | 1 - .../media/atomisp/pci/ia_css_frame_public.h | 8 - .../media/atomisp/pci/ia_css_stream_public.h | 17 - drivers/staging/media/atomisp/pci/ia_css_tpg.h | 79 -- .../atomisp/pci/isp2400_input_system_global.h | 1 - .../atomisp/pci/isp2400_input_system_public.h | 15 - .../atomisp/pci/isp2401_input_system_global.h | 1 - .../atomisp/pci/runtime/debug/src/ia_css_debug.c | 20 +- .../media/atomisp/pci/runtime/ifmtr/src/ifmtr.c | 11 - .../atomisp/pci/runtime/isys/src/virtual_isys.c | 28 +- drivers/staging/media/atomisp/pci/sh_css.c | 137 +-- .../staging/media/atomisp/pci/sh_css_internal.h | 1 - drivers/staging/media/atomisp/pci/sh_css_mipi.c | 2 +- drivers/staging/media/atomisp/pci/sh_css_sp.c | 127 ++- drivers/staging/media/atomisp/pci/sh_css_sp.h | 7 - drivers/staging/media/atomisp/pci/system_global.h | 12 - 46 files changed, 364 insertions(+), 2562 deletions(-) delete mode 100644 drivers/staging/media/atomisp/i2c/atomisp-lm3554.c delete mode 100644 drivers/staging/media/atomisp/include/media/lm3554.h delete mode 100644 drivers/staging/media/atomisp/pci/atomisp_tpg.c delete mode 100644 drivers/staging/media/atomisp/pci/atomisp_tpg.h delete mode 100644 drivers/staging/media/atomisp/pci/defs.h delete mode 100644 drivers/staging/media/atomisp/pci/ia_css_tpg.h