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

Guenter Roeck
2014-11-05T14:26:31Z

On Tue, Nov 04, 2014 at 03:33:09PM +0100, Wolfram Sang wrote:
>
> > 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.
>
> Maybe something like this on top helps already? It skips link creation
> if the parent device is the parent i2c adapter. We should have this
> anyway...
>
It fixes the tracebacks, but application code still fails. I'll have to track
that down; most likely it uses a means to find the i2c root adapter which no
longer works. I'll also try your other patch.

Guenter