From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org,
Hans Verkuil <hans.verkuil@cisco.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Prabhakar Lad <prabhakar.csengg@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH 1/2] v4l2 subdevs: replace get/set_crop by get/set_selection
Date: Mon, 08 Dec 2014 02:17:11 +0200 [thread overview]
Message-ID: <1777193.G4Ej6mIZTU@avalon> (raw)
In-Reply-To: <20141203110559.GE14746@valkosipuli.retiisi.org.uk>
Hi Sakari,
On Wednesday 03 December 2014 13:06:00 Sakari Ailus wrote:
> On Tue, Dec 02, 2014 at 01:21:40PM +0100, Hans Verkuil wrote:
> > From: Hans Verkuil <hans.verkuil@cisco.com>
> >
> > The crop and selection pad ops are duplicates. Replace all uses of
> > get/set_crop by get/set_selection. This will make it possible to drop
> > get/set_crop altogether.
> >
> > Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>
> > Cc: Philipp Zabel <p.zabel@pengutronix.de>
>
> For both:
>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
> Another point I'd like to draw attention to are the reserved fields --- some
> drivers appear to zero them whereas some pay no attention. Shouldn't we
> check in the sub-device IOCTL handler that the user has zeroed them, or
> zero them for the user? I think this has probably been discussed before on
> V4L2. Both have their advantages, probably zeroing them in the framework
> would be the best option. What do you think?
I think we should at least be consistent across drivers. Duplicating checks
across drivers being more error-prone it would likely be better to implement
them in core code. The question that remains to be answered is whether we can
consider that bridge drivers will correctly zero reserved fields when using
the API internally. If not, we'll need wrapper functions around subdev
operations to zero reserved fields, or possibly just to output a WARN_ON (as a
bridge driver bug should be fixed instead of silently ignored).
> Definitely out of scope of this set.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-12-08 0:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 12:21 [PATCH 1/2] v4l2 subdevs: replace get/set_crop by get/set_selection Hans Verkuil
2014-12-02 12:21 ` [PATCH 2/2] v4l2-subdev: drop get/set_crop pad ops Hans Verkuil
2014-12-02 12:33 ` Laurent Pinchart
2014-12-02 12:44 ` [PATCH 1/2] v4l2 subdevs: replace get/set_crop by get/set_selection Laurent Pinchart
2014-12-03 0:50 ` Prabhakar Lad
2014-12-03 11:06 ` Sakari Ailus
2014-12-03 14:04 ` Hans Verkuil
2014-12-08 0:17 ` Laurent Pinchart [this message]
2014-12-08 1:27 ` Sakari Ailus
2014-12-03 11:14 ` Sylwester Nawrocki
2014-12-03 11:17 ` Hans Verkuil
2014-12-03 11:49 ` Sylwester Nawrocki
2014-12-03 12:37 ` Hans Verkuil
2014-12-03 13:07 ` Laurent Pinchart
2014-12-03 11:19 ` Sakari Ailus
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=1777193.G4Ej6mIZTU@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=prabhakar.csengg@gmail.com \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
/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.