On Wed, Jan 6, 2016 at 7:51 AM, Wolfram Sang <wsa@xxxxxxxxxxxxx> wrote: > From: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > > This driver allows an I2C bus to switch between multiple masters. This > is not hot-swichting because connected I2C slaves will be > re-instantiated. It is meant to select the best I2C core at runtime once > the task is known. Example: Prefer i2c-gpio over another I2C core > because of HW errata affetcing your use case. > > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> [...] > +static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 new_chan) > +{ > + struct i2c_adapter *adap; > + struct pinctrl *p; > + int ret; > + > + mutex_lock(&of_mutex); > + ret = of_changeset_apply(&priv->chan[new_chan].chgset); > + mutex_unlock(&of_mutex); Looks like you need this patch[1] rather than exposing of_mutex. Rob [1] https://patchwork.ozlabs.org/patch/539938/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html