Re: i2c errors on omap3430sdp

2008-10-01 Thread Jason Marini
Sergio,

Yes, that is what I have seen as well.  Although this specific
function returns -ETIMEDOUT, a function farther up the call stack must
be looping until success.

-Jason

> Jason, Felipe,
>
> Apparently it was a HW issue with the camkit I was using.
>
> I realized that when trying with another one :)
>
> Anyways, I appreciate your help and time.
>
> Jason, BTW, this messages kept appearing endlessly without being able to kill 
> the \
> process, is that expected?
>
> Regards,
> Sergio
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On \
>Behalf Of Jason Marini
> Sent: Monday, September 29, 2008 11:18 AM
> To: linux-omap@vger.kernel.org
> Subject: Re: i2c errors on omap3430sdp
>
> > > Hi all,
> > >
> > > I'm currently testing the OV3640 CSI2 camera implementation for 3430SDP, 
> > > and I \
> > > had \ it working some weeks ago.
> > > Today I did a git pull from the master branch.
> > >
> > > Without changing anything i2c related, I now sometimes get a message that 
> > > I \
> > > wasn't \ getting before:
> > > i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
> > > finish
> > > i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
> > > finish
> > >
> > > Anyone is seeing this?
> > >
> > > Any omap i2c registration changes that I could be missing?
> >
> > Is you driver new style i2c driver ???
> >
> > Can you put some printks in your driver and try to narrow down which
> > transfer is triggering this timeout ??
> >
> > --
> > balbi
> > --
>
> Sergio,
>
> I recently added a patch to print out that message if the i2c bus took
> longer than 1s to poll for the i2c start condition.  I had been seeing
> kernel lockups when doing soft resets, and JTAG debug pointed me an
> infinite loop in the omap_i2c_read_reg function.  I added a timeout,
> as can be seen in my patch here:
> http://marc.info/?l=linux-omap&m=121995188317408&w=2
>
> You are seeing this message instead of a kernel hang :^)
>
> -Jason Marini
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: i2c errors on omap3430sdp

2008-09-29 Thread Aguirre Rodriguez, Sergio Alberto
Jason, Felipe,

Apparently it was a HW issue with the camkit I was using.

I realized that when trying with another one :)

Anyways, I appreciate your help and time.

Jason, BTW, this messages kept appearing endlessly without being able to kill 
the process, is that expected?

Regards,
Sergio

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Marini
Sent: Monday, September 29, 2008 11:18 AM
To: linux-omap@vger.kernel.org
Subject: Re: i2c errors on omap3430sdp

>> Hi all,
>>
>> I'm currently testing the OV3640 CSI2 camera implementation for 3430SDP, and 
>> I had \
>> it working some weeks ago.
>> Today I did a git pull from the master branch.
>>
>> Without changing anything i2c related, I now sometimes get a message that I 
>> wasn't \
>> getting before:
>> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
>> finish
>> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
>> finish
>>
>> Anyone is seeing this?
>>
>> Any omap i2c registration changes that I could be missing?
>
>Is you driver new style i2c driver ???
>
>Can you put some printks in your driver and try to narrow down which
>transfer is triggering this timeout ??
>
>--
>balbi
>--

Sergio,

I recently added a patch to print out that message if the i2c bus took
longer than 1s to poll for the i2c start condition.  I had been seeing
kernel lockups when doing soft resets, and JTAG debug pointed me an
infinite loop in the omap_i2c_read_reg function.  I added a timeout,
as can be seen in my patch here:
http://marc.info/?l=linux-omap&m=121995188317408&w=2

You are seeing this message instead of a kernel hang :^)

-Jason Marini
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: i2c errors on omap3430sdp

2008-09-29 Thread Jason Marini
>> Hi all,
>>
>> I'm currently testing the OV3640 CSI2 camera implementation for 3430SDP, and 
>> I had \
>> it working some weeks ago.
>> Today I did a git pull from the master branch.
>>
>> Without changing anything i2c related, I now sometimes get a message that I 
>> wasn't \
>> getting before:
>> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
>> finish
>> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
>> finish
>>
>> Anyone is seeing this?
>>
>> Any omap i2c registration changes that I could be missing?
>
>Is you driver new style i2c driver ???
>
>Can you put some printks in your driver and try to narrow down which
>transfer is triggering this timeout ??
>
>--
>balbi
>--

Sergio,

I recently added a patch to print out that message if the i2c bus took
longer than 1s to poll for the i2c start condition.  I had been seeing
kernel lockups when doing soft resets, and JTAG debug pointed me an
infinite loop in the omap_i2c_read_reg function.  I added a timeout,
as can be seen in my patch here:
http://marc.info/?l=linux-omap&m=121995188317408&w=2

You are seeing this message instead of a kernel hang :^)

-Jason Marini
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: i2c errors on omap3430sdp

2008-09-29 Thread Felipe Balbi
On Mon, Sep 29, 2008 at 08:59:38AM -0500, ext Aguirre Rodriguez, Sergio Alberto 
wrote:
> Hi all,
> 
> I'm currently testing the OV3640 CSI2 camera implementation for 3430SDP, and 
> I had it working some weeks ago.
> 
> Today I did a git pull from the master branch.
> 
> Without changing anything i2c related, I now sometimes get a message that I 
> wasn't getting before:
> 
> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
> finish
> i2c_omap i2c_omap.2: controller timed out waiting for start condition to 
> finish
> 
> Anyone is seeing this?
> 
> Any omap i2c registration changes that I could be missing?

Is you driver new style i2c driver ???

Can you put some printks in your driver and try to narrow down which
transfer is triggering this timeout ??

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html