From: mhoffman@lightlink.com (Mark M. Hoffman)
To: lm-sensors@vger.kernel.org
Subject: i2c multi-master mode
Date: Thu, 19 May 2005 06:25:08 +0000 [thread overview]
Message-ID: <20040805045131.GD4844@jupiter.solarsys.private> (raw)
In-Reply-To: <200407300939.54751.bjanz@mac.com>
Hello Burt:
* Burt Janz <bjanz@mac.com> [2004-08-04 07:12:09 -0400]:
> On Tuesday 03 August 2004 10:08 pm, Mark M. Hoffman wrote:
> > First of all, you are confusing some terms. I2C is a multi-master
> > bus, period. There is no such multi-master "mode". All of our i2c
> > host adapter drivers should operate properly on a bus with other
> > masters - if not that's a bug.
>
> Er, I may not have explained my needs properly.
>
> I am adding support to allow the MPC5200 to operate simultaneously as *both* a
> master *and* a slave on a bus. It must be able to send commands to the bus
> when in master mode, receive commands when in slave mode, and reside on the
> bus with at least one other MPC5200. This would provide a true multi-master
> environment: multiple masters which would need to negotiate for control of
> the bus, but act as slaves when not acting as masters.
>
> > I think you just want to add slave support to i2c host adapters.
>
> If the above fits, then -- yes: the device will be in slave mode and
> responding to requests, but will occasionally *originate* commands as a
> master on a bus with at least one other master.
>
> I'm not trying to quibble -- I'm just trying to explain my needs as clearly as
> I can...
OK, I think I get your intended distinction now... not just adding slave
support... but also adding the ability to change the host from a master
to a slave and back while the driver is loaded, maybe even operating
as both simultaneously. Is that it?
Well that's a feature - let's call it "adapter mode switching" - that
we obviously don't support. I'm not sure anyone's ever even considered
it or asked for it before. I wonder what kind of system it is that
this is required?
<snip>
> > Again with the terminology. :) I think you're asking if someone has
> > implemented host adapter slave support... well, it's in the i2c package
> > TODO list for a long time now. If you're adding support for kernel 2.4,
> > you'll probably be maintaining it yourself - we're not inclined to accept
> > new features, and Marcelo is definitely not accepting patches for I2C.
>
> Ok, that (unfortunately) answers my questions. If no patches are being
> accepted for I2C (I assume for the 2.4 kernel), then I will go my own route
> and develop a stand-alone driver for my needs.
>
> > However, development continues on kernel 2.6. If you come up with
> > something good for 2.4, maybe someone here could port it to 2.6. I.e.
> > whatever you come up with, we'd like to see it... good luck.
>
> Let's see what happens. My driver will probably *NOT* use the I2C
> architecture, since it will be far easier for me to build a standalone driver
> than to try to enhance an intricate architecture that I will have to support
> on my own (re. "not accepting patches"). And, since we don't plan on going
> to the 2.4 kernel for a while (embedded system), porting to the 2.6 kernel is
> - for now - a non-issue.
As long as maintainers are demanding some level of API stability, by the
time you're ready to move to 2.6 you won't be able to add the support you
need there either. I.e. if you have requirements for the I2C layer, let's
hear them - or better yet, send patches. :)
> Let me know if you're still interested in seeing my driver after I have
> finished it.
Driver source outside the I2C layer is probably better than nothing w.r.t.
understanding what is lacking in the I2C layer; yes please send it.
> Thanks for your help!
What little it's been, sorry.
Regards,
--
Mark M. Hoffman
mhoffman@lightlink.com
next prev parent 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 i2c multi-master mode Burt Janz
2005-05-19 6:25 ` Burt Janz
2005-05-19 6:25 ` Mark M. Hoffman [this message]
2005-05-19 6:25 ` Adrian Cox
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Deepak Saxena
2005-05-19 6:25 ` Burt Janz
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=20040805045131.GD4844@jupiter.solarsys.private \
--to=mhoffman@lightlink.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.