1. 15 11月, 2016 6 次提交
    • C
      pinctrl: sunxi: Free configs in pinctrl_map only if it is a config map · 88f01a1b
      Chen-Yu Tsai 提交于
      In the recently refactored sunxi pinctrl library, we are only allocating
      one set of pin configs for each pinmux setting node. When the pinctrl_map
      structure is freed, the pin configs should also be freed. However the
      code assumed the first map would contain the configs, which actually
      never happens, as the mux function map gets added first.
      
      The proper way to do this is to look through all the maps and free the
      first one whose type is actually PIN_MAP_TYPE_CONFIGS_GROUP.
      
      Also slightly expand the comment explaining this.
      
      Fixes: f233dbca ("pinctrl: sunxi: Rework the pin config building code")
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Acked-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      88f01a1b
    • P
      pinctrl: vt8500: make bool drivers explicitly non-modular · 23d511f6
      Paul Gortmaker 提交于
      None of the Kconfigs for any of these drivers are tristate, meaning
      that they currently are not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the drivers there is no doubt they are builtin-only.  All
      drivers get the exact same change, so they are handled in batch.
      
      Changes are (1) use builtin_platform_driver, (2) use init.h header
      (3) delete module_exit related code, (4) delete MODULE_DEVICE_TABLE,
      (5) delete MODULE_LICENCE/MODULE_AUTHOR and associated tags and (6)
      drop ".remove" code and prevent sysfs unbind attempts to call ".remove".
      
      Once this is done, the shared remove function in wmt.[ch] is no longer
      used and hence it is removed as well.
      
      Since module_platform_driver() uses the same init level priority as
      builtin_platform_driver() the init ordering remains unchanged with
      this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE etc. tags since all that information
      is already contained at the top of each file in the comments.
      
      Cc: Tony Prisk <linux@prisktech.co.nz>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      23d511f6
    • C
      pinctrl: samsung: Add GPF support for Exynos5433 · ac8130e9
      Chanwoo Choi 提交于
      This patch add the support of GPF[1-5] pin of Exynos5433 SoC. The GPFx need
      to support the multiple memory map because the registers of GPFx are located
      in the different domain.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      ac8130e9
    • C
      pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank · 8b1bd11c
      Chanwoo Choi 提交于
      This patch supports the multiple IORESOURCE_MEM resources for one pin-bank.
      In the pre-existing Exynos series, the registers of the gpio bank are included
      in the one memory map. But, some gpio bank need to support the one more memory
      map (IORESOURCE_MEM) because the registers of gpio bank are separated into
      the different memory map.
      
      For example,
      The both ALIVE and IMEM domain have the different memory base address.
      The GFP[1-5] of exynos5433 are composed as following:
      - ALIVE domain : WEINT_* registers
      - IMEM domain  : CON/DAT/PUD/DRV/CONPDN/PUDPDN register
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: linux-gpio@vger.kernel.org
      Suggested-by: NTomasz Figa <tomasz.figa@gmail.com>
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Reviewed-by: NKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      8b1bd11c
    • P
      pinctrl: bcm2835: Return pins to inputs when freed · ccca1ad5
      Phil Elwell 提交于
      When dynamically unloading overlays, it is important that freed pins are
      restored to being inputs to prevent functions from being enabled in
      multiple places at once.
      
      Cc: Stefan Wahren <stefan.wahren@i2se.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
      Acked-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      ccca1ad5
    • P
      pinctrl: bcm2835: Fix ints for GPIOs 28-31 & 46-53 · 00445b5d
      Phil Elwell 提交于
      Contrary to the documentation, the BCM2835 GPIO controller actually
      has four interrupt lines - one each for the three IRQ groups and one
      common. Confusingly, the GPIO interrupt groups don't correspond
      directly with the GPIO control banks. Instead, GPIOs 0-27 generate IRQ
      GPIO0, 28-45 IRQ GPIO1 and 46-53 IRQ GPIO2.
      
      Awkwardly, the GPIOs for IRQ GPIO1 straddle two 32-entry GPIO banks,
      so split out a function to process the interrupts for a single GPIO
      bank.
      
      Cc: Stefan Wahren <stefan.wahren@i2se.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
      Acked-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      00445b5d
  2. 12 11月, 2016 2 次提交
  3. 08 11月, 2016 19 次提交
  4. 07 11月, 2016 1 次提交
  5. 05 11月, 2016 6 次提交
  6. 04 11月, 2016 3 次提交
  7. 31 10月, 2016 1 次提交
  8. 29 10月, 2016 2 次提交