]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] omap3isp: create links after all subdevs have been bound
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 28 Aug 2015 09:28:33 +0000 (06:28 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:44 +0000 (12:18 -0200)
commit68a57fa93a9f7776ab502db389469dd1ac6a1c66
tree8f2f510dcc1ea753b963768e606aa4263b2cd12e
parentf2f6da0d77027d05bf8a06eb8b80fe139f9cc853
[media] omap3isp: create links after all subdevs have been bound

The omap3isp driver parses the graph endpoints to know how many subdevices
needs to be registered async and register notifiers callbacks for to know
when these are bound and when the async registrations are completed.

Currently the entities pad are linked with the correct ISP input interface
when the subdevs are bound but it happens before entitities are registered
with the media device so that won't work now that the entity links list is
initialized on device registration.

So instead creating the pad links when the subdevice is bound, create them
on the complete callback once all the subdevices have been bound but only
try to create for the ones that have a bus configuration set during bound.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/isp.c