Messages in this thread | | | From | Rob Herring <> | Date | Wed, 6 Jan 2016 11:08:44 -0600 | Subject | Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver |
| |
On Wed, Jan 6, 2016 at 7:51 AM, Wolfram Sang <wsa@the-dreams.de> wrote: > From: Wolfram Sang <wsa+renesas@sang-engineering.com> > > 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@sang-engineering.com>
[...]
> +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/
| |