]> 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)
commit9d112b64ba28656c54f649afc0c39da105299bd9
tree0b79c90a886a219996de74e55fe47fef146cbf2a
parent3dd63ab711a36d4405fa5dd5ccb845aa9040963a
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