From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Daniel Drake <dsd@laptop.org>
Cc: linux-media@vger.kernel.org, corbet@lwn.net
Subject: Re: [PATCH] cafe_ccic: fix subdev configuration
Date: Wed, 27 Oct 2010 12:23:59 -0200 [thread overview]
Message-ID: <4CC835FF.40309@infradead.org> (raw)
In-Reply-To: <20101027134532.3E0DF9D401B@zog.reactivated.net>
Em 27-10-2010 11:45, Daniel Drake escreveu:
> For some reason, commit 1aafeb30104a is missing one change that was
> included in the email submission.
>
> The sensor configuration must be passed down to the ov7670 subdev.
>
> Signed-off-by: Daniel Drake <dsd@laptop.org>
> ---
> drivers/media/video/cafe_ccic.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c
> index 8a07906..21f6f06 100644
> --- a/drivers/media/video/cafe_ccic.c
> +++ b/drivers/media/video/cafe_ccic.c
> @@ -2065,8 +2065,9 @@ static int cafe_pci_probe(struct pci_dev *pdev,
> sensor_cfg.clock_speed = 45;
>
> cam->sensor_addr = 0x42;
> - cam->sensor = v4l2_i2c_new_subdev(&cam->v4l2_dev, &cam->i2c_adapter,
> - NULL, "ov7670", cam->sensor_addr, NULL);
> + cam->sensor = v4l2_i2c_new_subdev_cfg(&cam->v4l2_dev, &cam->i2c_adapter,
> + "ov7670", "ov7670", 0, &sensor_cfg, cam->sensor_addr,
> + NULL);
Sorry... that was my fault. One of the parameters of v4l2_i2c_new_subdev & friends
were removed by a previous patch (the duplicate "ov7670"). I probably didn't fix
the conflict right.
As I don't want to postpone the pull request that I'll do today, waiting for more
days at linux-next, so, I'll apply this patch and send it on a next pull request.
In the interim, could you please test if using this instead will equally work?
cam->sensor = v4l2_i2c_new_subdev_cfg(&cam->v4l2_dev, &cam->i2c_adapter,
NULL, "ov7670", 0, &sensor_cfg, cam->sensor_addr,
NULL);
(you should test it against my git tree or against linux-next tree).
There's a pending patch to be applied after -rc1 release that will remove the extra
parameter, as is is not needed anymore.
Cheers,
Mauro
prev parent reply other threads:[~2010-10-27 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 13:45 [PATCH] cafe_ccic: fix subdev configuration Daniel Drake
2010-10-27 14:23 ` Mauro Carvalho Chehab [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=4CC835FF.40309@infradead.org \
--to=mchehab@infradead.org \
--cc=corbet@lwn.net \
--cc=dsd@laptop.org \
--cc=linux-media@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 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.