1. 20 Feb, 2014 2 commits
  2. 06 Feb, 2014 1 commit
  3. 04 Dec, 2013 1 commit
  4. 27 Sep, 2013 1 commit
  5. 04 Jun, 2013 1 commit
  6. 27 May, 2013 8 commits
  7. 18 May, 2013 1 commit
  8. 15 May, 2013 1 commit
  9. 14 May, 2013 4 commits
  10. 30 Apr, 2013 2 commits
  11. 26 Apr, 2013 2 commits
    • Patrice Chotard's avatar
      pinctrl: move subsystem mutex to pinctrl_dev struct · 42fed7ba
      Patrice Chotard authored
      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 controller. If this
      pin controller needs I2C access to retrieve configuration
      information and I2C driver is using pinctrl to drive its
      pins, a call to pinctrl_select_state() try to lock again
      pinctrl_mutex which leads to a deadlock.
      Notice that the mutex grab from the two direction functions
      was moved into pinctrl_gpio_direction().
      For several cases, we can't replace pinctrl_mutex by
      pctldev->mutex, because at this stage, pctldev is
      not accessible :
      	- pinctrl_get()/pinctrl_put()
      	- pinctrl_register_maps()
      So add respectively pinctrl_list_mutex and
      pinctrl_maps_mutex in order to protect
      pinctrl_list and pinctrl_maps list instead.
      Reintroduce pinctrldev_list_mutex in
      pinctrl_request_gpio(), pinctrl_free_gpio(),
      pinctrl_gpio_direction(), pinctrl_devices_show(),
      pinctrl_register() and pinctrl_unregister() to
      protect pinctrldev_list.
      Changes v2->v3:
      - Fix a missing EXPORT_SYMBOL_GPL() for pinctrl_select_state().
      Changes v1->v2:
      - pinctrl_select_state_locked() is removed, all lock mechanism
        is located inside pinctrl_select_state(). When parsing
        the state->setting list, take the per-pin-controller driver
        lock. (Patrice).
      - Introduce pinctrldev_list_mutex to protect pinctrldev_list
        in all functions which parse or modify pictrldev_list.
      - move find_pinctrl_by_of_node() from pinctrl/devicetree.c to
        pinctrl/core.c in order to protect pinctrldev_list.
      - Sink mutex:es into some functions and remove some _locked
        variants down to where the lists are actually accessed to
        make things simpler. (Linus)
      - Drop *all* mutexes completely from pinctrl_lookup_state()
        and pinctrl_select_state() - no relevant mutex was taken
        and it was unclear what this was protecting against. (Linus)
      Reported by : Seraphin Bonnaffe <seraphin.bonnaffe@stericsson.com>
      Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    • Laurent Meunier's avatar
      pinctrl/pinconfig: fix misplaced goto · cb6d315d
      Laurent Meunier authored
      This update contains a basic fix that went unseen through
      test and review.
      Signed-off-by: default avatarLaurent Meunier <laurent.meunier@st.com>
      Reviewed-by: default avatarPatrice Chotard <patrice.chotard@stericsson.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
  12. 23 Apr, 2013 1 commit
  13. 19 Apr, 2013 2 commits
  14. 18 Apr, 2013 1 commit
  15. 16 Apr, 2013 1 commit
  16. 09 Apr, 2013 11 commits