]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: change the code to properly wait for sensor
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 19 May 2020 08:35:38 +0000 (10:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 12:51:29 +0000 (14:51 +0200)
commit40790042bffadecff7796047b96a3bf2e88f11da
tree0b79c90a886a219996de74e55fe47fef146cbf2a
parentd56862ad0454e2888ca19417b11386a336e650d8
media: atomisp: change the code to properly wait for sensor

The sensor should finish its init before atomisp driver, as
otherwise the atomisp driver won't be able to talk with it.

So, we need to turn atomisp_gmin_platform into a module
again, for it to not depend on atomisp driver to finish
probing, and add some delay at atomisp to let the sensor
driver to finish probing.

Yeah, this is hacky. The real solution here would be to use
the async framework, but for now, our goal is to make the
driver to work. So, let's postpone such change to be done
later.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/Makefile
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
drivers/staging/media/atomisp/pci/atomisp_v4l2.c