kernel_optimize_test/drivers/reset
Jerome Brunet e5a1dadec3 reset: fix shared reset triggered_count decrement on error
For a shared reset, when the reset is successful, the triggered_count is
incremented when trying to call the reset callback, so that another device
sharing the same reset line won't trigger it again. If the reset has not
been triggered successfully, the trigger_count should be decremented.

The code does the opposite, and decrements the trigger_count on success.
As a consequence, another device sharing the reset will be able to trigger
it again.

Fixed be removing negation in from of the error code of the reset function.

Fixes: 7da33a37b4 ("reset: allow using reset_control_reset with shared reset")

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2017-02-17 08:11:47 +01:00
..
hisilicon reset: hi6220: allow to compile test driver on other architectures 2016-08-30 17:09:14 +02:00
sti reset: sti: Remove STiH415/6 reset support 2016-10-20 11:52:08 +02:00
tegra reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
core.c reset: fix shared reset triggered_count decrement on error 2017-02-17 08:11:47 +01:00
Kconfig reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
Makefile reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
reset-ath79.c reset: ath79: add missing include 2016-08-25 13:27:23 +02:00
reset-berlin.c reset: berlin: make it explicitly non-modular 2016-10-24 10:43:40 +02:00
reset-lpc18xx.c reset: lpc18xx: make it explicitly non-modular 2016-10-24 10:45:38 +02:00
reset-meson.c reset: Add support for the Amlogic Meson SoC Reset Controller 2016-06-01 08:21:10 +02:00
reset-oxnas.c reset: oxnas: Add OX820 support 2016-10-20 11:54:55 +02:00
reset-pistachio.c reset: pistachio: use devm_reset_controller_register() 2016-05-30 09:37:47 +02:00
reset-socfpga.c reset: socfpga: make it explicitly non-modular 2016-10-24 10:45:27 +02:00
reset-stm32.c drivers: reset: Add STM32 reset driver 2016-08-24 15:21:28 +02:00
reset-sunxi.c reset: sunxi: make it explicitly non-modular 2016-10-24 10:45:31 +02:00
reset-ti-syscon.c reset: add TI SYSCON based reset driver 2016-06-29 23:39:10 +02:00
reset-uniphier.c reset: uniphier: rename MIO reset to SD reset for Pro5, PXs2, LD20 SoCs 2016-10-22 18:31:42 +09:00
reset-zynq.c reset: zynq: make it explicitly non-modular 2016-10-24 10:45:32 +02:00