aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-dln2.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-13gpio: dln2: fix build breakageJohan Hovold1-1/+0
The dln2 driver was initialising a gpiolib private field, which is now gone. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Acked-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2015-01-20Merge tag 'v3.19-rc5' into develLinus Walleij1-89/+67
Linux 3.19-rc5
2015-01-15gpio: gpio-dln2: Added a Blank line after declarationMohammad Jamal1-0/+1
Fix the coding style issue by adding a blank line after declaration Signed-off-by: Mohammad Jamal <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2015-01-09gpio: dln2: use bus_sync_unlock instead of scheduling workOctavian Purdila1-41/+51
Use the irq_chip bus_sync_unlock method to update hardware registers instead of scheduling work from the mask/unmask methods. This simplifies a bit the driver and make it more uniform with the other GPIO IRQ drivers. Signed-off-by: Octavian Purdila <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2015-01-07gpio: dln2: Fix gpio output value in dln2_gpio_direction_output()Axel Lin1-4/+11
dln2_gpio_direction_output() ignored the state passed into it. Fix it. Also make dln2_gpio_pin_set_out_val return int, so we can check the error value. Signed-off-by: Axel Lin <[email protected]> Tested-by: Daniel Baluta <[email protected]> Acked-by: Alexandre Courbot <[email protected]> Reviewed-by: Octavian Purdila <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2015-01-07gpio: dln2: fix issue when an IRQ is unmasked then enabledOctavian Purdila1-46/+7
As noticed during suspend/resume operations, the IRQ can be unmasked then disabled in suspend and eventually enabled in resume, but without being unmasked. The current implementation does not take into account interactions between mask/unmask and enable/disable interrupts, and thus in the above scenarios the IRQs remain unactive. To fix this we removed the enable/disable operations as they fallback to mask/unmask anyway. We also remove the pending bitmaks as it is already done in irq_data (i.e. IRQS_PENDING). Signed-off-by: Octavian Purdila <[email protected]> Acked-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2014-11-10gpio: add support for the Diolan DLN-2 USB GPIO driverDaniel Baluta1-0/+553
This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 2.9 for the GPIO module commands and responses. [1] https://www.diolan.com/downloads/dln-api-manual.pdf Signed-off-by: Daniel Baluta <[email protected]> Signed-off-by: Octavian Purdila <[email protected]> Acked-by: Linus Walleij <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Signed-off-by: Lee Jones <[email protected]>