media: sun6i-csi: Convert to active state and improve MC support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 0 repliesNew
- v42 patches 0 repliesSuperseded
- v33 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 0 replies | Superseded | |
| v1 | 3 patches | 7 replies | Superseded |
Changes in v5 from the cover letter
- Check NV12_16L16 format in enum_framesizes based on Sashiko feedback
- Dropped Rb tags due to changes in second patch
- Link to Sashiko feedback: https://linuxtv.org/mailman3/hyperkitty/list/[email protected]/message/22UBXCNQCK3JZSSWMDWIHRIFNAZ3EK6V/
- Link to v4: https://patchwork.kernel.org/project/linux-media/list/?series=1129723
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | media: sun6i-csi: bridge: Use V4L2 subdev active statedrivers/ drivers/ drivers/ | +86 | 0 replies | |
| 2/2 | media: sun6i-csi: capture: Implement vidioc_enum_framesizesdrivers/ | +28 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Paul Kocialkowski | Laurent Pinchart |
|---|---|---|
| 1/2 | R-b T-b | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] media: sun6i-csi: Convert to active state and improve MC support
Hi,
This series modernizes the sun6i-csi driver by aligning the bridge and capture components with the V4L2 subdev active state API and improving media controller integration.
The first patch migrates the bridge driver to the V4L2 subdev active state framework. The private mbus_format field and its associated lock are removed, with the framework-managed state becoming the single source of truth. As part of this change, the capture driver no longer accesses bridge-private data directly and instead resolves the active format through the subdev pad API. Since the hardware does not perform format conversion, identical formats are enforced on both pads.
The second patch implements vidioc_enum_framesizes for the capture device, reporting a stepwise range of even frame sizes within the hardware limits.
Hardware testing performed on LicheePi Zero Dock (Allwinner V3s):
- Parallel pipeline (csi1):
ov7670 -> sun6i-csi-bridge -> sun6i-csi-capture
- MIPI pipeline (csi0):
ov5647 -> sun6i-mipi-csi2 -> sun6i-csi-bridge -> sun6i-csi-capture
---
Changes in v5:
- Check NV12_16L16 format in enum_framesizes based on Sashiko feedback
- Dropped Rb tags due to changes in second patch
- Link to Sashiko feedback: https://linuxtv.org/mailman3/hyperkitty/list/[email protected]/message/22UBXCNQCK3JZSSWMDWIHRIFNAZ3EK6V/
- Link to v4: https://patchwork.kernel.org/project/linux-media/list/?series=1129723
Changes in v4:
- Remove sun6i-csi MC centric patch due to Paul feedback
- Link to discussion: https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/
- Link to v3: https://patchwork.kernel.org/project/linux-media/list/?series=1091921
Changes in v3:
- Fix Media CI robot warnings about open parenthesis
- Link to report: https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/99380724/artifacts/report.htm
- Link to v2: https://patchwork.kernel.org/project/linux-media/list/?series=1091728
Changes in v2:
- Fix indentation in link validation path
- Return pixelformat directly instead of a pointer
- Link to v1: https://patchwork.kernel.org/project/linux-media/list/?series=1054768
Arash Golgol (2):
media: sun6i-csi: bridge: Use V4L2 subdev active state
media: sun6i-csi: capture: Implement vidioc_enum_framesizes
.../sunxi/sun6i-csi/sun6i_csi_bridge.c | 155 ++++++++---------- .../sunxi/sun6i-csi/sun6i_csi_bridge.h | 9 - .../sunxi/sun6i-csi/sun6i_csi_capture.c | 55 ++++++- 3 files changed, 114 insertions(+), 105 deletions(-)
Signature · 1 line
2.34.1