OSDN Git Service

media: ccs: Support and default to auto PHY control
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 9 Oct 2020 10:57:06 +0000 (12:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 16:53:11 +0000 (17:53 +0100)
commit9c3d7e5549ebc507c8ec1c516fc163a94d27976d
tree710f3c1c62022dc8a16e343aa3a6ff0d301703b7
parent2f23ecbf40c8c6572017a036505695e1c2ebb7c4
media: ccs: Support and default to auto PHY control

CCS supports three variants of PHY timing control, auto, UI based and
manual. The driver previously assumed UI based control that requires
updating the link rate to the sensor. Now default to automatic control
instead, and only write the link rate to the sensor in UI mode.

If neither auto or UI control is supported, return an error in probe.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c