From: Esben Haabendal <esbenhaabendal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Joakim Tjernlund
<joakim.tjernlund-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org>
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] i2c-mpc: generate START condition after STOP caused by read i2c_msg
Date: Fri, 15 May 2009 12:18:39 +0200 [thread overview]
Message-ID: <d2b9ea600905150318s69b86b5ct3816b274bf343a79@mail.gmail.com> (raw)
In-Reply-To: <OF3CD158BA.04CCFBB5-ONC12575B6.005911D5-C12575B6.005CAFC2-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org>
Hi
Your patch (and the small addition to mpc_i2c_start) does not work for me.
[ 35.765803] mpc_xfer()
[ 35.785480] writeccr 0
[ 35.785505] writeccr 80
[ 35.785523] mpc_xfer: 1 bytes to 2c:W - 1 of 2 messages
[ 35.798817] mpc_write addr=2c len=1 restart=0
[ 35.815327] writeccr f0
[ 35.815503] I2C: SR=a2
[ 35.818675] I2C: SR=a6
[ 35.821450] mpc_xfer: 1 bytes to 2c:R - 2 of 2 messages
[ 35.827119] mpc_read addr=2c len=1 restart=1
[ 35.837463] writeccr f4
[ 35.837641] I2C: SR=a6
[ 35.840011] writeccr e8
[ 35.840133] I2C: SR=a3
[ 35.843596] writeccr 80
[ 35.843632] mpc_xfer()
[ 35.855068] writeccr 0
[ 35.855093] writeccr 80
[ 35.855111] mpc_xfer: 1 bytes to 2c:W - 1 of 2 messages
[ 35.865346] mpc_write addr=2c len=1 restart=0
[ 35.870109] writeccr f0
[ 35.870272] I2C: SR=a2
[ 35.873372] I2C: SR=a6
[ 35.875757] mpc_xfer: 1 bytes to 2c:R - 2 of 2 messages
[ 35.881606] mpc_read addr=2c len=1 restart=1
[ 35.886290] writeccr f4
[ 35.886463] I2C: SR=a6
[ 35.889425] writeccr e8
[ 35.889575] I2C: SR=a7
[ 35.891944] writeccr 80
[ 35.961177] mpc_xfer()
[ 35.972517] writeccr 0
[ 35.972541] writeccr 80
[ 35.972559] mpc_xfer: 1 bytes to 4e:W - 1 of 20 messages
[ 35.982628] mpc_write addr=4e len=1 restart=0
[ 35.987389] writeccr f0
[ 35.987424] I2C: SR=b3
[ 35.990386] I2C: MAL
[ 35.992971] i2c_wait(address) error: -5
[ 35.997215] writeccr 80
[ 35.997241] Error: i2c_transfer failed: -5
I have now spent a few hours trying a lot of different paths to fix
this approach, but I simply cannot find a way to get i2c read to work
without a trailing STOP condition with this controller.
Is there a problem in applying my patch, as it should be "clean"
improvement over the current implementation, which uses STOP
condition, but does not work.
Until Isomeone finds a way to get it to work without STOP, we will
have a working driver, which I assume is what we want.
Best regards,
Esben Haabendal
--
Esben Haabendal, Senior Software Consultant
DoréDevelopment ApS, Ved Stranden 1, 9560 Hadsund, DK-Denmark
Phone: +45 51 92 53 93, E-mail: eha-SIcX2qgNSybd/EuGEV170n9LOBIZ5rWg@public.gmane.org
WWW: http://www.doredevelopment.dk
next prev parent reply other threads:[~2009-05-15 10:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 8:10 [PATCH] i2c-mpc: generate START condition after STOP caused by read i2c_msg Esben Haabendal
[not found] ` <4A0BD1DB.4090305-SIcX2qgNSybd/EuGEV170n9LOBIZ5rWg@public.gmane.org>
2009-05-14 8:34 ` Wolfram Sang
[not found] ` <20090514083453.GB3043-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-05-14 8:48 ` Esben Haabendal
2009-05-14 9:58 ` Joakim Tjernlund
[not found] ` <d2b9ea600905140317u7a4b9a70s574568d79a1ce7cc@mail.gmail.com>
[not found] ` <OF3CD158BA.04CCFBB5-ONC12575B6.005911D5-C12575B6.005CAFC2@transmode.se>
[not found] ` <OF3CD158BA.04CCFBB5-ONC12575B6.005911D5-C12575B6.005CAFC2-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org>
2009-05-15 10:18 ` Esben Haabendal [this message]
[not found] ` <d2b9ea600905150318s69b86b5ct3816b274bf343a79-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-15 11:05 ` Joakim Tjernlund
[not found] ` <OFCADC684E.A2599121-ONC12575B7.003B8AB5-C12575B7.003CF795-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org>
2009-05-15 12:52 ` Esben Haabendal
[not found] ` <d2b9ea600905150552u6951a92es5dd119dcc37e641d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-15 14:16 ` Joakim Tjernlund
2009-05-18 11:04 ` Wolfram Sang
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=d2b9ea600905150318s69b86b5ct3816b274bf343a79@mail.gmail.com \
--to=esbenhaabendal-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=joakim.tjernlund-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@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).