From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: "Linux Media Mailing List" <linux-media@vger.kernel.org>,
"Mauro Carvalho Chehab" <mchehab@infradead.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Harry Wei" <harryxiyou@gmail.com>,
"Hans Verkuil" <hans.verkuil@cisco.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Kyungmin Park" <kyungmin.park@samsung.com>,
"Heungjun Kim" <riverful.kim@samsung.com>,
"Prabhakar Lad" <prabhakar.csengg@gmail.com>,
"Andrzej Hajda" <a.hajda@samsung.com>,
"Mats Randgaard" <matrandg@cisco.com>,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
"Kukjin Kim" <kgene@kernel.org>,
"Krzysztof Kozlowski" <k.kozlowski@samsung.com>,
"Hyun Kwon" <hyun.kwon@xilinx.com>,
"Michal Simek" <michal.simek@xilinx.com>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Joe Perches" <joe@perches.com>,
"Boris BREZILLON" <boris.brezillon@f>
Subject: Re: [PATCH RFC v3 07/16] media: get rid of unused "extra_links" param on media_entity_init()
Date: Fri, 14 Aug 2015 08:07:52 -0300 [thread overview]
Message-ID: <20150814080752.1e2d1311@recife.lan> (raw)
In-Reply-To: <20150814103348.GC19840@valkosipuli.retiisi.org.uk>
Em Fri, 14 Aug 2015 13:33:48 +0300
Sakari Ailus <sakari.ailus@iki.fi> escreveu:
> Hi Mauro,
>
> On Wed, Aug 12, 2015 at 05:14:51PM -0300, Mauro Carvalho Chehab wrote:
> > Currently, media_entity_init() creates an array with the links,
> > allocated at init time. It provides a parameter (extra_links)
> > that would allocate more links than the current needs, but this
> > is not used by any driver.
> >
> > As we want to be able to do dynamic link allocation/removal,
> > we'll need to change the implementation of the links. So,
> > before doing that, let's first remove that extra unused
> > parameter, in order to cleanup the interface first.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
> >
> ...
>
>
> > diff --git a/include/media/media-entity.h b/include/media/media-entity.h
> > index 738e1d5d25dc..be6885e7c8ed 100644
> > --- a/include/media/media-entity.h
> > +++ b/include/media/media-entity.h
> > @@ -177,7 +177,7 @@ void graph_obj_init(struct media_device *mdev,
> > void graph_obj_remove(struct media_graph_obj *gobj);
> >
> > int media_entity_init(struct media_entity *entity, u16 num_pads,
> > - struct media_pad *pads, u16 extra_links);
> > + struct media_pad *pads);
> > void media_entity_cleanup(struct media_entity *entity);
> >
> > int media_entity_create_link(struct media_entity *source, u16 source_pad,
>
> How about putting this in front of the set? It has no dependencies to the
> other patches, does it?
Yeah this patch can be the first one ;) It just cleans up something
that we never used. It just needs to be before patch 8.
>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
WARNING: multiple messages have this Message-ID (diff)
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH RFC v3 07/16] media: get rid of unused "extra_links" param on media_entity_init()
Date: Fri, 14 Aug 2015 11:07:52 +0000 [thread overview]
Message-ID: <20150814080752.1e2d1311@recife.lan> (raw)
In-Reply-To: <20150814103348.GC19840@valkosipuli.retiisi.org.uk>
Em Fri, 14 Aug 2015 13:33:48 +0300
Sakari Ailus <sakari.ailus@iki.fi> escreveu:
> Hi Mauro,
>
> On Wed, Aug 12, 2015 at 05:14:51PM -0300, Mauro Carvalho Chehab wrote:
> > Currently, media_entity_init() creates an array with the links,
> > allocated at init time. It provides a parameter (extra_links)
> > that would allocate more links than the current needs, but this
> > is not used by any driver.
> >
> > As we want to be able to do dynamic link allocation/removal,
> > we'll need to change the implementation of the links. So,
> > before doing that, let's first remove that extra unused
> > parameter, in order to cleanup the interface first.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
> >
> ...
>
>
> > diff --git a/include/media/media-entity.h b/include/media/media-entity.h
> > index 738e1d5d25dc..be6885e7c8ed 100644
> > --- a/include/media/media-entity.h
> > +++ b/include/media/media-entity.h
> > @@ -177,7 +177,7 @@ void graph_obj_init(struct media_device *mdev,
> > void graph_obj_remove(struct media_graph_obj *gobj);
> >
> > int media_entity_init(struct media_entity *entity, u16 num_pads,
> > - struct media_pad *pads, u16 extra_links);
> > + struct media_pad *pads);
> > void media_entity_cleanup(struct media_entity *entity);
> >
> > int media_entity_create_link(struct media_entity *source, u16 source_pad,
>
> How about putting this in front of the set? It has no dependencies to the
> other patches, does it?
Yeah this patch can be the first one ;) It just cleans up something
that we never used. It just needs to be before patch 8.
>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
WARNING: multiple messages have this Message-ID (diff)
From: mchehab@osg.samsung.com (Mauro Carvalho Chehab)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC v3 07/16] media: get rid of unused "extra_links" param on media_entity_init()
Date: Fri, 14 Aug 2015 08:07:52 -0300 [thread overview]
Message-ID: <20150814080752.1e2d1311@recife.lan> (raw)
In-Reply-To: <20150814103348.GC19840@valkosipuli.retiisi.org.uk>
Em Fri, 14 Aug 2015 13:33:48 +0300
Sakari Ailus <sakari.ailus@iki.fi> escreveu:
> Hi Mauro,
>
> On Wed, Aug 12, 2015 at 05:14:51PM -0300, Mauro Carvalho Chehab wrote:
> > Currently, media_entity_init() creates an array with the links,
> > allocated at init time. It provides a parameter (extra_links)
> > that would allocate more links than the current needs, but this
> > is not used by any driver.
> >
> > As we want to be able to do dynamic link allocation/removal,
> > we'll need to change the implementation of the links. So,
> > before doing that, let's first remove that extra unused
> > parameter, in order to cleanup the interface first.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
> >
> ...
>
>
> > diff --git a/include/media/media-entity.h b/include/media/media-entity.h
> > index 738e1d5d25dc..be6885e7c8ed 100644
> > --- a/include/media/media-entity.h
> > +++ b/include/media/media-entity.h
> > @@ -177,7 +177,7 @@ void graph_obj_init(struct media_device *mdev,
> > void graph_obj_remove(struct media_graph_obj *gobj);
> >
> > int media_entity_init(struct media_entity *entity, u16 num_pads,
> > - struct media_pad *pads, u16 extra_links);
> > + struct media_pad *pads);
> > void media_entity_cleanup(struct media_entity *entity);
> >
> > int media_entity_create_link(struct media_entity *source, u16 source_pad,
>
> How about putting this in front of the set? It has no dependencies to the
> other patches, does it?
Yeah this patch can be the first one ;) It just cleans up something
that we never used. It just needs to be before patch 8.
>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
WARNING: multiple messages have this Message-ID (diff)
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: "Linux Media Mailing List" <linux-media@vger.kernel.org>,
"Mauro Carvalho Chehab" <mchehab@infradead.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Harry Wei" <harryxiyou@gmail.com>,
"Hans Verkuil" <hans.verkuil@cisco.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Kyungmin Park" <kyungmin.park@samsung.com>,
"Heungjun Kim" <riverful.kim@samsung.com>,
"Prabhakar Lad" <prabhakar.csengg@gmail.com>,
"Andrzej Hajda" <a.hajda@samsung.com>,
"Mats Randgaard" <matrandg@cisco.com>,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
"Kukjin Kim" <kgene@kernel.org>,
"Krzysztof Kozlowski" <k.kozlowski@samsung.com>,
"Hyun Kwon" <hyun.kwon@xilinx.com>,
"Michal Simek" <michal.simek@xilinx.com>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Joe Perches" <joe@perches.com>,
"Boris BREZILLON" <boris.brezillon@free-electrons.com>,
"Guennadi Liakhovetski" <g.liakhovetski@gmx.de>,
"Ricardo Ribalda Delgado" <ricardo.ribalda@gmail.com>,
"Axel Lin" <axel.lin@ingics.com>, "Bryan Wu" <cooloney@gmail.com>,
"Jacek Anaszewski" <j.anaszewski@samsung.com>,
"Aya Mahfouz" <mahfouz.saif.elyazal@gmail.com>,
"Haneen Mohammed" <hamohammed.sa@gmail.com>,
anuvazhayil <anuv.1994@gmail.com>,
"Mahati Chamarthy" <mahati.chamarthy@gmail.com>,
"Navya Sri Nizamkari" <navyasri.tech@gmail.com>,
"Tapasweni Pathak" <tapaswenipathak@gmail.com>,
linux-doc@vger.kernel.org, linux-kernel@zh-kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-sh@vger.kernel.org,
devel@driverdev.osuosl.org
Subject: Re: [PATCH RFC v3 07/16] media: get rid of unused "extra_links" param on media_entity_init()
Date: Fri, 14 Aug 2015 08:07:52 -0300 [thread overview]
Message-ID: <20150814080752.1e2d1311@recife.lan> (raw)
In-Reply-To: <20150814103348.GC19840@valkosipuli.retiisi.org.uk>
Em Fri, 14 Aug 2015 13:33:48 +0300
Sakari Ailus <sakari.ailus@iki.fi> escreveu:
> Hi Mauro,
>
> On Wed, Aug 12, 2015 at 05:14:51PM -0300, Mauro Carvalho Chehab wrote:
> > Currently, media_entity_init() creates an array with the links,
> > allocated at init time. It provides a parameter (extra_links)
> > that would allocate more links than the current needs, but this
> > is not used by any driver.
> >
> > As we want to be able to do dynamic link allocation/removal,
> > we'll need to change the implementation of the links. So,
> > before doing that, let's first remove that extra unused
> > parameter, in order to cleanup the interface first.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
> >
> ...
>
>
> > diff --git a/include/media/media-entity.h b/include/media/media-entity.h
> > index 738e1d5d25dc..be6885e7c8ed 100644
> > --- a/include/media/media-entity.h
> > +++ b/include/media/media-entity.h
> > @@ -177,7 +177,7 @@ void graph_obj_init(struct media_device *mdev,
> > void graph_obj_remove(struct media_graph_obj *gobj);
> >
> > int media_entity_init(struct media_entity *entity, u16 num_pads,
> > - struct media_pad *pads, u16 extra_links);
> > + struct media_pad *pads);
> > void media_entity_cleanup(struct media_entity *entity);
> >
> > int media_entity_create_link(struct media_entity *source, u16 source_pad,
>
> How about putting this in front of the set? It has no dependencies to the
> other patches, does it?
Yeah this patch can be the first one ;) It just cleans up something
that we never used. It just needs to be before patch 8.
>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
next prev parent reply other threads:[~2015-08-14 11:07 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 20:14 [PATCH RFC v3 00/16] Changes on MC core due to MC workshop discussion Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 01/16] media: Add some fields to store graph objects Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 02/16] media: Add a common embeed struct for all media " Mauro Carvalho Chehab
2015-08-14 13:08 ` Sakari Ailus
2015-08-14 13:21 ` Mauro Carvalho Chehab
2015-08-14 13:28 ` Hans Verkuil
2015-08-12 20:14 ` [PATCH RFC v3 03/16] media: add functions to inialize media_graph_obj Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 04/16] media: ensure that entities will have an object ID Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 05/16] media: initialize PAD objects Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 06/16] media: initialize the graph object inside the media links Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 07/16] media: get rid of unused "extra_links" param on media_entity_init() Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-14 10:33 ` Sakari Ailus
2015-08-14 10:33 ` Sakari Ailus
2015-08-14 10:33 ` Sakari Ailus
2015-08-14 10:33 ` Sakari Ailus
2015-08-14 11:07 ` Mauro Carvalho Chehab [this message]
2015-08-14 11:07 ` Mauro Carvalho Chehab
2015-08-14 11:07 ` Mauro Carvalho Chehab
2015-08-14 11:07 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 08/16] media: convert links from array to list Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 09/16] media: use media_graph_obj for link endpoints Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 10/16] media: rename link source/sink to pad0_source/pad1_sink Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-13 7:58 ` Hans Verkuil
2015-08-13 7:58 ` Hans Verkuil
2015-08-12 20:14 ` [PATCH RFC v3 11/16] media: rename the function that create pad links Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 12/16] media: move __media_entity_remove_link to avoid prototype Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 13/16] media: make the internal function to create links more generic Mauro Carvalho Chehab
2015-08-12 20:14 ` [PATCH RFC v3 14/16] media: add a generic function to remove a link Mauro Carvalho Chehab
2015-08-12 20:45 ` Shuah Khan
2015-08-12 20:52 ` Mauro Carvalho Chehab
2015-08-12 21:07 ` Shuah Khan
2015-08-12 20:14 ` [PATCH RFC v3 15/16] media: rename media_entity_remove_foo functions Mauro Carvalho Chehab
2015-08-12 20:15 ` [PATCH RFC v3 16/16] media: add functions to allow creating interfaces Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150814080752.1e2d1311@recife.lan \
--to=mchehab@osg.samsung.com \
--cc=a.hajda@samsung.com \
--cc=boris.brezillon@f \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=hans.verkuil@cisco.com \
--cc=harryxiyou@gmail.com \
--cc=hyun.kwon@xilinx.com \
--cc=joe@perches.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=lars@metafoo.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=matrandg@cisco.com \
--cc=mchehab@infradead.org \
--cc=michal.simek@xilinx.com \
--cc=prabhakar.csengg@gmail.com \
--cc=riverful.kim@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
--cc=soren.brinkmann@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.