From: bjanz@mac.com (Burt Janz)
To: lm-sensors@vger.kernel.org
Subject: i2c multi-master mode
Date: Thu, 19 May 2005 06:25:07 +0000 [thread overview]
Message-ID: <200407300939.54751.bjanz@mac.com> (raw)
Hi!
I am in need of an MPC5200 I2C driver which operates in multi-master mode. My
immediate need is for the MPC5200, but I'll be happy with mods to the main
I2C tree which allow me to use any supported device in multi-master mode...
..and, since I haven't found anything in the tree to do this, I am currently
hacking *my own* changes into the Denx 2.4.25 I2C driver "kit".
I've spoken via email to Simon Vogl, who recommends that I use an ioctl-based
command system to control my device. Yes, this would work, but would be
specific to the MPC5200... and I may have to support multimaster mode on the
MPC8260/8270 in the future.
So, being a pedantic sort, I'm leaning towards changing "struct i2c_algorithm"
and adding " int (*slave_xfer)" to be symmetrical with the "int
(*master_xfer)" already in place. I know this means that I'll be "changing
the world", but I'm really only interested in my own needs right now :-) LOL
This change would required a retrofit to all of the current I2C drivers in the
Denx kit (the base I'm working from). The retrofit would be a NULL in each
non-5200-based driver's i2c_algorithm initialization data to provide the
"unsupported" placeholder for the new function. This is a quickie change
that I can roll into all of the drivers I'm not working on... but, like I
said, I'm really only interested in *MY* driver... :-)
I also know that I'll need to add the underlying support for the slave_xfer
code to all of the internal routines within the I2C kit so that interrupt
handlers and other top-down function calls work properly. This is something
I'm quite willing to do... ...my driver... yada yada... :-)
Unless, of course, someone has already implemented multimaster mode handlers
for the I2C kit so I can operate a master device in slave mode until it needs
to do a transmit...
Thanks!!!
\but
--
Burt Janz
603.880.0482
bjanz@bit-net.com
www.ccsneinc.com/bjanz
next reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Burt Janz [this message]
2005-05-19 6:25 ` i2c multi-master mode Burt Janz
2005-05-19 6:25 ` Burt Janz
2005-05-19 6:25 ` Adrian Cox
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Deepak Saxena
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=200407300939.54751.bjanz@mac.com \
--to=bjanz@mac.com \
--cc=lm-sensors@vger.kernel.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 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.