public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers/i2c/fsl_i2c: modify i2c_read to handle multi-byte write
Date: Fri, 11 Apr 2014 12:39:03 +0200	[thread overview]
Message-ID: <5347C647.8010207@denx.de> (raw)
In-Reply-To: <1397205713-14076-1-git-send-email-shaveta@freescale.com>

Hello Shaveta Leekha,

Am 11.04.2014 10:41, schrieb Shaveta Leekha:
> Most of the I2C slaves support accesses in the typical style
> that is : read/write series of bytes at particular address offset.
> These transactions look like:"
> (1) START:Address:Tx:Offset:RESTART:Address[0..4]:Tx/Rx:data[0..n]:STOP"
>
> However there are certain devices which support accesses in
> terms of the transactions as follows:
> (2) "START:Address:Tx:Txdata[0..n1]:Clock_stretching:
>          RESTART:Address:Rx:data[0..n2]"
> Here Txdata is typically a command and some associated data,
> similarly Rxdata could be command status plus some data received
> as a response to the command sent.
>
> Type (1) transactions are currently supportd in the
> i2c driver using i2c_read and i2c_write APIs. I2C EEPROMs,
> RTC, etc fall in this category.
>
> To handle type (2) along with type (1) transactions,
> i2c_read() function has been modified.
>
> Signed-off-by: Shaveta Leekha<shaveta@freescale.com>
> Signed-off-by: Poonam Aggrwal<poonam.aggrwal@freescale.com>
> ---
>   drivers/i2c/fsl_i2c.c |   41 ++++++++++++++++++++++++++++++++++-------
>   1 files changed, 34 insertions(+), 7 deletions(-)

Hmm? Is this v2 of the following patch?:

[U-Boot] 2c: modify i2c_read API to handle multi-bytes writes
http://patchwork.ozlabs.org/patch/336911/

If so, please stick to the follow rules, for sending updated
patches:

http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2014-04-11 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  8:41 [U-Boot] [PATCH] drivers/i2c/fsl_i2c: modify i2c_read to handle multi-byte write Shaveta Leekha
2014-04-11 10:39 ` Heiko Schocher [this message]
2014-04-21  7:32   ` Shaveta

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=5347C647.8010207@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /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