21 Oct, 2016

1 commit

  • If the driver is built as a module, autoload won't work because the module
    alias information is not filled. So user-space can't match the registered
    device with the corresponding module.

    Export the module alias information using the MODULE_DEVICE_TABLE() macro.

    Before this patch:

    $ modinfo drivers/gpio/gpio-ts4800.ko | grep alias
    $

    After this patch:

    $ modinfo drivers/gpio/gpio-ts4800.ko | grep alias
    alias: of:N*T*Ctechnologic,ts4800-gpioC*
    alias: of:N*T*Ctechnologic,ts4800-gpio

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Linus Walleij

    Javier Martinez Canillas
     

15 Sep, 2016

1 commit

  • The Kconfig for this file is:

    drivers/gpio/Kconfig:config GPIO_TS4800
    drivers/gpio/Kconfig: tristate "TS-4800 DIO blocks and compatibles"

    ...but however it does not include module.h -- it in turn gets it from
    another header (gpio/driver.h) and we'd like to replace that with a
    forward delcaration of "struct module;" but if we do, this file will
    fail to compile.

    So we fix this first to avoid putting build failures into the bisect
    commit history.

    Cc: Linus Walleij
    Cc: Alexandre Courbot
    Cc: linux-gpio@vger.kernel.org
    Signed-off-by: Paul Gortmaker
    Signed-off-by: Linus Walleij

    Paul Gortmaker
     

25 Feb, 2016

2 commits


23 Feb, 2016

1 commit


16 Feb, 2016

1 commit

  • No flags are required for bgpio_init in the TS-4800 gpio driver. This
    patch set zero instead. The driver will have the same behaviour since
    the & operator between the flags already resulted to zero.

    Fixes: 5041e791440a ("gpio: add TS-4800 fpga GPIO support")
    Signed-off-by: Julien Grossholtz
    Signed-off-by: Linus Walleij

    Julien Grossholtz
     

05 Feb, 2016

1 commit

  • The TS-4800 GPIO driver provide support for the GPIOs available
    on the Technologic Sytems board FPGA. It allows to set
    direction and read/write states.

    It uses the generic gpio driver.

    Signed-off-by: Julien Grossholtz
    Reviewed-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Julien Grossholtz