Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Compulab Utilite PRO vs i2cmux



> On Dec 22, 2020, at 6:59 PM, Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
> 
> It took a bit of time to make it work, b/c of a nasty bug in motoi2c.c
> the driver for the parent bus.
> 
> static i2c_tag_t
> motoi2c_get_tag(device_t dev)
> {
> 	struct motoi2c_softc * const sc = device_private(dev);
> 	return &sc->sc_i2c;
> }
> 
> The problem is that the device here is really imxi2c, so
> device_private is imxi2c_softc, not motoi2c_softc!  I used a quick
> kludge to get the real motoi2c_softc here, but it needs a proper fix.

This should be fixed by motoi2c.c rev 1.8 (and the associated changes to fdtbus_register_i2c_controller()), which was also needed in order for fdtbus_register_i2c_controller() to handle the i2c mux.

-- thorpej



Home | Main Index | Thread Index | Old Index