]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx7: csi: Fix pad link validation
authorRui Miguel Silva <rmfrfs@gmail.com>
Thu, 7 Jan 2021 10:47:26 +0000 (11:47 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 14 Jan 2021 12:57:01 +0000 (13:57 +0100)
commit4c9028a7d090a33f404578d5939627d581e5c847
tree1e99f0b3c5e73fbeac9f90053a59aeca248b0f66
parentb8a5cdaeca5ab67f02c163dad37c2d91a36e1f43
media: imx7: csi: Fix pad link validation

We can not make the assumption that the bound subdev is always a CSI
mux, in i.MX6UL/i.MX6ULL that is not the case. So, just get the entity
selected by source directly upstream from the CSI.

Fixes: 48d1b32fa38d ("media: imx5/6/7: csi: Mark a bound video mux as a CSI mux")
Reported-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c