media: ov2740: allow OTP data access during streaming
authorBingbu Cao <bingbu.cao@intel.com>
Fri, 13 Nov 2020 03:06:58 +0000 (04:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 25 Nov 2020 13:41:15 +0000 (14:41 +0100)
commit5e6fd339b68df81f35a70b4aa0501e3eec1dd2de
treec1e12e92f9e88c746d82ae2b265cd6938b636a4c
parent798f1a6b0efcb33e5f3abe048aa9d546ca849cd8
media: ov2740: allow OTP data access during streaming

OTP data access of ov2740 need enable the streaming mode to load
and it could be done in any time, so driver need allow the OTP
data access during streaming instead of return EBUSY, this patch
try to read the OTP data out in STREAMON if OTP data is not ready
before first time streaming start.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Qingwu Zhang <qingwu.zhang@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov2740.c