media: ipu-bridge: Shared with atomisp, rework VCM instantiation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest18 patches 33 repliesIn review
- v215 patches 42 repliesSuperseded
Changes in v3 from the cover letter
- New patches:
media: i2c: Add driver for DW9719 VCM
ACPI: bus: Introduce acpi_match_acpi_device() function
media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() logging
media: atomisp: csi2-bridge: Add support for VCM I2C-client instantiation
- media: atomisp: csi2-bridge: Switch to new common ipu_bridge_init():
- Add a table with per sensor-HID atomisp_sensor_config settings for sensors which have lanes != 1 or which may have a VCM (VCM support is added in a follow-up patch)
- Switch to acpi_handle_err() for logging errors
- Set orientation based on CSI link/port
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warningsdrivers/ | +5 | 1 reply | |
| 2/18 | media: ipu-bridge: Do not use on stack memory for software_node.name fielddrivers/ drivers/ | +4 | 0 replies | |
| 3/18 | media: ipu-bridge: Move initialization of node_names.vcm to ipu_bridge_init_swnode_names()drivers/ | +7 | 0 replies | |
| 4/18 | media: ipu-bridge: Allow building as moduledrivers/ drivers/ drivers/ | +26 | 1 reply | |
| 5/18 | media: ipu-bridge: Make ipu_bridge_init() take a regular struct device as argumentdrivers/ drivers/ drivers/ | +10 | 0 replies | |
| 6/18 | media: ipu-bridge: Store dev pointer in struct ipu_bridgedrivers/ drivers/ | +8 | 0 replies | |
| 7/18 | media: ipu-bridge: Only keep PLD around while parsingdrivers/ drivers/ | +27 | 0 replies | |
| 8/18 | media: ipu-bridge: Add a ipu_bridge_parse_ssdb() helper functiondrivers/ drivers/ | +59 | 0 replies | |
| 9/18 | media: ipu-bridge: Drop early setting of sensor->adevdrivers/ | +0 | 0 replies | |
| 10/18 | media: ipu-bridge: Add a parse_sensor_fwnode callback to ipu_bridge_init()drivers/ drivers/ drivers/ | +16 | 1 reply | |
| 11/18 | media: ipu-bridge: Move ipu-bridge.h to include/media/drivers/ drivers/ include/ | +4 | 0 replies | |
| 12/18 | media: ipu-bridge: Add GalaxyCore GC0310 to ipu_supported_sensors[]drivers/ | +2 | 0 replies | |
| 13/18 | media: ipu-bridge: Add a runtime-pm device-link between VCM and sensordrivers/ drivers/ include/ | +109 | 0 replies | |
| 14/18 | media: i2c: Add driver for DW9719 VCMMAINTAINERS drivers/ drivers/ +1 more | +446 | 12 replies | |
| 15/18 | ACPI: bus: Introduce acpi_match_acpi_device() functiondrivers/ include/ | +20 | 6 replies | |
| 16/18 | media: atomisp: csi2-bridge: Switch to new common ipu_bridge_init()drivers/ drivers/ drivers/ +1 more | +65 | 0 replies | |
| 17/18 | media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() loggingdrivers/ | +34 | 6 replies | |
| 18/18 | media: atomisp: csi2-bridge: Add support for VCM I2C-client instantiationdrivers/ | +42 | 6 replies |
Reviews trailers per patch
14 of 18 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | Daniel Scally |
|---|---|---|
| 1/18 | R-b | |
| 2/18 | R-b | R-b |
| 3/18 | R-b | R-b |
| 4/18 | R-b | |
| 5/18 | R-b | R-b |
| 6/18 | R-b | R-b |
| 7/18 | R-b | R-b |
| 8/18 | R-b | R-b |
| 9/18 | ||
| 10/18 | R-b | |
| 11/18 | R-b | |
| 12/18 | R-b | R-b |
| 13/18 | R-b | R-b T-b |
| 14/18 | ||
| 15/18 | ||
| 16/18 | R-b | R-b |
| 17/18 | R-b | |
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/18] media: ipu-bridge: Shared with atomisp, rework VCM instantiation
Hi All,
Here is v3 of my patch-series to make the atomisp code share the ACPI -> sensor fwnode bridge code with the IPU3 (and IPU6 code).
This series also rework VCM instantiation, which was my initial reason for unifying / sharing the code.
Rafael, this v3 now includes a small ACPI patch:
ACPI: bus: Introduce acpi_match_acpi_device() function
It is probably easiest if you can give an ack for merging this through the media tree. May we have your ack for this?
Sakari, I know that you have other pending patches depending on this, patches 1-14 can be merged independent of the new ACPI patch. Only the atomisp changes require that and those can also be merged later.
Changes in v3:
- New patches:
media: i2c: Add driver for DW9719 VCM
ACPI: bus: Introduce acpi_match_acpi_device() function
media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() logging
media: atomisp: csi2-bridge: Add support for VCM I2C-client instantiation
- media: atomisp: csi2-bridge: Switch to new common ipu_bridge_init():
- Add a table with per sensor-HID atomisp_sensor_config settings for sensors which have lanes != 1 or which may have a VCM (VCM support is added in a follow-up patch)
- Switch to acpi_handle_err() for logging errors
- Set orientation based on CSI link/port
This set now consists of the following parts:
Patches 1-4 Bugfixes for recent changes
Patches 5-12 Cleanup / preparation patches
Patch 13 Rework how VCM client instantiation is done so that
a device-link can be added from VCM to sensor to fix issues with the VCM power-state being tied to the sensor power state
Patch 14 Resubmit DW9719 VCM driver upstream now that Vsio hack is gone Patch 15 New ACPI helper needed by atomisp bridge code Patch 16 Drop ipu-bridge code copy from atomisp, switching to
the shared ipu-bridge module
Patch 17-18 Further atomisp bridge code improvements
Changes in v2:
- Rebase on top of f54eb0ac7c1a ("media: ipu3-cio2: rename cio2 bridge to ipu bridge and move out of ipu3")
(rebase on top of sailus/media_tree.git/for-6.6-1.4-signed)
- Share the ipu_supported_sensors[] array between atomisp and IPU3/IPU6 (leave it in ipu-bridge.c instead of giving each consumer its own copy)
- 2 new bugfixes:
media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warnings
media: ipu-bridge: Allow building as module
Original cover-letter:
While working on adding (proper) VCM support to the atomisp code I found myself copying yet more code from drivers/media/pci/intel/ipu3/cio2-bridge.c into the atomisp code.
So I decided that it really was time to factor out the common code (most of the code) from intel/ipu3/cio2-bridge.c into its own helper library and then share it between the atomisp and IPU3 code.
This will hopefully also be useful for the ongoing work to upstream IPU6 input system support which also needs this functionality and currently contains a 3th copy of this code in the out of tree driver.
Regards,
Hans
Daniel Scally (1):
media: i2c: Add driver for DW9719 VCM
Hans de Goede (17):
media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warnings
media: ipu-bridge: Do not use on stack memory for software_node.name
field
media: ipu-bridge: Move initialization of node_names.vcm to
ipu_bridge_init_swnode_names()
media: ipu-bridge: Allow building as module
media: ipu-bridge: Make ipu_bridge_init() take a regular struct device
as argument
media: ipu-bridge: Store dev pointer in struct ipu_bridge
media: ipu-bridge: Only keep PLD around while parsing
media: ipu-bridge: Add a ipu_bridge_parse_ssdb() helper function
media: ipu-bridge: Drop early setting of sensor->adev
media: ipu-bridge: Add a parse_sensor_fwnode callback to
ipu_bridge_init()
media: ipu-bridge: Move ipu-bridge.h to include/media/
media: ipu-bridge: Add GalaxyCore GC0310 to ipu_supported_sensors[]
media: ipu-bridge: Add a runtime-pm device-link between VCM and sensor
ACPI: bus: Introduce acpi_match_acpi_device() function
media: atomisp: csi2-bridge: Switch to new common ipu_bridge_init()
media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info()
logging
media: atomisp: csi2-bridge: Add support for VCM I2C-client
instantiation
MAINTAINERS | 7 +
drivers/acpi/bus.c | 22 +-
drivers/media/i2c/Kconfig | 11 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/dw9719.c | 427 ++++++++++++++++++
drivers/media/pci/intel/Kconfig | 18 +-
drivers/media/pci/intel/ipu-bridge.c | 333 ++++++++------
drivers/media/pci/intel/ipu3/Kconfig | 20 +
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 10 +-
drivers/staging/media/atomisp/Kconfig | 3 +
.../staging/media/atomisp/pci/atomisp_csi2.h | 67 ---
.../media/atomisp/pci/atomisp_csi2_bridge.c | 424 ++++++-----------
.../staging/media/atomisp/pci/atomisp_v4l2.c | 1 +
include/acpi/acpi_bus.h | 2 +
.../pci/intel => include/media}/ipu-bridge.h | 27 +-
15 files changed, 851 insertions(+), 522 deletions(-)
create mode 100644 drivers/media/i2c/dw9719.c
rename {drivers/media/pci/intel => include/media}/ipu-bridge.h (80%)Signature · 1 line
2.41.0