Thread (1 message) 1 message, 1 author, 2017-09-26

Re: [PATCH v14 15/28] v4l: async: Allow binding notifiers to sub-devices

From: Sakari Ailus <hidden>
Date: 2017-09-26 08:20:46
Also in: linux-media

On Tue, Sep 26, 2017 at 01:25:26AM +0300, Sakari Ailus wrote:
Registering a notifier has required the knowledge of struct v4l2_device
for the reason that sub-devices generally are registered to the
v4l2_device (as well as the media device, also available through
v4l2_device).

This information is not available for sub-device drivers at probe time.

What this patch does is that it allows registering notifiers without
having v4l2_device around. Instead the sub-device pointer is stored in the
notifier. Once the sub-device of the driver that registered the notifier
is registered, the notifier will gain the knowledge of the v4l2_device,
and the binding of async sub-devices from the sub-device driver's notifier
may proceed.

The root notifier's complete callback is only called when all sub-device
notifiers are completed.
This paragraph is actually no longer true. I changed it to:

	The complete callbacks will be called only when the v4l2_device is
	available and no notifier has pending sub-devices to bind.

-- 
Sakari Ailus
e-mail: sakari.ailus-X3B1VOXEql0@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help