linux-sg2042/drivers/media/i2c/soc_camera
Jacopo Mondi ab924af9ac [media] media: i2c: ov772x: Force use of SCCB protocol
Commit e789029761 ("i2c: sh_mobile: don't send a stop condition by
default inside transfers") makes the i2c_sh_mobile I2C-adapter emit a
stop/start sequence between messages in a single transfer only when
explicitly requested with I2C_M_STOP.

This breaks the ov772x driver in the SH4 Migo-R board as the Omnivision
sensor uses the I2C-like SCCB protocol that doesn't support repeated
starts:

i2c-sh_mobile i2c-sh_mobile.0: Transfer request timed out
ov772x 0-0021: Product ID error 92:92

Fix it by marking the client as SCCB, forcing the emission of a
stop/start sequence between all messages.
As I2C_M_STOP requires the I2C adapter to support protocol mangling,
ensure that the I2C_FUNC_PROTOCOL_MANGLING functionality is available.

Tested on SH4 Migo-R board, with OV772x now successfully probing

soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
ov772x 0-0021: ov7725 Product ID 77:21 Manufacturer ID 7f:a2

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-23 08:28:05 -03:00
..
Kconfig [media] ov2640: convert from soc-camera to a standard subdev sensor driver 2017-04-10 13:38:17 -03:00
Makefile [media] ov2640: convert from soc-camera to a standard subdev sensor driver 2017-04-10 13:38:17 -03:00
imx074.c [media] imx074: avoid calling imx074_find_datafmt() twice 2017-04-14 22:28:34 -03:00
mt9m001.c [media] mt9m001: avoid calling mt9m001_find_datafmt() twice 2017-04-14 22:29:13 -03:00
mt9t031.c [media] media: i2c: soc_camera: constify v4l2_subdev_* structures 2017-03-23 14:43:49 -03:00
mt9t112.c [media] media: i2c: soc_camera: constify v4l2_subdev_* structures 2017-03-23 14:43:49 -03:00
mt9v022.c [media] mt9v022: avoid calling mt9v022_find_datafmt() twice 2017-04-14 22:29:57 -03:00
ov772x.c [media] media: i2c: ov772x: Force use of SCCB protocol 2017-06-23 08:28:05 -03:00
ov5642.c [media] ov5642: avoid calling ov5642_find_datafmt() twice 2017-04-14 22:30:21 -03:00
ov6650.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
ov9640.c [media] ov9640: avoid calling ov9640_res_roundup() twice 2017-04-14 22:31:47 -03:00
ov9640.h [media] soc-camera: switch I2C subdevice drivers to use v4l2-clk 2013-06-21 16:32:36 -03:00
ov9740.c [media] ov9740: avoid calling ov9740_res_roundup() twice 2017-04-14 22:32:26 -03:00
rj54n1cb0c.c [media] media: i2c: soc_camera: constify v4l2_subdev_* structures 2017-03-23 14:43:49 -03:00
tw9910.c [media] media: i2c: soc_camera: constify v4l2_subdev_* structures 2017-03-23 14:43:49 -03:00