1. 28 8月, 2013 2 次提交
    • A
      pinctrl: palmas: PINCTRL_PALMAS needs to select PINMUX · 63ca8db7
      Axel Lin 提交于
      Fix below build error if !PINMUX.
      
        CC      drivers/pinctrl/pinctrl-palmas.o
      drivers/pinctrl/pinctrl-palmas.c:741:21: error: variable 'palmas_pinmux_ops' has initializer but incomplete type
      drivers/pinctrl/pinctrl-palmas.c:742:2: error: unknown field 'get_functions_count' specified in initializer
      drivers/pinctrl/pinctrl-palmas.c:742:2: warning: excess elements in struct initializer [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:742:2: warning: (near initialization for 'palmas_pinmux_ops') [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:743:2: error: unknown field 'get_function_name' specified in initializer
      drivers/pinctrl/pinctrl-palmas.c:743:2: warning: excess elements in struct initializer [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:743:2: warning: (near initialization for 'palmas_pinmux_ops') [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:744:2: error: unknown field 'get_function_groups' specified in initializer
      drivers/pinctrl/pinctrl-palmas.c:744:2: warning: excess elements in struct initializer [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:744:2: warning: (near initialization for 'palmas_pinmux_ops') [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:745:2: error: unknown field 'enable' specified in initializer
      drivers/pinctrl/pinctrl-palmas.c:745:2: warning: excess elements in struct initializer [enabled by default]
      drivers/pinctrl/pinctrl-palmas.c:745:2: warning: (near initialization for 'palmas_pinmux_ops') [enabled by default]
      make[2]: *** [drivers/pinctrl/pinctrl-palmas.o] Error 1
      make[1]: *** [drivers/pinctrl] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Acked-by: NLaxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      63ca8db7
    • A
      pinctrl: core: Add proper mutex lock in pinctrl_request_gpio · 9b77ace4
      Axel Lin 提交于
      This one is missed in commit 42fed7ba "pinctrl: move subsystem mutex to
      pinctrl_dev struct".
      
      I think this fixes the race between pin_free() and pin_request() calls.
      It protects accessing the members of pctldev->desc.
      (e.g. update desc->mux_usecount, desc->gpio_owner, desc->mux_owner, etc)
      Current code grabs pctldev->mutex before calling pinmux_free_gpio(),
      but did not grab the mutex while calling pinmux_request_gpio().
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9b77ace4
  2. 24 8月, 2013 1 次提交
  3. 23 8月, 2013 13 次提交
  4. 16 8月, 2013 7 次提交
  5. 15 8月, 2013 8 次提交
  6. 14 8月, 2013 1 次提交
  7. 08 8月, 2013 8 次提交