18 Nov, 2011

1 commit


27 Oct, 2011

1 commit


14 Oct, 2011

2 commits

  • gpio_base was set to 0 if no system platform data or open firmware
    platform data was provided. This led to conflicts, if any other gpiochip
    with a gpiobase of 0 was instantiated already. Setting it to -1 will
    automatically use the first one available.

    Signed-off-by: Hartmut Knaack
    Signed-off-by: Grant Likely

    Hartmut Knaack
     
  • With commit f64ad1a0e21a, "gpio/omap: cleanup _set_gpio_wakeup(), remove
    ifdefs", access to build time conditionally omitted 'suspend_wakeup'
    member of the 'gpio_bank' structure has been placed unconditionally in
    function _set_gpio_wakeup(), which is always built. This resulted in the
    driver compilation broken for certain OMAP1, i.e., non-OMAP16xx,
    configurations.

    Really required or not in previously excluded cases, define this
    structure member unconditionally as a fix.

    Tested with a custom OMAP1510 only configuration.

    Signed-off-by: Janusz Krzysztofik
    Acked-by: Kevin Hilman
    Tested-by: Aaro Koskinen
    Signed-off-by: Grant Likely

    Janusz Krzysztofik
     

15 Sep, 2011

1 commit

  • Building a kernel with hotplug disabled results in a link failure:

    `bgpio_remove' referenced in section `___ksymtab_gpl+bgpio_remove' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o

    This is because of bgpio_remove() is exported. It is illegal to export
    symbols which are discarded either at link time or as part of an
    init/exit section.

    Fix this by dropping the __devexit attributation from bgpio_remove().
    Also drop the __devinit attributation from bgpio_init().

    Signed-off-by: Russell King
    Cc: Grant Likely
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Russell King
     

02 Aug, 2011

1 commit

  • * 'gpio/next' of git://git.secretlab.ca/git/linux-2.6:
    gpio_msm: Move Qualcomm MSM v2 gpio driver into drivers
    gpio_msm: Move Qualcomm v6 MSM driver into drivers
    msm: gpio: Fold register defs into C file
    msm: gpiomux: Move public API to public header
    msm: gpio: Remove ifdefs on gpio chip registers
    msm: gpio: Remove chip-specific register definitions
    msm: Remove chip-ifdefs for GPIO io mappings
    msm: gpio: Remove unsupported devices
    gpio: ab8500: fix MODULE_ALIAS for ab8500
    of/gpio: export of_gpio_simple_xlate

    Linus Torvalds
     

01 Aug, 2011

4 commits


29 Jul, 2011

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf (platform: prefix MODALIAS
    with "platform:"), the platform modalias is prefixed with "platform:".

    This patch changes the MODULE_ALIAS to "platform:ab8500-gpio".

    Signed-off-by: Axel Lin
    Acked-by: Linus Walleij
    Signed-off-by: Grant Likely

    Axel Lin
     

26 Jul, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    fs: Merge split strings
    treewide: fix potentially dangerous trailing ';' in #defined values/expressions
    uwb: Fix misspelling of neighbourhood in comment
    net, netfilter: Remove redundant goto in ebt_ulog_packet
    trivial: don't touch files that are removed in the staging tree
    lib/vsprintf: replace link to Draft by final RFC number
    doc: Kconfig: `to be' -> `be'
    doc: Kconfig: Typo: square -> squared
    doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
    drivers/net: static should be at beginning of declaration
    drivers/media: static should be at beginning of declaration
    drivers/i2c: static should be at beginning of declaration
    XTENSA: static should be at beginning of declaration
    SH: static should be at beginning of declaration
    MIPS: static should be at beginning of declaration
    ARM: static should be at beginning of declaration
    rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
    Update my e-mail address
    PCIe ASPM: forcedly -> forcibly
    gma500: push through device driver tree
    ...

    Fix up trivial conflicts:
    - arch/arm/mach-ep93xx/dma-m2p.c (deleted)
    - drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
    - drivers/net/r8169.c (just context changes)

    Linus Torvalds
     

23 Jul, 2011

1 commit

  • * 'gpio/next' of git://git.secretlab.ca/git/linux-2.6: (61 commits)
    gpio/mxc/mxs: fix build error introduced by the irq_gc_ack() renaming
    mcp23s08: add i2c support
    mcp23s08: isolate spi specific parts
    mcp23s08: get rid of setup/teardown callbacks
    gpio/tegra: dt: add binding for gpio polarity
    mcp23s08: remove unused work queue
    gpio/da9052: remove a redundant assignment for gpio->da9052
    gpio/mxc: add device tree probe support
    ARM: mxc: use ARCH_NR_GPIOS to define gpio number
    gpio/mxc: get rid of the uses of cpu_is_mx()
    gpio/mxc: add missing initialization of basic_mmio_gpio shadow variables
    gpio: Move mpc5200 gpio driver to drivers/gpio
    GPIO: DA9052 GPIO module v3
    gpio/tegra: Use engineering names in DT compatible property
    of/gpio: Add new method for getting gpios under different property names
    gpio/dt: Refine GPIO device tree binding
    gpio/ml-ioh: fix off-by-one for displaying variable i in dev_err
    gpio/pca953x: Deprecate meaningless device-tree bindings
    gpio/pca953x: Remove dynamic platform data pointer
    gpio/pca953x: Fix IRQ support.
    ...

    Linus Torvalds
     

20 Jul, 2011

1 commit


16 Jul, 2011

4 commits

  • Signed-off-by: Axel Lin
    Acked-by: Mark Brown
    Signed-off-by: Grant Likely

    Axel Lin
     
  • Add i2c bindings for the mcp230xx devices. This is quite a lot simpler
    than the spi one as there's no funky sub addressing done (one struct
    i2c_client per struct gpio_chip).

    The mcp23s08_platform_data structure is reused for i2c, even though
    only a single mcp23s08_chip_info structure is needed.

    To use, simply fill out a platform_data structure and pass it in
    i2c_board_info, E.G.:

    static const struct mcp23s08_platform_data mcp23017_data = {
    .chip[0] = {
    .pullups = 0x00ff,
    },
    .base = 240,
    };

    static struct i2c_board_info __initdata i2c_devs[] = {
    { I2C_BOARD_INFO("mcp23017", 0x20),
    .platform_data = &smartview_mcp23017_data, },
    ...
    };

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     
  • Change spi member of struct mcp23s08 to be a ops-specific opaque data
    pointer, and move spi specific knowledge out of mcp23s08_probe_one().

    No functional change, but is needed to add i2c support.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     
  • There's no in-tree users, and bus notifiers are more generic anyway.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     

15 Jul, 2011

1 commit


14 Jul, 2011

1 commit


11 Jul, 2011

1 commit


09 Jul, 2011

2 commits


08 Jul, 2011

2 commits

  • The wrong bit was masked when acking langwell gpio interrupts.

    Reason for maskig the wrong bit was probably because__ffs() and ffs() functions
    return bit indexes differently (0..31 vs 1..32)

    This fixes langwell based devices from hanging when a gpio interrupt is
    triggered and undoes the breakage which occurred in change set
    732063b92bb727b27e61580ce278dddefe31c6ad

    Signed-off-by: Mathias Nyman
    Signed-off-by: Alan Cox
    Signed-off-by: Grant Likely

    Mathias Nyman
     
  • The bgpio_init() function does not initialise the shadow register for
    the GPIO direction register. Thus, when configuring the first GPIO with
    gpio_set_direction() all other GPIOs of the same bank will be
    configured as inputs. Since the bgpio layer cannot know whether the
    register is readable, the initialisation should be done by the caller
    of bgpio_init().

    Also, the 'data' shadow variable that is used inside basic_mmio_gpio
    to cache the current value of the GPIO_DR register is initialised from
    the GPIO_PSR register within bgpio_init(). Thus when setting the
    output value of a certain GPIO, the other GPIO outputs of the same
    bank will be set or cleared depending on the pin state of the GPIO
    inputs during bgpio_init().

    Signed-off-by: Lothar Waßmann
    Signed-off-by: Grant Likely

    Lothar Waßmann
     

07 Jul, 2011

3 commits


06 Jul, 2011

2 commits


20 Jun, 2011

1 commit


17 Jun, 2011

9 commits