1. 18 11月, 2012 6 次提交
  2. 09 11月, 2012 4 次提交
  3. 05 11月, 2012 2 次提交
    • A
      gpio-pch: Set parent dev for gpio chip · 5c868fc6
      Alexander Stein 提交于
      This will show the gpio chip as a child node
      under /sys/bus/pci/devices/xxxx:xx:xx.x/
      Signed-off-by: NAlexander Stein <alexander.stein@systec-electronic.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5c868fc6
    • A
      gpio: em: Fix build errors · 16310819
      Axel Lin 提交于
      Fix below build errors:
      
        CC [M]  drivers/gpio/gpio-em.o
      drivers/gpio/gpio-em.c: In function 'em_gio_probe':
      drivers/gpio/gpio-em.c:306: error: 'err' undeclared (first use in this function)
      drivers/gpio/gpio-em.c:306: error: (Each undeclared identifier is reported only once
      drivers/gpio/gpio-em.c:306: error: for each function it appears in.)
      drivers/gpio/gpio-em.c:308: error: label 'err3' used but not defined
      drivers/gpio/gpio-em.c:279: error: label 'err2' used but not defined
      drivers/gpio/gpio-em.c:265: error: label 'err1' used but not defined
      drivers/gpio/gpio-em.c:250: error: label 'err0' used but not defined
      drivers/gpio/gpio-em.c:309: warning: no return statement in function returning non-void
      drivers/gpio/gpio-em.c: At top level:
      drivers/gpio/gpio-em.c:311: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:317: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:323: warning: data definition has no type or storage class
      drivers/gpio/gpio-em.c:323: warning: type defaults to 'int' in declaration of 'ret'
      drivers/gpio/gpio-em.c:323: error: 'gpio_chip' undeclared here (not in a function)
      drivers/gpio/gpio-em.c:323: error: initializer element is not constant
      drivers/gpio/gpio-em.c:324: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:328: error: expected identifier or '(' before 'return'
      drivers/gpio/gpio-em.c:330: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:332: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:334: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:338: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:342: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:344: error: expected identifier or '(' before '}' token
      drivers/gpio/gpio-em.c: In function 'em_gio_remove':
      drivers/gpio/gpio-em.c:361: error: implicit declaration of function 'em_gio_irq_domain_cleanup'
      make[2]: *** [drivers/gpio/gpio-em.o] Error 1
      make[1]: *** [drivers/gpio] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      16310819
  4. 28 10月, 2012 1 次提交
  5. 26 10月, 2012 7 次提交
  6. 24 10月, 2012 1 次提交
  7. 23 10月, 2012 1 次提交
    • R
      gpiolib: Refactor gpio_export · fc4e2514
      Ryan Mallon 提交于
      The gpio_export function uses nested if statements and the status
      variable to handle the failure cases. This makes the function logic
      difficult to follow. Refactor the code to abort immediately on failure
      using goto. This makes the code slightly longer, but significantly
      reduces the nesting and number of split lines and makes the code easier
      to read.
      Signed-off-by: NRyan Mallon <rmallon@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      fc4e2514
  8. 19 10月, 2012 1 次提交
  9. 16 10月, 2012 4 次提交
  10. 01 10月, 2012 1 次提交
    • A
      gpio: pcf857x: select IRQ_DOMAIN · 901acf5b
      Arnd Bergmann 提交于
      Patch 6e20a0a4 "gpio: pcf857x: enable gpio_to_irq() support"
      added IRQ domain support to the pcf857x driver, but some configurations
      (e.g. davinci_all_defconfig) don't already enable CONFIG_IRQ_DOMAIN.
      
      Always selecting it from the Kconfig in this case is what other
      such drivers do as well, and avoids these build errors:
      
      Without this patch, building davinci_all_defconfig results in:
      
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_to_irq':
      drivers/gpio/gpio-pcf857x.c:167:2: error: implicit declaration of function 'irq_create_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_demux_work':
      drivers/gpio/gpio-pcf857x.c:183:3: error: implicit declaration of function 'irq_find_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_cleanup':
      drivers/gpio/gpio-pcf857x.c:218:3: error: implicit declaration of function 'irq_domain_remove'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_init':
      drivers/gpio/gpio-pcf857x.c:230:2: error: implicit declaration of function 'irq_domain_add_linear'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      901acf5b
  11. 30 9月, 2012 1 次提交
  12. 25 9月, 2012 1 次提交
  13. 22 9月, 2012 1 次提交
    • T
      gpio: introduce gpio-mvebu driver for Marvell SoCs · fefe7b09
      Thomas Petazzoni 提交于
      This driver aims at replacing the arch/arm/plat-orion/gpio.c driver,
      and is designed to be compatible with all Marvell EBU SoCs: Orion,
      Kirkwood, Dove, Armada 370/XP and Discovery.
      
      It has been successfully tested on Dove and Armada XP at the moment.
      
      Compared to the plat-orion driver, this new driver has the following
      added benefits:
      
       *) Support for Armada 370 and Armada XP
       *) It is integrated with the mvebu pinctrl driver so that GPIO pins
          are properly muxed, and the GPIO driver knows which GPIO pins are
          output-only or input-only.
       *) Properly placed in drivers/gpio
       *) More extensible mechanism to support platform differences. The
          plat-orion driver uses a simple mask-offset DT property, which
          works fine for Discovery MV78200 but not for Armada XP. The new
          driver uses different compatible strings to identify the different
          variants of the GPIO controllers.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Gregory Clement <gregory.clement@free-electrons.com>
      Tested-by: NSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Tested-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      fefe7b09
  14. 21 9月, 2012 1 次提交
  15. 19 9月, 2012 4 次提交
  16. 14 9月, 2012 1 次提交
    • J
      gpio: gpio-ich: Share ownership of GPIO groups · 4f600ada
      Jean Delvare 提交于
      The ICH chips have their GPIO pins organized in 2 or 3 independent
      groups of 32 GPIO pins. It can happen that the ACPI BIOS wants to make
      use of pins in one group, preventing the OS to access these. This does
      not prevent the OS from accessing the other group(s).
      
      This is the case for example on my Asus Z8NA-D6 board. The ACPI BIOS
      wants to control GPIO 18 (group 1), while I (the OS) need to control
      GPIO 52 and 53 (group 2) for SMBus multiplexing.
      
      So instead of checking for ACPI resource conflict on the whole I/O
      range, check on a per-group basis, and consider it a success if at
      least one of the groups is available for the OS to use.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      Cc: Aaron Sierra <asierra@xes-inc.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      4f600ada
  17. 13 9月, 2012 3 次提交