MLK-12062: ov5647: Fix imx7d mipi csi phy failed to detect signal
authorSandor Yu <R01008@freescale.com>
Tue, 22 Dec 2015 08:08:28 +0000 (16:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:35 +0000 (14:49 -0500)
commit0bec797d525d65a7ee3a62fb1cac66947fdb8434
treef00fd98afbc2d1eb3093bd4a6606d75ff2362ed8
parentd469a0c5cb5832b57875044a0206bf0c027012c2
MLK-12062: ov5647: Fix imx7d mipi csi phy failed to detect signal

The patch is to fix the issue,
mipi csi unit test mx6s_v4l2_capture.out can not work in 2nd time.

In ov5647 driver, clock and data lane will been setting to LP11 mode
when stream off. And the mode will been changed to LP00 mode
at the begin of ov5647 initialization.
If MIPI CSI DPHY in power on state, it will begin to work after
clock and data lane level changed, even ov5647 is not ready.
MIPI PHY may lose ov5647 signal.

Fixed the issue with:
i.  Stream off ov5647 when ov5647 driver probe.
ii. Add 5ms delay after software reset bit set.
iii.Setting both clock and data lane in LP00 when stream off.

Signed-off-by: Sandor Yu <R01008@freescale.com>
(cherry picked from commit d351a9b3ad46309354a30b256be1a39c339effcd)
drivers/media/platform/mxc/subdev/ov5647_mipi.c