]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: async: Return async sub-devices to subnotifier list
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 7 Mar 2023 13:49:44 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:15 +0000 (23:03 +0900)
commitfe12654fc91c8894bd0240bed7d1a0c8b55fb321
tree54e3f7007088e03fd1355fd9924621e74646d067
parent83753d6d89311da644843142e09e2e258430dd0c
media: v4l: async: Return async sub-devices to subnotifier list

[ Upstream commit 5276c9df9c2ab9a43b534bfb56bdb10899cd3a22 ]

When an async notifier is unregistered, the async sub-devices in the
notifier's done list will disappear with the notifier. However this is
currently also done to the sub-notifiers that remain registered. Their
sub-devices only need to be unbound while the async sub-devices themselves
need to be returned to the sub-notifier's waiting list. Do this now.

Fixes: f59ecdc6522c ("media: v4l: async: Allow binding notifiers to sub-devices")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-async.c