Skip to content

introduce SCCB regmap

Akinobu Mita linux-i2c linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest3 patches 15 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3regmap: add SCCB supportdrivers/base/regmap/Kconfig drivers/base/regmap/Makefile drivers/base/regmap/regmap-sccb.c +1 more+168 -07 replies
2/3media: ov772x: use SCCB regmapdrivers/media/i2c/Kconfig drivers/media/i2c/ov772x.c+82 -1117 replies
3/3media: ov9650: use SCCB regmapdrivers/media/i2c/Kconfig drivers/media/i2c/ov9650.c+76 -821 reply

Reviews trailers per patch

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

PatchWolfram SangJacopo MondiSebastian Reichel
1/3R-b R-b
2/3A-b R-b
3/3A-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 3 reviewers.

Read the v4 thread

Cover letter [PATCH -next v4 0/3] introduce SCCB regmap

This patchset introduces Serial Camera Control Bus (SCCB) support for regmap API and convert ov772x and ov9650 drivers to use it.

This patchset was previously submitted as "introduce SCCB helpers" that provides three functions (sccb_is_available, sccb_read_byte, and sccb_write_byte). This time, the helpers are replaced by regmap API, but internal code is not much changed from the previous version.

* v4
- Introduce SCCB regmap instead of helper functions, suggested by Sebastian Reichel
- Change ov772x driver to use regmap instead of helper functions
- Add register access conversion for ov9650 driver

* v3
- Rewrite the helpers based on the code provided by Wolfram
- Convert ov772x driver to use SCCB helpers

v2
- Convert all helpers into static inline functions, and remove C source and Kconfig option.
- Acquire i2c adapter lock while issuing two requests for sccb_read_byte

Akinobu Mita (3):
regmap: add SCCB support
media: ov772x: use SCCB regmap
media: ov9650: use SCCB regmap

 drivers/base/regmap/Kconfig       |   4 +
 drivers/base/regmap/Makefile      |   1 +
 drivers/base/regmap/regmap-sccb.c | 128 +++++++++++++++++++++++++
 drivers/media/i2c/Kconfig         |   2 +
 drivers/media/i2c/ov772x.c        | 192 ++++++++++++++++----------------------
 drivers/media/i2c/ov9650.c        | 157 +++++++++++++++----------------
 include/linux/regmap.h            |  35 +++++++
 7 files changed, 326 insertions(+), 193 deletions(-)
 create mode 100644 drivers/base/regmap/regmap-sccb.c
Cc Mark Brown <[email protected]>
Cc Peter Rosin <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Sylwester Nawrocki <[email protected]>
Cc Jacopo Mondi <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Hans Verkuil <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Signature · 1 line
2.7.4