]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: imx: mipi csi-2: Don't fail if initial state times-out
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 27 Jun 2019 22:29:12 +0000 (19:29 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:40 +0000 (13:13 +0200)
commit3c88b089e5923cd3f70ff4d0181b7733cb7f8c5e
tree3ecf6567f3607f5b4b1971a942b596a6464c85ba
parentcab41bda0849383483b51284b8640fda43674b38
media: imx: mipi csi-2: Don't fail if initial state times-out

[ Upstream commit 0d5078c7172c46db6c58718d817b9fcf769554b4 ]

Not all sensors will be able to guarantee a proper initial state.
This may be either because the driver is not properly written,
or (probably unlikely) because the hardware won't support it.

While the right solution in the former case is to fix the sensor
driver, the real world not always allows right solutions, due to lack
of available documentation and support on these sensors.

Let's relax this requirement, and allow the driver to support stream start,
even if the sensor initial sequence wasn't the expected.

Also improve the warning message to better explain the problem and provide
a hint that the sensor driver needs to be fixed.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx6-mipi-csi2.c