1. 23 Apr, 2019 6 commits
    • Wen Yang's avatar
      pinctrl: st: fix leaked of_node references · 483d70d7
      Wen Yang authored
      The call to of_get_child_by_name returns a node pointer with refcount
      incremented thus it must be explicitly decremented after the last
      usage.
      
      Detected by coccinelle with the following warnings:
      ./drivers/pinctrl/pinctrl-st.c:1188:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1175, but without a corresponding object release within this function.
      ./drivers/pinctrl/pinctrl-st.c:1188:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1175, but without a corresponding object release within this function.
      ./drivers/pinctrl/pinctrl-st.c:1199:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1175, but without a corresponding object release within this function.
      ./drivers/pinctrl/pinctrl-st.c:1199:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1175, but without a corresponding object release within this function.
      Signed-off-by: default avatarWen Yang <wen.yang99@zte.com.cn>
      Cc: Patrice Chotard <patrice.chotard@st.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org (open list)
      Reviewed-by: default avatarPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      483d70d7
    • Wen Yang's avatar
      pinctrl: samsung: fix leaked of_node references · 44b9f86c
      Wen Yang authored
      The call to of_find_compatible_node returns a node pointer with refcount
      incremented thus it must be explicitly decremented after the last
      usage.
      
      Detected by coccinelle with the following warnings:
      ./drivers/pinctrl/samsung/pinctrl-exynos-arm.c:76:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function.
      ./drivers/pinctrl/samsung/pinctrl-exynos-arm.c:82:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function.
      Signed-off-by: default avatarWen Yang <wen.yang99@zte.com.cn>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      44b9f86c
    • Alexandre Torgue's avatar
      pinctrl: stm32: align stm32mp157 pin names · a7672c4a
      Alexandre Torgue authored
      Align pins names with names provided in official stm32mp157 datasheet
      available on st.com.
      Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      a7672c4a
    • Alexandre Torgue's avatar
      pinctrl: stm32: add package information for stm32mp157c · 6918bf43
      Alexandre Torgue authored
      This patch adds four new packages support for stm32mp157c die:
      
      STM32MP_PKG_AA: LFBGA448 (18*18), 176 IOs
      STM32MP_PKG_AB: LFBGA354 (16*16), 98 IOs
      STM32MP_PKG_AC: TFBGA361 (12*12), 148 IOs
      STM32MP_PKG_AD: TFBGA257 (10*10), 98 IOs
      Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      6918bf43
    • Alexandre Torgue's avatar
      pinctrl: stm32: introduce package support · cc528862
      Alexandre Torgue authored
      A same SoC can be available in several packages. Differences between
      packages are only the numbers of available balls. In order not to write
      a driver for each new package, same driver (ex: pinctrl-stm32mp157.c) will
      be used. This patch introduces the "package" property for each pin. So on a
      same driver, it will be possible to indicate on which package the pin is
      available. The package information will be got from the device tree.
      Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      cc528862
    • Alexandre Torgue's avatar
      dt-bindings: pinctrl: stm32: add new entry for package information · 966d9b92
      Alexandre Torgue authored
      Add "st,package" entry. Possibles values are:
      -STM32MP_PKG_AA for LFBGA448 (18*18) package
      -STM32MP_PKG_AB for LFBGA354 (16*16) package
      -STM32MP_PKG_AC for TFBGA361 (12*12) package
      -STM32MP_PKG_AD for TFBGA257 (10*10) package
      Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      966d9b92
  2. 11 Apr, 2019 2 commits
  3. 08 Apr, 2019 9 commits
  4. 04 Apr, 2019 12 commits
  5. 02 Apr, 2019 11 commits