From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philby John Subject: RE: [PATCH 0/2] davinci i2c fixes for 2.6.31 Date: Mon, 23 Nov 2009 20:54:26 +0530 Message-ID: <1258989866.20007.237.camel@localhost.localdomain> References: <1246920516-31462-1-git-send-email-khilman@deeprootsystems.com> <20090707231938.GA9907@fluff.org.uk> <87skh79uai.fsf@deeprootsystems.com> <1247642943.5981.76.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Karicheri, Muralidharan" Cc: Kevin Hilman , Ben Dooks , "davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org" , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-i2c@vger.kernel.org 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