Skip to content

Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

Daniel Scally acpica-devel linux-acpi linux-media lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest15 patches 32 repliesIn review
  2. v415 patches 21 repliesSuperseded
  3. v3 posting 2/214 patches 43 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/212 patches30 repliesSuperseded
v3 RFC posting 1/29 patches72 repliesSuperseded
v2 RFC posting 1/21 patch5 repliesSuperseded

v4 from the cover letter

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15software_node: Fix refcounts in software_node_get_next_child()drivers/base/swnode.c+6 -22 replies
2/15media: ipu3-cio2: Add headers that ipu3-cio2.h is direct user ofdrivers/media/pci/intel/ipu3/ipu3-cio2.h+18 -00 replies
3/15device property: Return true in fwnode_device_is_available for NULL opsdrivers/base/property.c+6 -02 replies
4/15device property: Call fwnode_graph_get_endpoint_by_id() for fwnode->secondarydrivers/base/property.c+8 -11 reply
5/15software_node: Enforce parent before child ordering of nodes arraysdrivers/base/swnode.c+30 -122 replies
6/15software_node: unregister software_nodes in reverse orderdrivers/base/swnode.c+11 -42 replies
7/15device property: Define format macros for ports and endpointsinclude/linux/fwnode.h+7 -04 replies
8/15software_node: Add support for fwnode_graph*() family of functionsdrivers/base/swnode.c+114 -11 reply
9/15lib/test_printf.c: Use helper function to unwind array of software_nodeslib/test_printf.c+1 -37 replies
10/15ipu3-cio2: Add T: entry to MAINTAINERSMAINTAINERS+1 -00 replies
11/15ipu3-cio2: Rename ipu3-cio2.cdrivers/media/pci/intel/ipu3/Makefile drivers/media/pci/intel/ipu3/ipu3-cio2-main.c+2 -00 replies
12/15media: v4l2-core: v4l2-async: Check sd->fwnode->secondary in match_fwnode()drivers/media/v4l2-core/v4l2-async.c+8 -00 replies
13/15ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macrodrivers/acpi/utils.c include/acpi/acpi_bus.h+33 -43 replies
14/15media: v4l2-fwnode: Include v4l2_fwnode_bus_typedrivers/media/v4l2-core/v4l2-fwnode.c include/media/v4l2-fwnode.h+22 -110 replies
15/15ipu3-cio2: Add cio2-bridge to ipu3-cio2 driverMAINTAINERS drivers/media/pci/intel/ipu3/Kconfig drivers/media/pci/intel/ipu3/Makefile +4 more+496 -03 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy ShevchenkoLaurent PinchartSakari AilusDaniel ScallyKieran BinghamPetr MladekSergey SenozhatskyHeikki KrogerusGreg Kroah-HartmanRafael J. Wysocki
SeriesA-b
1/15R-b R-b R-b R-b A-b
2/15R-b R-b T-b
3/15R-b R-b A-b R-b A-b
4/15R-b R-b A-b A-b
5/15R-b R-b A-b
6/15R-b R-b R-b A-b
7/15R-b R-b R-b A-b
8/15R-b R-b A-b
9/15R-b R-b A-b R-b
10/15R-b R-b
11/15R-b R-b
12/15R-b R-b
13/15R-b R-b A-b
14/15R-b R-b
15/15R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 10 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/15] Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

Hello all

v4:
https://lore.kernel.org/linux-media/[email protected]/T/#m11b7cb977e1b73fba1e625c3d6a189e2943a7783
v3:
https://lore.kernel.org/linux-media/[email protected]/T/#m37b831bb2b406917d6db5da9acf9ed35df65d72d
v2:
https://lore.kernel.org/linux-media/[email protected]/T/#md93fd090009b42a6a98aed892aff0d38cf07e0cd
v1:
https://lore.kernel.org/linux-media/[email protected]/T/#m91934e12e3d033da2e768e952ea3b4a125ee3e67

This series is to start adding support for webcams on laptops with ACPI tables designed for use with CIO2 on Windows. This series extends the ipu3-cio2 driver to allow for patching the firmware via software_nodes if endpoints aren't defined by ACPI.

I'm hopeful that most or all of this series could get picked up for 5.12. We touch a few different areas (listed below), but I think the easiest approach would be to merge everything through media tree. Rafael, Greg, Mauro and Sergey; are you ok with that plan, or would you prefer a different approach? Mauro; if that plan is ok (and of course assuming that the rest of the patches are acked by their respective maintainers) could we get a dedicated feature branch just in case the following series ends up being ready in time too?

lib
lib/test_printf.c: Use helper function to unwind array of
software_nodes

base
software_node: Fix refcounts in software_node_get_next_child()
property: Return true in fwnode_device_is_available for NULL ops
property: Call fwnode_graph_get_endpoint_by_id() for fwnode->secondary
software_node: Enforce parent before child ordering of nodes arrays
software_node: unregister software_nodes in reverse order
include: fwnode.h: Define format macros for ports and endpoints

acpi
acpi: Add acpi_dev_get_next_match_dev() and helper macro

media
media: v4l2-core: v4l2-async: Check sd->fwnode->secondary in
match_fwnode()
ipu3-cio2: Add T: entry to MAINTAINERS
ipu3-cio2: Rename ipu3-cio2.c
ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver
include: media: v4l2-fwnode: Include v4l2_fwnode_bus_type

Series-level changelog:
- Rebased onto 5.11-rc1

Thanks
Dan

Andy Shevchenko (1):
media: ipu3-cio2: Add headers that ipu3-cio2.h is direct user of

Daniel Scally (13):
software_node: Fix refcounts in software_node_get_next_child() device property: Return true in fwnode_device_is_available for NULL
ops
device property: Call fwnode_graph_get_endpoint_by_id() for

    fwnode->secondary

software_node: Enforce parent before child ordering of nodes arrays
software_node: unregister software_nodes in reverse order device property: Define format macros for ports and endpoints lib/test_printf.c: Use helper function to unwind array of
software_nodes
ipu3-cio2: Add T: entry to MAINTAINERS
ipu3-cio2: Rename ipu3-cio2.c
media: v4l2-core: v4l2-async: Check sd->fwnode->secondary in
match_fwnode()
ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macro
media: v4l2-fwnode: Include v4l2_fwnode_bus_type
ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver

Heikki Krogerus (1):
software_node: Add support for fwnode_graph*() family of functions

 MAINTAINERS                                   |   2 +
 drivers/acpi/utils.c                          |  30 +-
 drivers/base/property.c                       |  15 +-
 drivers/base/swnode.c                         | 180 ++++++++--
 drivers/media/pci/intel/ipu3/Kconfig          |  18 +
 drivers/media/pci/intel/ipu3/Makefile         |   3 +
 drivers/media/pci/intel/ipu3/cio2-bridge.c    | 311 ++++++++++++++++++
 drivers/media/pci/intel/ipu3/cio2-bridge.h    | 125 +++++++
 .../ipu3/{ipu3-cio2.c => ipu3-cio2-main.c}    |  34 ++
 drivers/media/pci/intel/ipu3/ipu3-cio2.h      |  24 ++
 drivers/media/v4l2-core/v4l2-async.c          |   8 +
 drivers/media/v4l2-core/v4l2-fwnode.c         |  11 -
 include/acpi/acpi_bus.h                       |   7 +
 include/linux/fwnode.h                        |   7 +
 include/media/v4l2-fwnode.h                   |  22 ++
 lib/test_printf.c                             |   4 +-
 16 files changed, 763 insertions(+), 38 deletions(-)
 create mode 100644 drivers/media/pci/intel/ipu3/cio2-bridge.c
 create mode 100644 drivers/media/pci/intel/ipu3/cio2-bridge.h
 rename drivers/media/pci/intel/ipu3/{ipu3-cio2.c => ipu3-cio2-main.c} (98%)
Signature · 1 line
2.25.1