]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] v4l: mt9v032: Do not unset master_mode
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 14 Dec 2015 14:41:52 +0000 (12:41 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 10:58:58 +0000 (07:58 -0300)
commit78060d51950d242a3e20941b1280fcc76850634c
tree92e50cbad67efb235d2e7b1c63a5aad8fe155d1b
parentf823a3fd4b54d562711ee1b7da06d9dc47c9bce7
[media] v4l: mt9v032: Do not unset master_mode

The power_on function of the driver resets the chip and sets the
CHIP_CONTROL register to 0. This switches the operating mode to slave.
The s_stream function sets the correct mode. But this caused problems on
a board where the camera chip is operated as master. The camera started
after a random amount of time streaming an image, I observed between 10
and 300 seconds.

The STRFM_OUT and STLN_OUT pins are not connected on this board which
may cause some issues in slave mode. I could not find any documentation
about this.

Keeping the chip in master mode after the reset helped to fix this
issue for me.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/mt9v032.c