Re: [PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-26 Thread Linus Walleij
On Fri, Apr 26, 2013 at 4:43 PM, Arnd Bergmann wrote: > On Wednesday 24 April 2013 11:01:59 Linus Walleij wrote: >> /** >> - * pinctrl_lookup_state() - retrieves a state handle from a pinctrl handle >> - * @p: the pinctrl handle to retrieve the state from >> - * @name: the state name to retrieve

Re: [PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-26 Thread Arnd Bergmann
On Wednesday 24 April 2013 11:01:59 Linus Walleij wrote: > /** > - * pinctrl_lookup_state() - retrieves a state handle from a pinctrl handle > - * @p: the pinctrl handle to retrieve the state from > - * @name: the state name to retrieve > + * pinctrl_select_state() - select/activate/program a

Re: [PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-26 Thread Arnd Bergmann
On Wednesday 24 April 2013 11:01:59 Linus Walleij wrote: /** - * pinctrl_lookup_state() - retrieves a state handle from a pinctrl handle - * @p: the pinctrl handle to retrieve the state from - * @name: the state name to retrieve + * pinctrl_select_state() - select/activate/program a pinctrl

Re: [PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-26 Thread Linus Walleij
On Fri, Apr 26, 2013 at 4:43 PM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 24 April 2013 11:01:59 Linus Walleij wrote: /** - * pinctrl_lookup_state() - retrieves a state handle from a pinctrl handle - * @p: the pinctrl handle to retrieve the state from - * @name: the state name to

[PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-24 Thread Linus Walleij
From: Patrice Chotard This mutex avoids deadlock in case of use of multiple pin controllers. Before this modification, by using a global mutex, deadlock appeared when, for example, a call to pinctrl_pins_show() locked the pinctrl_mutex, called the ops->pin_dbg_show of a particular pin

[PATCH v2] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-04-24 Thread Linus Walleij
From: Patrice Chotard patrice.chot...@st.com This mutex avoids deadlock in case of use of multiple pin controllers. Before this modification, by using a global mutex, deadlock appeared when, for example, a call to pinctrl_pins_show() locked the pinctrl_mutex, called the ops-pin_dbg_show of a