From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
linux-sh@vger.kernel.org
Subject: Re: [PATCH 1/2] V4L: sh_mobile_ceu_camera: maximum image size depends on the hardware version
Date: Wed, 21 Mar 2012 12:06:13 +0100 [thread overview]
Message-ID: <148041421.OMs5SD2LFA@avalon> (raw)
In-Reply-To: <Pine.LNX.4.64.1203211157340.31443@axis700.grange>
Hi Guennadi,
On Wednesday 21 March 2012 11:59:59 Guennadi Liakhovetski wrote:
> On Wed, 21 Mar 2012, Laurent Pinchart wrote:
> > On Wednesday 14 March 2012 16:02:20 Guennadi Liakhovetski wrote:
> > > Newer CEU versions, e.g., the one, used on sh7372, support image sizes
> > > larger than 2560x1920. Retrieve maximum sizes from platform properties.
> >
> > Isn't there a way you could query the CEU version at runtime instead ?
>
> I'm not aware of any. And even if it were possible, I'm not sure putting
> tables with "version - feature-set" tables into the driver proper would be
> a very good idea. It used to be like that (or almost like that with
> dependencies on the chip-type) in other drivers (e.g., shdma) and we
> dropped it in favour of platform data.
I would have voted for doing it the other way around. The driver should know
about the different hardware versions it supports. Putting that in platform
data just moves the burden to board code developers and duplicates the
information in lots of places. At worse, if you can't detect the version at
runtime, I would put a version field in the platform data and map that to
hardware features in the driver.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2012-03-21 11:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 15:02 [PATCH 1/2] V4L: sh_mobile_ceu_camera: maximum image size depends on the hardware version Guennadi Liakhovetski
2012-03-14 15:02 ` [PATCH 2/2] ARM: mach-shmobile: sh7372 CEU supports up to 8188x8188 images Guennadi Liakhovetski
2012-04-08 11:23 ` Guennadi Liakhovetski
2012-04-16 1:55 ` Simon Horman
2012-03-21 10:52 ` [PATCH 1/2] V4L: sh_mobile_ceu_camera: maximum image size depends on the hardware version Laurent Pinchart
2012-03-21 10:59 ` Guennadi Liakhovetski
2012-03-21 11:06 ` Laurent Pinchart [this message]
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=148041421.OMs5SD2LFA@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox