* vpif_display.c bug
@ 2009-08-10 6:07 Hans Verkuil
2009-08-10 12:51 ` chaithrika
2009-08-10 15:07 ` Karicheri, Muralidharan
0 siblings, 2 replies; 6+ messages in thread
From: Hans Verkuil @ 2009-08-10 6:07 UTC (permalink / raw)
To: chaithrika; +Cc: linux-media
Hi Chaithrika,
This code in vpif_display.c is not correct:
for (i = 0; i < subdev_count; i++) {
vpif_obj.sd[i] = v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
i2c_adap, subdevdata[i].name,
subdevdata[i].name,
&subdevdata[i].addr);
if (!vpif_obj.sd[i]) {
vpif_err("Error registering v4l2 subdevice\n");
goto probe_subdev_out;
}
if (vpif_obj.sd[i])
vpif_obj.sd[i]->grp_id = 1 << i;
}
This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
The list of probe addresses must be terminated by I2C_CLIENT_END (= -1) and
that isn't the case here.
An alternative solution is to use v4l2_i2c_new_subdev, but then no probing
will take place. But I think that you don't want probing at all since this
address information comes from the platform data, so one can assume that
that data is correct.
Even better is to copy the implementation from vpfe_capture.c and to use
v4l2_i2c_new_subdev_board().
Regards,
Hans
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: vpif_display.c bug
2009-08-10 6:07 vpif_display.c bug Hans Verkuil
@ 2009-08-10 12:51 ` chaithrika
2009-08-10 15:09 ` Karicheri, Muralidharan
2009-08-10 15:07 ` Karicheri, Muralidharan
1 sibling, 1 reply; 6+ messages in thread
From: chaithrika @ 2009-08-10 12:51 UTC (permalink / raw)
To: 'Hans Verkuil'; +Cc: linux-media
On Mon, Aug 10, 2009 at 11:37:23, Hans Verkuil wrote:
> Hi Chaithrika,
>
> This code in vpif_display.c is not correct:
>
> for (i = 0; i < subdev_count; i++) {
> vpif_obj.sd[i] = v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
> i2c_adap, subdevdata[i].name,
> subdevdata[i].name,
> &subdevdata[i].addr);
> if (!vpif_obj.sd[i]) {
> vpif_err("Error registering v4l2 subdevice\n");
> goto probe_subdev_out;
> }
>
> if (vpif_obj.sd[i])
> vpif_obj.sd[i]->grp_id = 1 << i;
> }
>
> This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
>
> The list of probe addresses must be terminated by I2C_CLIENT_END (= -1) and
> that isn't the case here.
>
> An alternative solution is to use v4l2_i2c_new_subdev, but then no probing
> will take place. But I think that you don't want probing at all since this
> address information comes from the platform data, so one can assume that
> that data is correct.
>
> Even better is to copy the implementation from vpfe_capture.c and to use
> v4l2_i2c_new_subdev_board().
>
Hans,
Thank you for the suggestions.
I will look into this and submit a patch to correct this bug.
Regards,
Chaithrika
> Regards,
>
> Hans
>
> --
> Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: vpif_display.c bug
2009-08-10 6:07 vpif_display.c bug Hans Verkuil
2009-08-10 12:51 ` chaithrika
@ 2009-08-10 15:07 ` Karicheri, Muralidharan
2009-08-11 6:35 ` Hans Verkuil
1 sibling, 1 reply; 6+ messages in thread
From: Karicheri, Muralidharan @ 2009-08-10 15:07 UTC (permalink / raw)
To: Hans Verkuil, Subrahmanya, Chaithrika; +Cc: linux-media@vger.kernel.org
Hans,
I have already changed v4l2_i2c_new_probed_subdev() to v4l2_i2c_new_subdev_board() in my latest patch set for adding vpif capture driver for DM6467 that you had reviewed. I think this change is not needed
once that patch is applied.
Murali Karicheri
Software Design Engineer
Texas Instruments Inc.
Germantown, MD 20874
new phone: 301-407-9583
Old Phone : 301-515-3736 (will be deprecated)
email: m-karicheri2@ti.com
>-----Original Message-----
>From: linux-media-owner@vger.kernel.org [mailto:linux-media-
>owner@vger.kernel.org] On Behalf Of Hans Verkuil
>Sent: Monday, August 10, 2009 2:07 AM
>To: Subrahmanya, Chaithrika
>Cc: linux-media@vger.kernel.org
>Subject: vpif_display.c bug
>
>Hi Chaithrika,
>
>This code in vpif_display.c is not correct:
>
> for (i = 0; i < subdev_count; i++) {
> vpif_obj.sd[i] =
>v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
> i2c_adap,
>subdevdata[i].name,
> subdevdata[i].name,
> &subdevdata[i].addr);
> if (!vpif_obj.sd[i]) {
> vpif_err("Error registering v4l2 subdevice\n");
> goto probe_subdev_out;
> }
>
> if (vpif_obj.sd[i])
> vpif_obj.sd[i]->grp_id = 1 << i;
> }
>
>This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
>
>The list of probe addresses must be terminated by I2C_CLIENT_END (= -1) and
>that isn't the case here.
>
>An alternative solution is to use v4l2_i2c_new_subdev, but then no probing
>will take place. But I think that you don't want probing at all since this
>address information comes from the platform data, so one can assume that
>that data is correct.
>
>Even better is to copy the implementation from vpfe_capture.c and to use
>v4l2_i2c_new_subdev_board().
>
>Regards,
>
> Hans
>
>--
>Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
>--
>To unsubscribe from this list: send the line "unsubscribe linux-media" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: vpif_display.c bug
2009-08-10 12:51 ` chaithrika
@ 2009-08-10 15:09 ` Karicheri, Muralidharan
2009-08-11 9:51 ` chaithrika
0 siblings, 1 reply; 6+ messages in thread
From: Karicheri, Muralidharan @ 2009-08-10 15:09 UTC (permalink / raw)
To: Subrahmanya, Chaithrika, 'Hans Verkuil'
Cc: linux-media@vger.kernel.org
Chaithrika,
No need to change this since this is already corrected as part of my vpif capture patch set that I had submitted for review. I had mentioned this to Hans as well.
Murali Karicheri
Software Design Engineer
Texas Instruments Inc.
Germantown, MD 20874
new phone: 301-407-9583
Old Phone : 301-515-3736 (will be deprecated)
email: m-karicheri2@ti.com
>-----Original Message-----
>From: linux-media-owner@vger.kernel.org [mailto:linux-media-
>owner@vger.kernel.org] On Behalf Of Subrahmanya, Chaithrika
>Sent: Monday, August 10, 2009 8:51 AM
>To: 'Hans Verkuil'
>Cc: linux-media@vger.kernel.org
>Subject: RE: vpif_display.c bug
>
>On Mon, Aug 10, 2009 at 11:37:23, Hans Verkuil wrote:
>> Hi Chaithrika,
>>
>> This code in vpif_display.c is not correct:
>>
>> for (i = 0; i < subdev_count; i++) {
>> vpif_obj.sd[i] =
>v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
>> i2c_adap,
>subdevdata[i].name,
>> subdevdata[i].name,
>> &subdevdata[i].addr);
>> if (!vpif_obj.sd[i]) {
>> vpif_err("Error registering v4l2 subdevice\n");
>> goto probe_subdev_out;
>> }
>>
>> if (vpif_obj.sd[i])
>> vpif_obj.sd[i]->grp_id = 1 << i;
>> }
>>
>> This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
>>
>> The list of probe addresses must be terminated by I2C_CLIENT_END (= -1)
>and
>> that isn't the case here.
>>
>> An alternative solution is to use v4l2_i2c_new_subdev, but then no
>probing
>> will take place. But I think that you don't want probing at all since
>this
>> address information comes from the platform data, so one can assume that
>> that data is correct.
>>
>> Even better is to copy the implementation from vpfe_capture.c and to use
>> v4l2_i2c_new_subdev_board().
>>
>
>Hans,
>Thank you for the suggestions.
>I will look into this and submit a patch to correct this bug.
>
>Regards,
>Chaithrika
>
>> Regards,
>>
>> Hans
>>
>> --
>> Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
>>
>
>
>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-media" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: vpif_display.c bug
2009-08-10 15:07 ` Karicheri, Muralidharan
@ 2009-08-11 6:35 ` Hans Verkuil
0 siblings, 0 replies; 6+ messages in thread
From: Hans Verkuil @ 2009-08-11 6:35 UTC (permalink / raw)
To: Karicheri, Muralidharan
Cc: Subrahmanya, Chaithrika, linux-media@vger.kernel.org
On Monday 10 August 2009 17:07:51 Karicheri, Muralidharan wrote:
> Hans,
>
> I have already changed v4l2_i2c_new_probed_subdev() to v4l2_i2c_new_subdev_board() in my latest patch set for adding vpif capture driver for DM6467 that you had reviewed. I think this change is not needed
> once that patch is applied.
You are right. Hmm, I really have a bad memory for these things, I reviewed
it only last Friday :-(
Regards,
Hans
>
> Murali Karicheri
> Software Design Engineer
> Texas Instruments Inc.
> Germantown, MD 20874
> new phone: 301-407-9583
> Old Phone : 301-515-3736 (will be deprecated)
> email: m-karicheri2@ti.com
>
> >-----Original Message-----
> >From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> >owner@vger.kernel.org] On Behalf Of Hans Verkuil
> >Sent: Monday, August 10, 2009 2:07 AM
> >To: Subrahmanya, Chaithrika
> >Cc: linux-media@vger.kernel.org
> >Subject: vpif_display.c bug
> >
> >Hi Chaithrika,
> >
> >This code in vpif_display.c is not correct:
> >
> > for (i = 0; i < subdev_count; i++) {
> > vpif_obj.sd[i] =
> >v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
> > i2c_adap,
> >subdevdata[i].name,
> > subdevdata[i].name,
> > &subdevdata[i].addr);
> > if (!vpif_obj.sd[i]) {
> > vpif_err("Error registering v4l2 subdevice\n");
> > goto probe_subdev_out;
> > }
> >
> > if (vpif_obj.sd[i])
> > vpif_obj.sd[i]->grp_id = 1 << i;
> > }
> >
> >This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
> >
> >The list of probe addresses must be terminated by I2C_CLIENT_END (= -1) and
> >that isn't the case here.
> >
> >An alternative solution is to use v4l2_i2c_new_subdev, but then no probing
> >will take place. But I think that you don't want probing at all since this
> >address information comes from the platform data, so one can assume that
> >that data is correct.
> >
> >Even better is to copy the implementation from vpfe_capture.c and to use
> >v4l2_i2c_new_subdev_board().
> >
> >Regards,
> >
> > Hans
> >
> >--
> >Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
> >--
> >To unsubscribe from this list: send the line "unsubscribe linux-media" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: vpif_display.c bug
2009-08-10 15:09 ` Karicheri, Muralidharan
@ 2009-08-11 9:51 ` chaithrika
0 siblings, 0 replies; 6+ messages in thread
From: chaithrika @ 2009-08-11 9:51 UTC (permalink / raw)
To: 'Karicheri, Muralidharan', 'Hans Verkuil'; +Cc: linux-media
On Mon, Aug 10, 2009 at 20:39:05, Karicheri, Muralidharan wrote:
> Chaithrika,
>
> No need to change this since this is already corrected as part of my vpif capture patch set that I had submitted for review. I had mentioned this to Hans as well.
>
Murali,
Thank you for correcting this bug in your patch set.
Regards,
Chaithrika
> Murali Karicheri
> Software Design Engineer
> Texas Instruments Inc.
> Germantown, MD 20874
> new phone: 301-407-9583
> Old Phone : 301-515-3736 (will be deprecated)
> email: m-karicheri2@ti.com
>
> >-----Original Message-----
> >From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> >owner@vger.kernel.org] On Behalf Of Subrahmanya, Chaithrika
> >Sent: Monday, August 10, 2009 8:51 AM
> >To: 'Hans Verkuil'
> >Cc: linux-media@vger.kernel.org
> >Subject: RE: vpif_display.c bug
> >
> >On Mon, Aug 10, 2009 at 11:37:23, Hans Verkuil wrote:
> >> Hi Chaithrika,
> >>
> >> This code in vpif_display.c is not correct:
> >>
> >> for (i = 0; i < subdev_count; i++) {
> >> vpif_obj.sd[i] =
> >v4l2_i2c_new_probed_subdev(&vpif_obj.v4l2_dev,
> >> i2c_adap,
> >subdevdata[i].name,
> >> subdevdata[i].name,
> >> &subdevdata[i].addr);
> >> if (!vpif_obj.sd[i]) {
> >> vpif_err("Error registering v4l2 subdevice\n");
> >> goto probe_subdev_out;
> >> }
> >>
> >> if (vpif_obj.sd[i])
> >> vpif_obj.sd[i]->grp_id = 1 << i;
> >> }
> >>
> >> This: '&subdevdata[i].addr' should be: I2C_ADDRS(subdevdata[i].addr).
> >>
> >> The list of probe addresses must be terminated by I2C_CLIENT_END (= -1)
> >and
> >> that isn't the case here.
> >>
> >> An alternative solution is to use v4l2_i2c_new_subdev, but then no
> >probing
> >> will take place. But I think that you don't want probing at all since
> >this
> >> address information comes from the platform data, so one can assume that
> >> that data is correct.
> >>
> >> Even better is to copy the implementation from vpfe_capture.c and to use
> >> v4l2_i2c_new_subdev_board().
> >>
> >
> >Hans,
> >Thank you for the suggestions.
> >I will look into this and submit a patch to correct this bug.
> >
> >Regards,
> >Chaithrika
> >
> >> Regards,
> >>
> >> Hans
> >>
> >> --
> >> Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
> >>
> >
> >
> >
> >
> >--
> >To unsubscribe from this list: send the line "unsubscribe linux-media" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-08-11 11:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-10 6:07 vpif_display.c bug Hans Verkuil
2009-08-10 12:51 ` chaithrika
2009-08-10 15:09 ` Karicheri, Muralidharan
2009-08-11 9:51 ` chaithrika
2009-08-10 15:07 ` Karicheri, Muralidharan
2009-08-11 6:35 ` Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox