All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] Revert "I2C: OMAP: detect more devices when probing an i2c bus"
Date: Tue, 22 May 2012 14:11:43 +0200	[thread overview]
Message-ID: <4FBB827F.6040801@denx.de> (raw)
In-Reply-To: <1337618793-13934-2-git-send-email-trini@ti.com>

Hello Tom,

Tom Rini wrote:
> This reverts commit 0e57968a215d1b9d271f3fa5bebeddeaea0c8075.
> 
> The short version of the original commit is that some i2c devices cannot
> be probed via read as they NAK the first cycle, so try and probe via a
> write that we abort before it writes to the device.  This however is not
> allowed by the TRM for any of these parts.  The section on I2C_CON
> (table 17-35 I2C_CON for am/dm37x for example) says you must not change
> the register while STT has been set.  On these parts, the unpredictable
> behavior that the chip exhibits is not problematic.  On OMAP4 however it
> results in the chip being in a bad state:
> Panda # i2c probe
> Valid chip addresses: 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12
> 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A
> 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42
> 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A
> 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72
> 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
> Panda # i2c md 50 0
> timed out in wait_for_pin: I2C_STAT=0
> I2C read: I/O error
> Error reading the chip.
> 
> We must revert the original behavior to bring probe back into line with
> the TRM.
> 
> Cc: Nick Thompson <nick.thompson@ge.com>
> Cc: Heiko Schocher <hs@denx.de>
> Signed-off-by: Tom Rini <trini@ti.com>
> ---
>  drivers/i2c/omap24xx_i2c.c |   42 +++++++++++++++++++++++++++++++-----------
>  1 file changed, 31 insertions(+), 11 deletions(-)

Acked-by: Heiko Schocher <hs@denx.de>

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de

  reply	other threads:[~2012-05-22 12:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21 16:46 [U-Boot] [PATCH 0/5]: Correct i2c support on am33xx Tom Rini
2012-05-21 16:46 ` [U-Boot] [PATCH 1/5] Revert "I2C: OMAP: detect more devices when probing an i2c bus" Tom Rini
2012-05-22 12:11   ` Heiko Schocher [this message]
2012-05-21 16:46 ` [U-Boot] [PATCH 2/5] am335x: Correct i2c sysc offset Tom Rini
2012-05-22 12:11   ` Heiko Schocher
2012-05-21 16:46 ` [U-Boot] [PATCH 3/5] am33xx: Fill in more cm_wkuppll / cm_perpll Tom Rini
2012-05-22 12:12   ` Heiko Schocher
2012-05-21 16:46 ` [U-Boot] [PATCH 4/5] am33xx: Fix i2c sampling rate typo Tom Rini
2012-05-22 12:12   ` Heiko Schocher
2012-05-21 16:46 ` [U-Boot] [PATCH 5/5] omap24xx_i2c: Add AM33XX support Tom Rini
2012-05-22 12:12   ` Heiko Schocher
2012-05-22  7:29 ` [U-Boot] [PATCH 0/5]: Correct i2c support on am33xx Heiko Schocher

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=4FBB827F.6040801@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.