]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: Do not hold the group lock when unregistering notifier
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sun, 28 Nov 2021 13:24:59 +0000 (14:24 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:55 +0000 (11:29 +0100)
commit11cc92f42c674886f7a9e41e2b086b7882118e90
tree27696adcfe734b2dbc4012d62c92d75a29e6b898
parenta849dee39deccda885c748c7ebe234bc7412261e
media: rcar-vin: Do not hold the group lock when unregistering notifier

There is no need to hold the group lock when unregistering the notifier,
but doing so triggers a warning about a possible cyclic lock dependency.

The lock warning cover the case where a subdevice is about to be bound
to the notifier at the same time as it's unregistered. The locking for
this scenario is handled in the v4l2-async framework so it's safe to
remove the lock in the driver. This match the locking logic in the
driver for when the notifier in question is registered.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c