public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/2] Media entity links handling
@ 2013-06-10 14:54 Sylwester Nawrocki
  2013-06-10 14:54 ` Sylwester Nawrocki
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Sylwester Nawrocki @ 2013-06-10 14:54 UTC (permalink / raw)
  To: linux-media
  Cc: laurent.pinchart, sakari.ailus, kyungmin.park, a.hajda,
	Sylwester Nawrocki

Hi,

This is an updated version of the patch set
http://www.spinics.net/lists/linux-media/msg64536.html

Comparing to v2 it includes improvements of the __media_entity_remove_links()
function, thanks to Sakari. 

The cover letter of v2 is included below.

This small patch set adds a function for removing all links at a media
entity. I found out such a function is needed when media entites that
belong to a 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 at each patch's 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 normally be created/removed when an entity
is registered to its media device, 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.

The changes since original version are listed in patch 1/2, in patch 2/2
only the commit description has changed slightly.

Thanks,
Sylwester

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

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

-- 
1.7.9.5


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

end of thread, other threads:[~2013-06-17 20:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-10 14:54 [RFC PATCH v3 0/2] Media entity links handling Sylwester Nawrocki
2013-06-10 14:54 ` Sylwester Nawrocki
2013-06-11 10:50   ` Sakari Ailus
2013-06-11 10:50     ` [RFC PATCH 1/2] smiapp: Clean up media entity after unregistering subdev Sakari Ailus
2013-06-11 10:50       ` [RFC PATCH 2/2] davinci_vpfe: " Sakari Ailus
2013-06-11 11:38         ` Sylwester Nawrocki
2013-06-12  4:44         ` Prabhakar Lad
2013-06-16 21:16           ` Sylwester Nawrocki
2013-06-17  8:07             ` Prabhakar Lad
2013-06-17 20:43             ` Sakari Ailus
2013-06-11 11:38       ` [RFC PATCH 1/2] smiapp: " Sylwester Nawrocki
2013-06-11 11:36     ` [RFC PATCH v3 0/2] Media entity links handling Sylwester Nawrocki
2013-06-10 14:54 ` [RFC PATCH v3 1/2] media: Add a function removing all links of a media entity Sylwester Nawrocki
2013-06-11 11:44   ` Sylwester Nawrocki
2013-06-10 14:54 ` [RFC PATCH v3 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