]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx7_mipi_csis: fix racy entity pads init
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 30 Apr 2019 22:25:23 +0000 (18:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:13:01 +0000 (12:13 -0400)
commitd6b6571759e9db7a7423fc052766ad4cfe650052
tree4584b9fcc4f7269edd3585cda09f6d2cbde95fac
parentf4885fba0fa08e2fb59fcd40b5e70fc75e7287db
media: imx7_mipi_csis: fix racy entity pads init

Setting the media entity pads after the async register subdev can be
racy with probe complete callback. So, make sure that the media pads
are initialized before the probe complete is called.

For that move the media entity pads initialization to the registered
subdev internal operation.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c