linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philby John <pjohn-k0rHJ+Hhz/SB+jHODAdFcQ@public.gmane.org>
To: "Karicheri, Muralidharan" <m-karicheri2-l0cyMroinI0@public.gmane.org>
Cc: Kevin Hilman
	<khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>,
	Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
	"davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org"
	<davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org>,
	"linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: RE: [PATCH 0/2] davinci i2c fixes for 2.6.31
Date: Thu, 03 Dec 2009 21:42:23 +0530	[thread overview]
Message-ID: <1259856743.24844.13.camel@localhost.localdomain> (raw)
In-Reply-To: <A69FA2915331DC488A831521EAE36FE40155B773AC-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>

Murali,

	The patch works for DM6446 and DM355 only. To get it to work for DM365
one must update the gpio pin number variables (sda_pin and scl_pin) in
struct davinci_i2c_platform_data for each platform.

I do not have the pin number information for other Davinci platforms.
This was mentioned in the comment section of the patch v2...

"TODO: Need to add SDA and SCL pin numbers to the respective
platforms such as dm355-leopard, dm365, dm646x, da8xx etc.
What I have info on is limited to just dm355 and dm6446."

If someone can provide me with the relevant information, I could update
for all.

I used "./i2cset -y 0 0x50 0x00" cause its the only way to kill the i2c
bus on a 2.6.18 kernel with DVSDK 2.0. FYI, I do not know how to
generate cmem.ko for the Arago tree kernel that would get
"fbdev_loopback" running.

Regards,
Philby


On Thu, 2009-12-03 at 09:45 -0600, Karicheri, Muralidharan wrote:
> Philby,
> 
> Is this a generic solution which works on DM365 as well?
> 
> Why did you do the following command?
> 
> #./i2cset -y 0 0x50 0x00
> 
> Using the Arago tree kernel I was able to reproduce the issue
> by doing
> 
> ./fbdev_loopback -i2 -d0
> 
> and then press Control C. I am not sure why you run the command
> ./i2cset -y 0 0x50 0x00
> 
> 
> Murali Karicheri
> Software Design Engineer
> Texas Instruments Inc.
> Germantown, MD 20874
> phone: 301-407-9583
> email: m-karicheri2-l0cyMroinI0@public.gmane.org
> 
> >-----Original Message-----
> >From: Philby John [mailto:pjohn-k0rHJ+Hhz/SB+jHODAdFcQ@public.gmane.org]
> >Sent: Monday, November 23, 2009 10:24 AM
> >To: Karicheri, Muralidharan
> >Cc: Kevin Hilman; Ben Dooks; davinci-linux-open-
> >source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org; linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> >Subject: RE: [PATCH 0/2] davinci i2c fixes for 2.6.31
> >
> >Hello Murali,
> >
> >On Thu, 2009-07-16 at 16:22 -0500, Karicheri, Muralidharan wrote:
> >> Philby,
> >>
> >> I tried running this patch against 2.6.31.rc2 (davinci kernel tree). But
> >I got a crash as I run the application which is given below....
> >>
> >> In my case, time out happens when I kill the capture application using
> >Cntrl-C. After Cnrtl-C, the mt9t031 i2c device couldn't be contacted by the
> >host (during cleanup, i2c commands fails). When the application is run
> >again, I get following outputs..
> >>
> >> i2c_davinci i2c_davinci.1: timeout waiting for bus ready
> >> i2c_davinci i2c_davinci.1: timeout waiting for bus ready
> >>
> >> Here are the complete log....
> >>
> >> application running and pressed Cntrl-C ====>
> >>
> >> time:105    frame:33
> >> time:105    frame:34vpfe-capture vpfe-capture: stream off failed in
> >subdev
> >>
> >> Running it again .....
> >>
> >> root-fKfTphxkbEe3Z1R/gWBstg@public.gmane.org:/opt/git# ./fbdev_loopback -i2 -d0
> >
> >
> >I have now verified the code on a DM6446 and DM355, with
> >the ./fbdev_loopback test. I had to first do a #./i2cset -y 0 0x50 0x00
> >0x0000 w to kill the bus and then run the ./fbdev_loopback test to
> >recreate the issue. Recovery seems to happen with the new patch. Could
> >you try this out at your end, with the new patch?
> >
> >Thanks and regards,
> >Philby
> >
> 

  parent reply	other threads:[~2009-12-03 16:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 22:48 [PATCH 0/2] davinci i2c fixes for 2.6.31 Kevin Hilman
     [not found] ` <1246920516-31462-1-git-send-email-khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2009-07-06 22:48   ` [PATCH 1/2] i2c-davinci: convert clock usage after clkdev conversion Kevin Hilman
     [not found]     ` <1246920516-31462-2-git-send-email-khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2009-07-06 22:48       ` [PATCH 2/2] i2c-davinci: behave with i2cdetect Kevin Hilman
2009-07-07 23:19   ` [PATCH 0/2] davinci i2c fixes for 2.6.31 Ben Dooks
     [not found]     ` <20090707231938.GA9907-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
2009-07-08 13:30       ` Kevin Hilman
     [not found]         ` <87skh79uai.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2009-07-08 15:25           ` Karicheri, Muralidharan
     [not found]             ` <A69FA2915331DC488A831521EAE36FE40144D8117B-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-07-08 15:44               ` Kevin Hilman
2009-07-15  7:29               ` Philby John
     [not found]                 ` <1247642943.5981.76.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-07-15 15:35                   ` Karicheri, Muralidharan
2009-07-16 21:22                   ` Karicheri, Muralidharan
     [not found]                     ` <A69FA2915331DC488A831521EAE36FE40144F1E816-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-11-23 15:24                       ` Philby John
     [not found]                         ` <1258989866.20007.237.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-11-25  0:00                           ` Karicheri, Muralidharan
2009-12-03 15:45                           ` Karicheri, Muralidharan
     [not found]                             ` <A69FA2915331DC488A831521EAE36FE40155B773AC-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-12-03 16:12                               ` Philby John [this message]
     [not found]                                 ` <1259856743.24844.13.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-12-03 16:33                                   ` Karicheri, Muralidharan
     [not found]                                     ` <A69FA2915331DC488A831521EAE36FE40155B77431-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-12-03 16:40                                       ` Philby John
2009-12-03 16:50                                       ` Philby John
     [not found]                                         ` <1259859011.24844.19.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-12-03 18:01                                           ` Karicheri, Muralidharan
     [not found]                                             ` <A69FA2915331DC488A831521EAE36FE40155B77522-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-12-03 18:10                                               ` Philby John
     [not found]                                                 ` <1259863857.24844.27.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-12-03 19:20                                                   ` Karicheri, Muralidharan

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=1259856743.24844.13.camel@localhost.localdomain \
    --to=pjohn-k0rhj+hhz/sb+jhodadfcq@public.gmane.org \
    --cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org \
    --cc=khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=m-karicheri2-l0cyMroinI0@public.gmane.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;
as well as URLs for NNTP newsgroup(s).