LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
To: "Eitan Rabin" <rabin@mellanox.co.il>,
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: MPC860 and I2C
Date: Thu, 8 May 2003 23:19:12 +0200	[thread overview]
Message-ID: <002501c315a7$7e309260$020120b0@jockeXP> (raw)
In-Reply-To: 506C3D7B14CDD411A52C00025558DED603018B6A-100000@mtlex01.yok.mtl.com


> Hi All,
>
> I'm trying to use the MPC I2C controller to generate I2C transactions. I
> use  the devel kernel version and include the I2C relocation patch (seen
> in /var/log/messages).

Can you post the message it prints?

>
> I used the standard I2C driver and also tried the driver downloaded
> directly from lmsensors.
>
> The problem occurs when I activate the master. As soon as I give the
> master the start command (i2c->i2c_i2com = 0x80) for the DMA transaction
> to start the CPU complete freezes.
> I narrowed the problem and found out the it is actually the address of the
> descriptor the one causing the CPU to hang. If I give addresses that are
> relatively small, few Kilos, then everything is OK. If I give addresses
> that are given to me by kmalloc and translated properly then the cpu
> hangs.

What address? Have you made any changes to the driver?
Can you post some example code?

> It seems to me that maybe something is wrong with the SDMA
> configuration.

hmm, if SDMA doesn't work as it should I think you would experience
problems with the console and ethernet.

Make sure that SDA and clock signals has a pull up resistor.

Jocke

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2003-05-08 21:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-08 19:04 MPC860 and I2C Eitan Rabin
2003-05-08 21:19 ` Joakim Tjernlund [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08 19:18 Steven Blakeslee
2003-05-08 19:20 ` Eitan Rabin
2003-05-08 21:24   ` Joakim Tjernlund
2003-05-08 22:17     ` Eitan Rabin

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='002501c315a7$7e309260$020120b0@jockeXP' \
    --to=joakim.tjernlund@lumentis.se \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=rabin@mellanox.co.il \
    /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