]> git.baikalelectronics.ru Git - kernel.git/commit
reset: add acquired/released state for exclusive reset controls
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 21 Feb 2019 15:25:53 +0000 (16:25 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 20 Mar 2019 10:16:55 +0000 (11:16 +0100)
commit433c1a1e91606d29fdb82beff7d757998c95a47c
treeaa1f13278664569396e621650b10fe67d30cc551
parent805099b2fb57eba3d69bc38aeb447dfe76b0ebb9
reset: add acquired/released state for exclusive reset controls

There are cases where a driver needs explicit control over a reset line
that is exclusively conneted to its device, but this control has to be
temporarily handed over to the power domain controller to handle reset
requirements during power transitions.
Allow multiple exclusive reset controls to be requested in 'released'
state for the same physical reset line, only one of which can be
acquired at the same time.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/reset/core.c
include/linux/reset.h