public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Media entity links handling
@ 2013-05-09 12:29 Sylwester Nawrocki
  2013-05-09 12:29 ` [RFC PATCH 1/2] media: Add function removing all media entity links Sylwester Nawrocki
  2013-05-09 12:29 ` [RFC PATCH 2/2] V4L: Remove all links of a media entity when unregistering subdev Sylwester Nawrocki
  0 siblings, 2 replies; 9+ messages in thread
From: Sylwester Nawrocki @ 2013-05-09 12:29 UTC (permalink / raw)
  To: linux-media
  Cc: laurent.pinchart, sakari.ailus, kyungmin.park, sw0312.kim,
	a.hajda, hj210.choi, Sylwester Nawrocki

Hi All,

This small patch set add a function for removing all links at a media
entity. I found out such a function is needed when media entites that
belong to single media device have drivers in different kernel modules.
This means virtually all camera drivers, since sensors are separate
modules from the host interface drivers.

More details can be found in the commits' description.

The links removal from a media entity is rather strightforward, but when
and where links should be created/removed is not immediately clear to me.

I assumed that links should be created/removed only when an entity is
registered to its media device, and with the graph mutex held.

I'm open to opinions whether it's good or not and possibly suggestions
on how those issues could be handled differently.

Thanks,
Sylwester

Sylwester Nawrocki (2):
  media: Add function removing all media entity links
  V4L: Remove all links of a media entity when unregistering subdev

 drivers/media/media-entity.c          |   51 +++++++++++++++++++++++++++++++++
 drivers/media/v4l2-core/v4l2-device.c |    4 ++-
 include/media/media-entity.h          |    3 ++
 3 files changed, 57 insertions(+), 1 deletion(-)

--
1.7.9.5


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-06-10 10:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 12:29 [RFC PATCH 0/2] Media entity links handling Sylwester Nawrocki
2013-05-09 12:29 ` [RFC PATCH 1/2] media: Add function removing all media entity links Sylwester Nawrocki
2013-05-10 10:00   ` [RFC PATCH v2 " Sylwester Nawrocki
2013-06-06 19:41     ` Sakari Ailus
2013-06-09 18:38       ` Sylwester Nawrocki
2013-06-09 22:15         ` Sakari Ailus
2013-06-10 10:26           ` Sylwester Nawrocki
2013-06-10 10:35             ` Sylwester Nawrocki
2013-05-09 12:29 ` [RFC PATCH 2/2] V4L: Remove all links of a media entity when unregistering subdev Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox