Skip to content

media: soc_camera: ov9640: switch driver to v4l2_async

[email protected] linux-media 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 0 repliesNew
  2. v24 patches 9 repliesSuperseded
  3. v15 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8media: soc_camera: ov9640: move ov9640 out of soc_cameradrivers/media/i2c/Kconfig drivers/media/i2c/Makefile drivers/media/i2c/ov9640.c +2 more+958 -20 replies
2/8media: i2c: ov9640: drop soc_camera code and switch to v4l2_asyncdrivers/media/i2c/ov9640.c drivers/media/i2c/ov9640.h+55 -230 replies
3/8MAINTAINERS: add Petr Cvek as a maintainer for the ov9640 driverMAINTAINERS+6 -00 replies
4/8media: i2c: ov9640: add missing SPDX identifiersdrivers/media/i2c/ov9640.c drivers/media/i2c/ov9640.h+2 -80 replies
5/8media: i2c: ov9640: change array index or length variables to unsigneddrivers/media/i2c/ov9640.c+8 -60 replies
6/8media: i2c: ov9640: add space before return for better claritydrivers/media/i2c/ov9640.c+5 -00 replies
7/8media: i2c: ov9640: make array of supported formats constantdrivers/media/i2c/ov9640.c+1 -10 replies
8/8media: i2c: ov9640: fix missing error handling in probedrivers/media/i2c/ov9640.c+8 -40 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] media: soc_camera: ov9640: switch driver to v4l2_async

From: Petr Cvek <[email protected]>

This patch series transfer the ov9640 driver from the soc_camera subsystem into a standalone v4l2 driver. There is no changes except the required v4l2_async calls, GPIO allocation, deletion of now unused variables, a change from mdelay() to msleep() and an addition of SPDX identifiers (as suggested in the v1 version RFC).

The config symbol has been changed from CONFIG_SOC_CAMERA_OV9640 to CONFIG_VIDEO_OV9640.

Also as the drivers of the soc_camera seems to be orphaned I'm volunteering as a maintainer of the driver (I own the hardware).

I've found the ov9640 seems to be used at least in (the future) HTC Magician and Palm Zire72. These will need to define power and reset GPIOs and remove the soc_camera definitions. I'm debugging it on magician now (ov9640 was unusable on them since the pxa_camera switched from the soc_camera).

Additional fixes (from v2) are: a fix of the probe error path, variables change to an unsigned type (indexes, lengths), a redefinition of formats array to const and better clarity of code near returns.

Petr Cvek (8):
media: soc_camera: ov9640: move ov9640 out of soc_camera
media: i2c: ov9640: drop soc_camera code and switch to v4l2_async
MAINTAINERS: add Petr Cvek as a maintainer for the ov9640 driver
media: i2c: ov9640: add missing SPDX identifiers
media: i2c: ov9640: change array index or length variables to unsigned
media: i2c: ov9640: add space before return for better clarity
media: i2c: ov9640: make array of supported formats constant
media: i2c: ov9640: fix missing error handling in probe

 MAINTAINERS                          |   6 +
 drivers/media/i2c/Kconfig            |   7 +
 drivers/media/i2c/Makefile           |   1 +
 drivers/media/i2c/ov9640.c           | 776 +++++++++++++++++++++++++++
 drivers/media/i2c/ov9640.h           | 207 +++++++
 drivers/media/i2c/soc_camera/Kconfig |   6 +-
 6 files changed, 1001 insertions(+), 2 deletions(-)
 create mode 100644 drivers/media/i2c/ov9640.c
 create mode 100644 drivers/media/i2c/ov9640.h
Signature · 1 line
2.20.0