linux/drivers/reset
Martin Blumenstingl 7da33a37b4 reset: allow using reset_control_reset with shared reset
Some SoCs (for example Amlogic GXBB) implement a reset controller which
only supports a reset pulse (triggered via reset_control_reset). At the
same time multiple devices (in case of the Amlogic GXBB SoC both USB
PHYs) are sharing the same reset line.

This patch allows using reset_control_reset also for shared resets.
There are limitations though:
reset_control_reset can only be used if reset_control_assert was not
used yet.
reset_control_assert can only be used if reset_control_reset was not
used yet.
For shared resets the reset is only triggered once for the lifetime of
the reset_control instance (the reset can be triggered again if all
consumers of that specific reset_control are gone, as the reset
framework will free the reset_control instance in that case).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2016-11-14 09:58:28 +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
core.c reset: allow using reset_control_reset with shared reset 2016-11-14 09:58:28 +01:00
Kconfig reset: zynq: add driver Kconfig option 2016-08-30 17:08:51 +02:00
Makefile reset: hi6220: allow to compile test driver on other architectures 2016-08-30 17:09:14 +02: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: add reset controller driver for UniPhier SoCs 2016-08-24 15:21:35 +02:00
reset-zynq.c reset: zynq: make it explicitly non-modular 2016-10-24 10:45:32 +02:00