23 Feb, 2016
20 commits
-
Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
Cc: Support Opensource -
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration and remove the
call of gpiochip_remove() from error path.Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
-
Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: Laxman Dewangan
Cc: Ray Jui
Acked-by: Ray Jui -
Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.Signed-off-by: Laxman Dewangan
Cc: patches@opensource.wolfsonmicro.com
Acked-by: Charles Keepax -
Use devm_gpiochip_add_data() for GPIO registration and remove the
call for gpiochip_remove() from remove callback.Signed-off-by: Laxman Dewangan
Cc: Michael Hennerich
Acked-by: Michael Hennerich -
Use devm_gpiochip_add_data() for GPIO registration and remove the
call for gpiochip_remove() from error path.Also remove the need of driver callback .remove.
Signed-off-by: Laxman Dewangan
Cc: Michael Hennerich
Acked-by: Michael Hennerich -
Use devm_gpiochip_add_data() for GPIO registration and remove the
call for gpiochip_remove() from error path.Also remove the need of driver callback .remove.
Signed-off-by: Laxman Dewangan
Cc: Alexandre Courbot -
Use devm_gpiochip_add_data() for GPIO registration and remove the
call for gpiochip_remove() from error path.Also remove the need of driver callback .remove.
Signed-off-by: Laxman Dewangan
Cc: Alexander Shiyan -
Add following missing devm wrappers in file devrs.txt under
list of managed interfaces.
devm_gpio_request()
devm_gpio_request_one()
devm_gpio_free()Signed-off-by: Laxman Dewangan
-
Add devm wrappers for the gpiochip_add_data() and gpiochip_remove().
Signed-off-by: Laxman Dewangan
-
Add device managed APIs devm_gpiochip_add_data() and
devm_gpiochip_remove() for the APIs gpiochip_add_data()
and gpiochip_remove().This helps in reducing code in error path and sometimes
removal of .remove callback for driver unbind.Signed-off-by: Laxman Dewangan
-
Base for demv_gpiochip_add_data() and devm_gpiochip_remove().
-
Share multiple bulk changes.
22 Feb, 2016
2 commits
-
This fixes the wrongly indicated lines in the userspace
ABI: test for the right BITS, do not treat bit numbers as
bitmasks.Reported-by: Markus Pargmann
Signed-off-by: Linus Walleij
20 Feb, 2016
2 commits
-
This reverts commit ee2204a37957daed80418ea8ffc4f5c3146fb8e7.
-
Commit cb464a88e1ed ("gpio: make the gpiochip a real device") call
gpiochip_sysfs_unregister after the gpiochip is empty. It lead to the
following crash:[ 163.503994] Unable to handle kernel NULL pointer dereference at virtual address 0000007c
[...]
[ 163.525394] [] gpiochip_sysfs_unregister+0x44/0xa4
[ 163.525611] [] gpiochip_remove+0x24/0x154
[ 163.525861] [] mockup_gpio_remove+0x38/0x64 [gpio_mockup]
[ 163.526101] [] platform_drv_remove+0x24/0x64
[ 163.526313] [] __device_release_driver+0x7c/0xfc
[ 163.526525] [] driver_detach+0xbc/0xc0
[ 163.526700] [] bus_remove_driver+0x58/0xac
[ 163.526883] [] driver_unregister+0x2c/0x4c
[ 163.527067] [] platform_driver_unregister+0x10/0x18
[ 163.527284] [] mock_device_exit+0x10/0x38 [gpio_mockup]
[ 163.527593] [] SyS_delete_module+0x1b8/0x1fc
[ 163.527799] [] __sys_trace_return+0x0/0x4
[ 163.528049] Code: 940d74b4 f9019abf aa1303e0 940d7439 (7940fac0)
[ 163.536273] ---[ end trace 3d1329be504af609 ]---This patch fix this by changing the code back.
Signed-off-by: Bamvor Jian Zhang
Signed-off-by: Linus Walleij
19 Feb, 2016
16 commits
-
If spi_read() fails then we just returned but we missed unlocking the
mutex.Signed-off-by: Sudip Mukherjee
Signed-off-by: Linus Walleij -
Update description for X-Gene standby GPIO controller DTS binding to
support GPIO line configuration as input, output or external IRQ pin.Signed-off-by: Y Vo
Signed-off-by: Quan Nguyen
Signed-off-by: Linus Walleij -
Enable X-Gene standby GPIO controller as interrupt controller to provide
its own resources. This avoids ambiguity where GIC interrupt resource is
use as X-Gene standby GPIO interrupt resource in user driver.Signed-off-by: Y Vo
Signed-off-by: Quan Nguyen
Acked-by: Marc Zyngier
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: linux-mips@linux-mips.org
Cc: Alban Bedel
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: Geert Uytterhoeven
Acked-by: Greg Ungerer
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: Sonic Zhang
Cc: Steven Miao
Cc: adi-buildroot-devel@lists.sourceforge.net
Signed-off-by: Linus Walleij -
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.Cc: Sonic Zhang
Cc: Steven Miao
Cc: adi-buildroot-devel@lists.sourceforge.net
Acked-by: Sonic Zhang
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: arm@kernel.org
Acked-by: Olof Johansson
Signed-off-by: Linus Walleij -
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().Cc: arm@kernel.org
Acked-by: Olof Johansson
Signed-off-by: Linus Walleij