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)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 16:54:00 +0000 (18:54 +0200)
commit5276c9df9c2ab9a43b534bfb56bdb10899cd3a22
tree1945354f2c0c71ab393f447864121173fa26a777
parent5ba1cc41bf39fdff1f0a092b34bf2d5bc811dab9
media: v4l: async: Return async sub-devices to subnotifier list

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: 2cab00bb076b ("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>
drivers/media/v4l2-core/v4l2-async.c