Skip to content

media: staging: rkisp1: fix fwnode API usage and remove v4l2_mbus_config field

Dafna Hirschfeld linux-media linux-rockchip 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 1 replySuperseded

Changes in v3 from the cover letter

patch 1: rename the field parallel_bus_flags to mbus_flags and set it to vep->bus.mipi_csi2.flags instead of 0
so that the original logic does not change, but only the fields names.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: staging: rkisp1: remove mbus field from rkisp1_sensor_asyncdrivers/staging/media/rkisp1/rkisp1-common.h drivers/staging/media/rkisp1/rkisp1-dev.c drivers/staging/media/rkisp1/rkisp1-isp.c+22 -531 reply
2/2media: staging: rkisp1: replace the call to v4l2_async_notifier_parse_fwnode_endpoints_by_portdrivers/staging/media/rkisp1/TODO drivers/staging/media/rkisp1/rkisp1-dev.c+53 -401 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHelen Koike
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] media: staging: rkisp1: fix fwnode API usage and remove v4l2_mbus_config field

This patchset fixes usage of the APIs.
This fixes the item in the TODO file:

* Don't use v4l2_async_notifier_parse_fwnode_endpoints_by_port(). e.g. isp_parse_of_endpoints in drivers/media/platform/omap3isp/isp.c cio2_parse_firmware in drivers/media/pci/intel/ipu3/ipu3-cio2.c.

Patches summary:

- The first patch removes the field v4l2_mbus_config from 'struct rkisp1_sensor_async'.

- The second patch removes the usage of v4l2_async_notifier_parse_fwnode_endpoints_by_port.
The code is very similar to the code in the function cio2_parse_firmware but instead of iterating the ports it iterates the id's.
The patch also removes the relevant item from the TODO file.

changes since v1:
- patch 2 - in the function rkisp1_subdev_notifier:
1. move the test 'if (next_id == 0)' outside of the while loop
2. remove the 'end' label.
The changes are due to Helen Koike's comments

changes since v2:
patch 1: rename the field parallel_bus_flags to mbus_flags and set it to vep->bus.mipi_csi2.flags instead of 0
so that the original logic does not change, but only the fields names.

patch 2: in the function rkisp1_subdev_notifier:
- remove a newline between a call to 'fwnode_graph_get_endpoint_by_id' to the test of its ret value.
- define 'next_id' as 'unsigned int' instead of 'int'
- rename 'parallel_bus_flags' to 'mbus_flags' and set it to vep.bus.mipi_csi2.flags instead of 0 (this follows previous patch of the series)
- when no remote sensor is found, log it with dev_dbg instead of dev_warn

Dafna Hirschfeld (2):
media: staging: rkisp1: remove mbus field from rkisp1_sensor_async
media: staging: rkisp1: replace the call to
v4l2_async_notifier_parse_fwnode_endpoints_by_port

 drivers/staging/media/rkisp1/TODO            |   3 -
 drivers/staging/media/rkisp1/rkisp1-common.h |   3 +-
 drivers/staging/media/rkisp1/rkisp1-dev.c    | 104 ++++++++++---------
 drivers/staging/media/rkisp1/rkisp1-isp.c    |  52 +++-------
 4 files changed, 72 insertions(+), 90 deletions(-)
Signature · 1 line
2.17.1