From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Albert Wang <twang13@marvell.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
"corbet@lwn.net" <corbet@lwn.net>,
"g.liakhovetski@gmx.de" <g.liakhovetski@gmx.de>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Libin Yang <lbyang@marvell.com>
Subject: Re: [PATCH 2/4] [media] marvell-ccic: core: add soc camera support on marvell-ccic mcam-core
Date: Fri, 28 Sep 2012 20:45:16 +0200 [thread overview]
Message-ID: <5065F03C.4000509@gmail.com> (raw)
In-Reply-To: <477F20668A386D41ADCC57781B1F7043083B590CA2@SC-VEXCH1.marvell.com>
Hi,
On 09/28/2012 08:37 PM, Albert Wang wrote:
>>> + ret = v4l2_subdev_call(sd, core, g_chip_ident,&id);
>
>> Yuck. Don't abuse this. g_chip_ident is for debugging purposes only.
>
> Yes, can remove it.
>
>>> + if (ret< 0) {
>>> + cam_err(mcam, "%s %d\n", __func__, __LINE__);
>>> + return ret;
>>> + }
>>> +
>>> + strcpy(cap->card, mcam->card_name);
>>> + strncpy(cap->driver, (const char *)&(id.ident), 4);
>
>> No, the name of the driver is the name of this module: marvell_ccic.
>> It's *not* the name of the sensor driver.
>
> Yes, maybe you are right, we misunderstood this usage.
>
> But I'm confused with how can we put the sensor module name to upper level?
> I mean upper level user want to know which sensor module is connecting to the controller.
> Currently, our user get the sensor module name by call this ioctl VIDIOC_QUERYCAP.
>
> Anyway, maybe we need change the usage model.
Is there anything preventing you from using VIDIOC_ENUM_INPUT/VIDIOC_G_INPUT
ioctls for that ?
--
Regards,
Sylwester
next prev parent reply other threads:[~2012-09-28 18:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 13:47 [PATCH 2/4] [media] marvell-ccic: core: add soc camera support on marvell-ccic mcam-core Albert Wang
2012-09-28 14:15 ` Hans Verkuil
2012-09-28 18:37 ` Albert Wang
2012-09-28 18:45 ` Sylwester Nawrocki [this message]
2012-09-29 19:40 ` Jonathan Corbet
2012-09-29 23:30 ` Guennadi Liakhovetski
2012-10-05 14:17 ` Albert Wang
2012-10-15 7:15 ` Albert Wang
2012-10-15 8:02 ` Guennadi Liakhovetski
2012-09-30 21:10 ` Jonathan Corbet
2012-10-05 14:17 ` Albert Wang
2012-10-05 14:16 ` Albert Wang
2012-09-29 23:27 ` Guennadi Liakhovetski
2012-10-05 14:48 ` Albert Wang
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=5065F03C.4000509@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=corbet@lwn.net \
--cc=g.liakhovetski@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=lbyang@marvell.com \
--cc=linux-media@vger.kernel.org \
--cc=twang13@marvell.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.