Skip to content

Unified fwnode endpoint parser

Sakari Ailus linux-devicetree linux-media 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 of 3 patches 0 repliesNew
  2. v33 patches 7 repliesSuperseded

Changes in v4 from the cover letter

- Rebase on current mediatree master.

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3omap3isp: Drop redundant isp->subdevs field and ISP_MAX_SUBDEVSdrivers/media/platform/omap3isp/isp.h+0 -30 replies
2/3v4l: fwnode: Support generic parsing of graph endpoints in a devicedrivers/media/platform/omap3isp/isp.c drivers/media/v4l2-core/v4l2-fwnode.c include/media/v4l2-async.h +1 more+172 -810 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] Unified fwnode endpoint parser

Hi folks,

We have a large influx of new, unmerged, drivers that are now parsing fwnode endpoints and each one of them is doing this a little bit differently. The needs are still exactly the same for the graph data structure is device independent. This is still a non-trivial task and the majority of the driver implementations are buggy, just buggy in different ways.

Facilitate parsing endpoints by adding a convenience function for parsing the endpoints, and make the omap3isp driver use it as an example.

I plan to include the first and second patch to a pull request soonish, the third could go in with the first user.

since v3:

- Rebase on current mediatree master.

since v2:

- Rebase on CCP2 support patches.

- Prepend a patch cleaning up omap3isp driver a little.

since v1:

- The first patch has been merged (it was a bugfix).

- In anticipation that the parsing can take place over several iterations, take the existing number of async sub-devices into account when re-allocating an array of async sub-devices.

- Rework the first patch to better anticipate parsing single endpoint at a time by a driver.

- Add a second patch that adds a function for parsing endpoints one at a time based on port and endpoint numbers.

Sakari Ailus (3):
omap3isp: Drop redundant isp->subdevs field and ISP_MAX_SUBDEVS
v4l: fwnode: Support generic parsing of graph endpoints in a device
v4l: fwnode: Support generic parsing of graph endpoints in a single
port

 drivers/media/platform/omap3isp/isp.c | 116 +++++++---------------
 drivers/media/platform/omap3isp/isp.h |   3 -
 drivers/media/v4l2-core/v4l2-fwnode.c | 176 ++++++++++++++++++++++++++++++++++
 include/media/v4l2-async.h            |   4 +-
 include/media/v4l2-fwnode.h           |  16 ++++
 5 files changed, 231 insertions(+), 84 deletions(-)
Signature · 20 lines
2.11.0


*** BLURB HERE ***

Sakari Ailus (3):
  omap3isp: Drop redundant isp->subdevs field and ISP_MAX_SUBDEVS
  v4l: fwnode: Support generic parsing of graph endpoints in a device
  v4l: fwnode: Support generic parsing of graph endpoints in a single
    port

 drivers/media/platform/omap3isp/isp.c | 115 +++++++---------------
 drivers/media/platform/omap3isp/isp.h |   3 -
 drivers/media/v4l2-core/v4l2-fwnode.c | 176 ++++++++++++++++++++++++++++++++++
 include/media/v4l2-async.h            |   4 +-
 include/media/v4l2-fwnode.h           |  16 ++++
 5 files changed, 230 insertions(+), 84 deletions(-)

-- 
2.11.0