Re: [PATCH] i2c: mux: create proper topology in sysfs

Guenter Roeck
2014-11-03T22:49:08Z

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?
>
Ok, I think I know the problem. In my case, the parent adapter
and the mux device are the same (since both are on the same chip
and the mux is really merged into the i2c controller).

I'll have to figure out how to fix that.

Guenter