From: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Gerlando Falauto
<gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>,
Jean Delvare <jdelvare-l3A5Bk7waGM@public.gmane.org>,
Martin Belanger
<martin.belanger-Ir6+u9MVKBtBDgjK7y7TUQ@public.gmane.org>,
Rodolfo Giometti
<giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>,
Michael Lawnick <ml.lawnick-Mmb7MZpHnFY@public.gmane.org>,
Jeroen De Wachter
<jeroen.de.wachter-CNXmb7IdZIWZIoH1IeqzKA@public.gmane.org>
Subject: Re: [PATCH] i2c: mux: create proper topology in sysfs
Date: Mon, 3 Nov 2014 14:18:50 -0800 [thread overview]
Message-ID: <20141103221850.GA16026@roeck-us.net> (raw)
In-Reply-To: <20141103210200.GA6242@katana>
On Mon, Nov 03, 2014 at 10:02:00PM +0100, Wolfram Sang wrote:
> > > + WARN(sysfs_create_link(&parent->dev.kobj, &priv->adap.dev.kobj, priv->adap.dev.kobj.name),
> > > + "can't create compatibility link for old mux name scheme\n");
> > > +
> > Something seems to be wrong with the linking.
> >
> > I get lots of messages such as
> >
> > sysfs: cannot create duplicate filename
> > '/devices/fff70a000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:09.0/0000:10:00.0/i2c-sam.16/i2c-88/i2c-89'
> >
> > followed by "can't create compatibility link for old mux name scheme".
>
> What is your muxing setup?
>
Complicated ;-).
There are really various muxes. The one above is a multi-function FPGA connected
to a PCIe bus. The FPGA core has up to 8 i2c controllers. Each of those controllers
supports up to 8 mux channels, for a total of up to 64 virtual i2c adapters.
There are also gpio based muxes in the same system, only they are not
'simple' gpio muxes where 1 pin matches 1 channel, but complex ones where
the channel is determined by a three-bit value followed by an 8-bit mask
(so there can be up to 64 mux channels on a single adapter).
Plus of course there are some pca9548 and pca9546 based multiplexers.
This is all mixed with gpio based bus master selectors permitting access from
different boards. The overall architecture is so complex that it is actually
possible to configure the i2c bus in circles (bus master selector to mux to
another mux back to the other channel of the bus master selector).
Just don't ask me who came up with that architecture ;-)
I'll add some debugging to try to find out why the symlinks don't work.
Guenter
next prev parent reply other threads:[~2014-11-03 22:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 20:40 [PATCH] i2c: mux: create proper topology in sysfs Wolfram Sang
[not found] ` <1414960809-16860-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2014-11-03 20:39 ` Guenter Roeck
2014-11-03 20:55 ` Guenter Roeck
[not found] ` <20141103205534.GA18937-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-11-03 21:02 ` Wolfram Sang
2014-11-03 22:18 ` Guenter Roeck [this message]
[not found] ` <20141103221850.GA16026-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-11-04 7:33 ` Wolfram Sang
2014-11-04 9:07 ` Danielle Costantino
[not found] ` <CAAVjN7dPet_nBHcQzPYknfiWnf1hD5d5NAJcrNEKKJHYHcBNkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-10 20:57 ` Jean Delvare
[not found] ` <20141110215704.07d7ca1d-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2014-11-12 12:35 ` Danielle Costantino
2014-11-04 14:16 ` Guenter Roeck
2014-11-03 22:49 ` Guenter Roeck
[not found] ` <20141103224908.GA18594-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-11-04 14:33 ` Wolfram Sang
2014-11-04 14:46 ` Guenter Roeck
2014-11-05 14:26 ` Guenter Roeck
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=20141103221850.GA16026@roeck-us.net \
--to=linux-0h96xk9xttrk1umjsbkqmq@public.gmane.org \
--cc=gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org \
--cc=giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org \
--cc=jdelvare-l3A5Bk7waGM@public.gmane.org \
--cc=jeroen.de.wachter-CNXmb7IdZIWZIoH1IeqzKA@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=martin.belanger-Ir6+u9MVKBtBDgjK7y7TUQ@public.gmane.org \
--cc=ml.lawnick-Mmb7MZpHnFY@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox