Re: [PATCH v6 6/8] [media] media: add messages when media device gets (un)registered

2015-08-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Aug 2015 04:35:04 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > Thank you for the patch. > > On Wednesday 19 August 2015 08:01:53 Mauro Carvalho Chehab wrote: > > We can only free the media device after being sure that no > > graph object is used. > > media_device_release() is cu

Re: [PATCH v6 6/8] [media] media: add messages when media device gets (un)registered

2015-08-20 Thread Laurent Pinchart
Hi Mauro, Thank you for the patch. On Wednesday 19 August 2015 08:01:53 Mauro Carvalho Chehab wrote: > We can only free the media device after being sure that no > graph object is used. media_device_release() is currently broken as it should call back to the driver that has allocated the media_

Re: [PATCH v6 6/8] [media] media: add messages when media device gets (un)registered

2015-08-19 Thread Hans Verkuil
On 08/19/15 13:01, Mauro Carvalho Chehab wrote: > We can only free the media device after being sure that no > graph object is used. > > In order to help tracking it, let's add debug messages > that will print when the media controller gets registered > or unregistered. > > Signed-off-by: Mauro C

[PATCH v6 6/8] [media] media: add messages when media device gets (un)registered

2015-08-19 Thread Mauro Carvalho Chehab
We can only free the media device after being sure that no graph object is used. In order to help tracking it, let's add debug messages that will print when the media controller gets registered or unregistered. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-device.c b/dri