media: entity: Add lockdep check to media graph walk
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 12 Mar 2021 09:05:44 +0000 (10:05 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 12:35:14 +0000 (14:35 +0200)
commit4ebddb7c17c4549f04741c7faf8e4ced62391d20
tree928c1a767c599fc03e08e0b641877ca3e8ab1353
parent5bf2c8b66e4eb47f16ce41b936be699d07256b76
media: entity: Add lockdep check to media graph walk

It was always assumed that walking the media graph would require holding
the media_device graph_mutex but this was not documented nor checked for.

Add a lockdep check to graph walk init and iter, and document the need for
acquiring the graph_mutex.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/mc/mc-entity.c
include/media/media-entity.h