OSDN Git Service

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)
commitf5ffb81f51376eb5a12e8c4cb4871426c65bb2af
tree1e99f0b3c5e73fbeac9f90053a59aeca248b0f66
parent9bac67214fbf4b5f23463f7742ccf69bfe684cbd
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: 86e02d07871c ("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